Browse Source

upload

soldDate
HolyKnightIX 1 year ago
parent
commit
32de07c0b7
5 changed files with 18 additions and 15 deletions
  1. +7
    -5
      ext.json
  2. +2
    -2
      index/index.ttml
  3. +2
    -1
      pages/couponorder/detail/index.js
  4. +5
    -6
      pages/couponorder/index/index.js
  5. +2
    -1
      pages/order/detail/index.js

+ 7
- 5
ext.json View File

@@ -1,21 +1,23 @@
{ {
"ext": { "ext": {
"attr": { "attr": {
"configUrl": "https://ctest.malls.iformall.com/C/api"
"configUrl": "https://c.malls.iformall.com/C/api"
}, },
"name": "富茂券券集团版",
"weappId": "tt620e14b3fd30264101"
"name": "吾悦广场",
"weappId": "tt48a23e1fd79d648801"
}, },
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "Mini Program",
"navigationBarBackgroundColor": "#fff" "navigationBarBackgroundColor": "#fff"
}, },
"extAppid": "tt620e14b3fd30264101",
"extAppid": "tt48a23e1fd79d648801",
"extEnable": true, "extEnable": true,
"directCommit": false, "directCommit": false,
"networkTimeout": { "networkTimeout": {
"request": 30000, "request": 30000,
"downloadFile": 10000 "downloadFile": 10000
}
},
"requiredPrivateInfos": ["chooseLocation", "getLocation"]
} }

+ 2
- 2
index/index.ttml View File

@@ -24,8 +24,8 @@
<view> <view>
<image src="../assets/images/location.png" class="location"></image> <image src="../assets/images/location.png" class="location"></image>
<text class="mallName">{{ shopList[index].name }}</text> <text class="mallName">{{ shopList[index].name }}</text>
<text class="distance_str" wx:if="{{shopList[index].distance_str}}}">{{
shopList[index].distance_str}}</text>
<!-- <text class="distance_str" wx:if="{{shopList[index].distance_str}}}">距您{{
shopList[index].distance_str}}</text> -->
<image src="../assets/itemImg/arrow-right-l.png" class="right"></image> <image src="../assets/itemImg/arrow-right-l.png" class="right"></image>
</view> </view>
</view> </view>


+ 2
- 1
pages/couponorder/detail/index.js View File

@@ -189,7 +189,8 @@ Page({
Http.get({ Http.get({
url: config.api.couponOrderDetail, url: config.api.couponOrderDetail,
data: { data: {
couponOrderId: options.quancode
couponOrderId: options.quancode,
mallTenantId: options.mallTenantId
} }
}).then(res => { }).then(res => {
console.log(res.data, '1233211234567'); console.log(res.data, '1233211234567');


+ 5
- 6
pages/couponorder/index/index.js View File

@@ -30,8 +30,8 @@ Page({
allow_load: true, allow_load: true,
list: [], list: [],
shopList: [], shopList: [],
index: 0,
mallTenantId: ''
mallTenantId: tt.getStorageSync('mallTenantId') || '',
index: tt.getStorageSync('mallIndex') || 0
}, },
setBoatFlag(e) { setBoatFlag(e) {
let index = e.currentTarget.dataset.index let index = e.currentTarget.dataset.index
@@ -49,8 +49,8 @@ Page({
bindPickerChange(e) { bindPickerChange(e) {
const index = e.detail.value const index = e.detail.value
const mallTenantId = this.data.shopList[index].tenantId 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({ this.setData({
index: index, index: index,
mallTenantId: mallTenantId, mallTenantId: mallTenantId,
@@ -137,8 +137,7 @@ Page({
}).then(res => { }).then(res => {
this.setData({ this.setData({
shopList: res.data, 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'); console.log(this.data.shopList, 'list');




+ 2
- 1
pages/order/detail/index.js View File

@@ -660,7 +660,8 @@ Page({
Http.get({ Http.get({
url: config.api.getchanId, url: config.api.getchanId,
data: { data: {
id: _this.data.order.couponOrderId
id: _this.data.order.couponOrderId,
mallTenantId: tt.getStorageSync('mallTenantId')
} }
}).then(res => { }).then(res => {
tt.canRateAwemeOrders({ tt.canRateAwemeOrders({


Loading…
Cancel
Save