支付宝兼容,排队预约修改,订单逻辑修改
This commit is contained in:
@@ -185,9 +185,7 @@
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
if (uni.cache.get('token')) {
|
||||
this.loginwxuserInfo()
|
||||
}
|
||||
|
||||
if (this.tabs.findIndex((item) => item.type == this.useStorage.get('orderType')) == -1) {
|
||||
this.active = 0
|
||||
} else {
|
||||
@@ -223,17 +221,9 @@
|
||||
this.navtabindex = i
|
||||
this.init_fn()
|
||||
},
|
||||
async loginwxuserInfo() {
|
||||
let res = await this.api.loginwxuserInfo({
|
||||
userId: uni.cache.get('userInfo').id
|
||||
})
|
||||
if (res.code == 0) {
|
||||
uni.cache.set('userInfo', res.data);
|
||||
this.userInfo = uni.cache.get('userInfo')
|
||||
}
|
||||
},
|
||||
|
||||
orderinfo(e) {
|
||||
uni.pro.navigateTo('order/order_detail', {
|
||||
uni.pro.navigateTo('/pagesOrder/order_detail/index', {
|
||||
orderId: e.id
|
||||
})
|
||||
},
|
||||
@@ -383,7 +373,7 @@
|
||||
// uni.cache.set('shopUser', '') //删除shopUser
|
||||
_this.paymodfiyOrderInfo()
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/order_detail?orderId=' + _this
|
||||
url: '/pagesOrder/order_detail/index?orderId=' + _this
|
||||
.listinfoid
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user