|
|
@@ -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 => { |
|
|
|