@@ -486,11 +486,24 @@ Page({ | |||||
onLoad(options) { | onLoad(options) { | ||||
console.log(options, 'options'); | console.log(options, 'options'); | ||||
if (options.mallTenantId || options.tenantId) { | if (options.mallTenantId || options.tenantId) { | ||||
tt.setStorageSync('locationSwitch', 0); | |||||
this.setData({ | this.setData({ | ||||
mallTenantId: options.mallTenantId || options.tenantId, | 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({ | this.setData({ | ||||
mouldType: app.globalData.mouldType, | mouldType: app.globalData.mouldType, | ||||
@@ -17,7 +17,7 @@ | |||||
"projectname": "tt富茂C", | "projectname": "tt富茂C", | ||||
"condition": { | "condition": { | ||||
"miniprogram": { | "miniprogram": { | ||||
"current": 1678687102364, | |||||
"current": 1679365133968, | |||||
"list": [ | "list": [ | ||||
{ | { | ||||
"id": 1678508631604, | "id": 1678508631604, | ||||
@@ -32,7 +32,7 @@ | |||||
"id": 1678428610317, | "id": 1678428610317, | ||||
"name": "index/index", | "name": "index/index", | ||||
"pathName": "pages/main/index", | "pathName": "pages/main/index", | ||||
"query": "type=scanIn&tenantId=1049", | |||||
"query": "type=scanIn&tenantId=1034", | |||||
"scene": "990001", | "scene": "990001", | ||||
"launchFrom": "scan", | "launchFrom": "scan", | ||||
"location": "qr_code" | "location": "qr_code" | ||||
@@ -57,12 +57,21 @@ | |||||
}, | }, | ||||
{ | { | ||||
"id": 1678687102364, | "id": 1678687102364, | ||||
"name": "辣炒年糕", | |||||
"name": "奥尔良鸡腿(昌东)", | |||||
"pathName": "pages/main/index", | "pathName": "pages/main/index", | ||||
"query": "type=cd&couponChannelId=790733288312070144&tenantId=1032", | "query": "type=cd&couponChannelId=790733288312070144&tenantId=1032", | ||||
"scene": "990001", | "scene": "990001", | ||||
"launchFrom": "scan", | "launchFrom": "scan", | ||||
"location": "qr_code" | "location": "qr_code" | ||||
}, | |||||
{ | |||||
"id": 1679365133968, | |||||
"name": "爽口酸萝卜一份(昌西)", | |||||
"pathName": "pages/main/index", | |||||
"query": "type=cd&couponChannelId=792625127019700224&tenantId=1033", | |||||
"scene": "990001", | |||||
"launchFrom": "scan", | |||||
"location": "qr_code" | |||||
} | } | ||||
] | ] | ||||
} | } | ||||