会员充值三版
This commit is contained in:
parent
77c52b3625
commit
679f919106
|
|
@ -18,9 +18,7 @@
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
if (this.switchdata) {
|
if (this.switchdata) {
|
||||||
uni.switchTab({
|
uni.navigateBack()
|
||||||
url: '/pages/index/index'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -36,8 +34,18 @@
|
||||||
shopId: this.shopId
|
shopId: this.shopId
|
||||||
})
|
})
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.switchdata = false
|
let resdata = await this.api.loginwxuserInfo({
|
||||||
uni.navigateBack()
|
userId: uni.cache.get('userInfo').id
|
||||||
|
})
|
||||||
|
if (resdata.code == 0) {
|
||||||
|
this.switchdata = false
|
||||||
|
uni.cache.set('userInfo', resdata.data);
|
||||||
|
uni.pro.redirectTo('/pages/member/index', {
|
||||||
|
shopId: uni.cache.get('shopUser')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -42,14 +42,7 @@
|
||||||
this.paygetShopByMember(e.shopId)
|
this.paygetShopByMember(e.shopId)
|
||||||
}
|
}
|
||||||
this.paygetActive(e.shopId) //列表
|
this.paygetActive(e.shopId) //列表
|
||||||
// 判断是否绑定手机,只有下单时候有,会员列表肯定有
|
|
||||||
console.log(uni.cache.get('userInfo').telephone, '调试1')
|
|
||||||
if (uni.cache.get('userInfo').telephone=='') {
|
|
||||||
// 跳转到开通页面
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/member/activatedmemberone?shopId=' + e.shopId
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async paygetShopByMember(w) {
|
async paygetShopByMember(w) {
|
||||||
|
|
|
||||||
|
|
@ -379,9 +379,18 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goRecharge() { // 去充值
|
goRecharge() { // 去充值
|
||||||
uni.pro.navigateTo('/pages/member/index', {
|
// 判断是否绑定手机,只有下单时候有,会员列表肯定有
|
||||||
shopId: uni.cache.get('shopUser')
|
console.log(uni.cache.get('userInfo').telephone, '调试1')
|
||||||
})
|
if (uni.cache.get('userInfo').telephone == '') {
|
||||||
|
// 跳转到开通页面
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/member/activatedmemberone?shopId=' + uni.cache.get('shopUser')
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.pro.navigateTo('/pages/member/index', {
|
||||||
|
shopId: uni.cache.get('shopUser')
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
orderdetail() { // 直接生成订单
|
orderdetail() { // 直接生成订单
|
||||||
let data = {
|
let data = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue