diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index f91679e..9efec9f 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -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, diff --git a/project.config.json b/project.config.json index 85b90f2..7f71225 100644 --- a/project.config.json +++ b/project.config.json @@ -17,7 +17,7 @@ "projectname": "tt富茂C", "condition": { "miniprogram": { - "current": 1678687102364, + "current": 1679365133968, "list": [ { "id": 1678508631604, @@ -32,7 +32,7 @@ "id": 1678428610317, "name": "index/index", "pathName": "pages/main/index", - "query": "type=scanIn&tenantId=1049", + "query": "type=scanIn&tenantId=1034", "scene": "990001", "launchFrom": "scan", "location": "qr_code" @@ -57,12 +57,21 @@ }, { "id": 1678687102364, - "name": "辣炒年糕", + "name": "奥尔良鸡腿(昌东)", "pathName": "pages/main/index", "query": "type=cd&couponChannelId=790733288312070144&tenantId=1032", "scene": "990001", "launchFrom": "scan", "location": "qr_code" + }, + { + "id": 1679365133968, + "name": "爽口酸萝卜一份(昌西)", + "pathName": "pages/main/index", + "query": "type=cd&couponChannelId=792625127019700224&tenantId=1033", + "scene": "990001", + "launchFrom": "scan", + "location": "qr_code" } ] }