Commit 01df5f4d34570468c180285981ec712d4ac11e33

Authored by pengye
1 parent 091c4fa4

1、邀请函、商家详情优惠券改为获取到手机号后才可以领取

2、赴约改为昵称和手机号才必填
... ... @@ -570,12 +570,12 @@ Page({
this.bindUserPhoneFun(res.data.phone_info.purePhoneNumber)
} else {
console.log('点了拒绝1');
this.gotoLogin('1')
this.gotoLogin('3')
}
})
} else {
console.log('点了拒绝2');
this.gotoLogin('1')
this.gotoLogin('3')
}
},
// 用户绑定手机号
... ... @@ -595,7 +595,7 @@ Page({
// 跳转登录页
gotoLogin(types) {
let url = util.http_build_query({
types, //1邀请函领券 2赴约
types, //1邀请函领券 2赴约 3优惠券详情领券
}, '/pages/customer/login')
wx.navigateTo({
url
... ...
... ... @@ -183,10 +183,18 @@ Page({
App.Wechat.BindUserPhone(params).then(res => {
console.log(res, '用户绑定手机号');
if (res.ret == 200) {
//1邀请函领券
if (this.data.types == '1') {
this.setcouponFun()
} else {
// 2赴约
} else if (this.data.types == '2') {
this.confirmed()
// 3优惠券详情领券
}else if (this.data.types == '3') {
setTimeout(() => {
util.toast('登陆成功!', 'none')
wx.navigateBack(1)
}, 3500);
}
}
})
... ...