Selaa lähdekoodia

upload

soldDate
HolyKnightIX 2 vuotta sitten
vanhempi
commit
b7391aef7b
2 muutettua tiedostoa jossa 34 lisäystä ja 42 poistoa
  1. +1
    -3
      pages/couponorder/index/index.js
  2. +33
    -39
      pages/order/index/index.js

+ 1
- 3
pages/couponorder/index/index.js Näytä tiedosto

@@ -49,7 +49,7 @@ Page({
bindPickerChange(e) {
const index = e.detail.value
const mallTenantId = this.data.shopList[index].tenantId
tt.setStorageSync('mallTenantId', mallTenantId)
// tt.setStorageSync('mallTenantId', mallTenantId)
// tt.setStorageSync('mallIndex', index)
this.setData({
index: index,
@@ -155,7 +155,5 @@ Page({
},
onShow: function () {
this.getList()

}

})

+ 33
- 39
pages/order/index/index.js Näytä tiedosto

@@ -96,58 +96,52 @@ Page({
})
},
onLoad(e) {

// this.setData({
// current_scroll: e.id
// });
this.setData({
// tt.getStorageSync('mallIndex') ||
index: 0,
})
},
onShow() {
Http.get({
url: '/mall/subMall?isAll=1',
}).then(res => {
this.setData({
shopList: res.data,
mallTenantId: tt.getStorageSync('mallTenantId') || res.data[0].tenantId
// tt.getStorageSync('mallTenantId') ||
mallTenantId: res.data[0].tenantId
});
this.getList(this.data.boatFlag, 1);
Http.get({
url: config.api.checkUserStatus,
data: {
token: app.globalData.token
}
}).then(res => {
Http.get({
url: config.api.checkPhoneStatus
}).then(res => {}).catch(err => {
if (app.globalData.ifCongPh == 1) {
app.globalData.skip = 'navigateBack'
tt.navigateTo({
url: `/pages/getPhone/getPhone?skipUrl=1`,
})
} else {
this.setData({
showBox: true
})
}
})
}).catch(err => {
console.log(this.data.shopList, 'list');

if (err.code == 11004) { //未授权抖音
app.globalData.type = 'mo'
}).catch(err => {
console.log(err, 'err');
})
},
onShow() {
this.getList(this.data.boatFlag, 1);
Http.get({
url: config.api.checkUserStatus,
data: {
token: app.globalData.token
}
}).then(res => {
Http.get({
url: config.api.checkPhoneStatus
}).then(res => {}).catch(err => {
if (app.globalData.ifCongPh == 1) {
app.globalData.skip = 'navigateBack'
tt.navigateTo({
url: '/pages/getuserinfo/getuserinfo',

});
url: `/pages/getPhone/getPhone?skipUrl=1`,
})
} else {
this.setData({
showBox: true
})
}
})
}).catch(err => {

})
if (err.code == 11004) { //未授权抖音
app.globalData.type = 'mo'
tt.navigateTo({
url: '/pages/getuserinfo/getuserinfo',

});
}
})
this.setData({
ifshowtab: app.globalData.ifshowtab,
allow_load: true


Ladataan…
Peruuta
Tallenna