HolyKnightIX пре 1 година
родитељ
комит
0716135a1e
2 измењених фајлова са 20 додато и 3 уклоњено
  1. +11
    -3
      index/index.js
  2. +9
    -0
      project.config.json

+ 11
- 3
index/index.js Прегледај датотеку

@@ -154,7 +154,10 @@ Page({
tt.setStorageSync('mallTenantId', res.data[0].tenantId)
tt.setStorageSync('mallIndex', 0)
}
this.getLocation()
const locationSwitch = tt.getStorageSync('locationSwitch');
if (!locationSwitch) {
this.getLocation()
}
}).catch(err => {
console.log(err, 'err');
})
@@ -573,9 +576,14 @@ Page({
* 生命周期函数--监听页面初次渲染完成
*/
onLoad: function (options) {
console.log(options, 'options');
let that = this;
let optionss;

const locationSwitch = options.type || ''
tt.setStorageSync('locationSwitch', locationSwitch);


let openId = tt.getStorageSync('openId')
if (tt.getStorageSync('options')) {
optionss = JSON.parse(tt.getStorageSync('options'));
@@ -670,7 +678,7 @@ Page({
that.bindPickerChange('', index, item.tenantId)
tt.setStorageSync('locationFlag', false);
} else {
that.bindPickerChange('', ttt.getStorageSync('mallIndex'), tt.getStorageSync('mallTenantId'))
that.bindPickerChange('', tt.getStorageSync('mallIndex'), tt.getStorageSync('mallTenantId'))
}

return true
@@ -705,7 +713,7 @@ Page({
that.bindPickerChange('', obj.index, obj.tenantId)
tt.setStorageSync('locationFlag', false);
} else {
that.bindPickerChange('', ttt.getStorageSync('mallIndex'), tt.getStorageSync('mallTenantId'))
that.bindPickerChange('', tt.getStorageSync('mallIndex'), tt.getStorageSync('mallTenantId'))
}
},
complete: finish => {


+ 9
- 0
project.config.json Прегледај датотеку

@@ -45,6 +45,15 @@
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
},
{
"id": 1678330099779,
"name": " index/index(noLocation)",
"pathName": "index/index",
"query": "type=in",
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
}
]
}


Loading…
Откажи
Сачувај