From 32de07c0b708898faa543711ca919a07ab9180cd Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Tue, 28 Feb 2023 11:20:19 +0800 Subject: [PATCH] upload --- ext.json | 12 +++++++----- index/index.ttml | 4 ++-- pages/couponorder/detail/index.js | 3 ++- pages/couponorder/index/index.js | 11 +++++------ pages/order/detail/index.js | 3 ++- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/ext.json b/ext.json index bd289e8..d547379 100644 --- a/ext.json +++ b/ext.json @@ -1,21 +1,23 @@ { "ext": { "attr": { - "configUrl": "https://ctest.malls.iformall.com/C/api" + "configUrl": "https://c.malls.iformall.com/C/api" }, - "name": "富茂券券集团版", - "weappId": "tt620e14b3fd30264101" + "name": "吾悦广场", + "weappId": "tt48a23e1fd79d648801" }, "window": { "backgroundTextStyle": "light", "navigationBarTextStyle": "black", + "navigationBarTitleText": "Mini Program", "navigationBarBackgroundColor": "#fff" }, - "extAppid": "tt620e14b3fd30264101", + "extAppid": "tt48a23e1fd79d648801", "extEnable": true, "directCommit": false, "networkTimeout": { "request": 30000, "downloadFile": 10000 - } + }, + "requiredPrivateInfos": ["chooseLocation", "getLocation"] } \ No newline at end of file diff --git a/index/index.ttml b/index/index.ttml index de33a27..406964d 100644 --- a/index/index.ttml +++ b/index/index.ttml @@ -24,8 +24,8 @@ {{ shopList[index].name }} - {{ - shopList[index].distance_str}} + diff --git a/pages/couponorder/detail/index.js b/pages/couponorder/detail/index.js index 079c486..c4e46cf 100644 --- a/pages/couponorder/detail/index.js +++ b/pages/couponorder/detail/index.js @@ -189,7 +189,8 @@ Page({ Http.get({ url: config.api.couponOrderDetail, data: { - couponOrderId: options.quancode + couponOrderId: options.quancode, + mallTenantId: options.mallTenantId } }).then(res => { console.log(res.data, '1233211234567'); diff --git a/pages/couponorder/index/index.js b/pages/couponorder/index/index.js index 1198f29..0d9b948 100644 --- a/pages/couponorder/index/index.js +++ b/pages/couponorder/index/index.js @@ -30,8 +30,8 @@ Page({ allow_load: true, list: [], shopList: [], - index: 0, - mallTenantId: '' + mallTenantId: tt.getStorageSync('mallTenantId') || '', + index: tt.getStorageSync('mallIndex') || 0 }, setBoatFlag(e) { let index = e.currentTarget.dataset.index @@ -49,8 +49,8 @@ Page({ bindPickerChange(e) { const index = e.detail.value const mallTenantId = this.data.shopList[index].tenantId - // tt.setStorageSync('mallTenantId', mallTenantId) - // tt.setStorageSync('mallIndex', index) + tt.setStorageSync('mallTenantId', mallTenantId) + tt.setStorageSync('mallIndex', index) this.setData({ index: index, mallTenantId: mallTenantId, @@ -137,8 +137,7 @@ Page({ }).then(res => { this.setData({ shopList: res.data, - // tt.getStorageSync('mallTenantId') || - mallTenantId: res.data[0].tenantId + mallTenantId: tt.getStorageSync('mallTenantId') || res.data[0].tenantId }); console.log(this.data.shopList, 'list'); diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index 24a3206..fdf40cb 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -660,7 +660,8 @@ Page({ Http.get({ url: config.api.getchanId, data: { - id: _this.data.order.couponOrderId + id: _this.data.order.couponOrderId, + mallTenantId: tt.getStorageSync('mallTenantId') } }).then(res => { tt.canRateAwemeOrders({