优化问题
This commit is contained in:
@@ -108,6 +108,8 @@
|
||||
},
|
||||
onLoad(e) {
|
||||
this.getInfo(e.id)
|
||||
|
||||
|
||||
this.orderIds = e.id
|
||||
this.amount = uni.cache.get('userInfo').amount
|
||||
this.vipId = uni.cache.get('userInfo').id
|
||||
@@ -134,6 +136,7 @@
|
||||
})
|
||||
if (res.code == 0) {
|
||||
this.amountVIP = res.data
|
||||
|
||||
}
|
||||
},
|
||||
// 余额支付
|
||||
@@ -194,7 +197,8 @@
|
||||
this.payEvent(res.data.id)
|
||||
} else {
|
||||
// 先判断是否设置支付密码。0是没设置。没设置的情况下跳转到设置页面。有的话输入支付密码
|
||||
let isVip = uni.cache.get('userInfo').isPwd
|
||||
let isVip = uni.cache.get('userInfo').isPwd
|
||||
console.log(isVip,'调试1')
|
||||
if (isVip == 0) {
|
||||
uni.pro.navigateTo('/pages/user/repairpassword', {
|
||||
shopId_id: uni.cache.get('shopUser')
|
||||
@@ -249,6 +253,7 @@
|
||||
})
|
||||
if (res.code == 0) {
|
||||
this.info = res.data
|
||||
uni.cache.set('shopUser', res.data.shopId);
|
||||
// 获取余额
|
||||
this.getAount()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user