|
|
@@ -486,11 +486,24 @@ Page({ |
|
|
|
onLoad(options) { |
|
|
|
console.log(options, 'options'); |
|
|
|
if (options.mallTenantId || options.tenantId) { |
|
|
|
tt.setStorageSync('locationSwitch', 0); |
|
|
|
this.setData({ |
|
|
|
mallTenantId: options.mallTenantId || options.tenantId, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
Http.get({ |
|
|
|
url: '/mall/subMall?isAll=1', |
|
|
|
}).then(res => { |
|
|
|
console.log(res.data, 'subMall'); |
|
|
|
const mallList = res.data |
|
|
|
mallList.forEach((item, index) => { |
|
|
|
if (item.tenantId == (options.mallTenantId || options.tenantId)) { |
|
|
|
tt.setStorageSync('mallTenantId', options.mallTenantId || options.tenantId) |
|
|
|
tt.setStorageSync('mallIndex', index) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(err => {}) |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
mouldType: app.globalData.mouldType, |
|
|
|