Commit 01df5f4d34570468c180285981ec712d4ac11e33
1 parent
091c4fa4
1、邀请函、商家详情优惠券改为获取到手机号后才可以领取
2、赴约改为昵称和手机号才必填
Showing
2 changed files
with
12 additions
and
4 deletions
| @@ -570,12 +570,12 @@ Page({ | @@ -570,12 +570,12 @@ Page({ | ||
| 570 | this.bindUserPhoneFun(res.data.phone_info.purePhoneNumber) | 570 | this.bindUserPhoneFun(res.data.phone_info.purePhoneNumber) |
| 571 | } else { | 571 | } else { |
| 572 | console.log('点了拒绝1'); | 572 | console.log('点了拒绝1'); |
| 573 | - this.gotoLogin('1') | 573 | + this.gotoLogin('3') |
| 574 | } | 574 | } |
| 575 | }) | 575 | }) |
| 576 | } else { | 576 | } else { |
| 577 | console.log('点了拒绝2'); | 577 | console.log('点了拒绝2'); |
| 578 | - this.gotoLogin('1') | 578 | + this.gotoLogin('3') |
| 579 | } | 579 | } |
| 580 | }, | 580 | }, |
| 581 | // 用户绑定手机号 | 581 | // 用户绑定手机号 |
| @@ -595,7 +595,7 @@ Page({ | @@ -595,7 +595,7 @@ Page({ | ||
| 595 | // 跳转登录页 | 595 | // 跳转登录页 |
| 596 | gotoLogin(types) { | 596 | gotoLogin(types) { |
| 597 | let url = util.http_build_query({ | 597 | let url = util.http_build_query({ |
| 598 | - types, //1邀请函领券 2赴约 | 598 | + types, //1邀请函领券 2赴约 3优惠券详情领券 |
| 599 | }, '/pages/customer/login') | 599 | }, '/pages/customer/login') |
| 600 | wx.navigateTo({ | 600 | wx.navigateTo({ |
| 601 | url | 601 | url |
| @@ -183,10 +183,18 @@ Page({ | @@ -183,10 +183,18 @@ Page({ | ||
| 183 | App.Wechat.BindUserPhone(params).then(res => { | 183 | App.Wechat.BindUserPhone(params).then(res => { |
| 184 | console.log(res, '用户绑定手机号'); | 184 | console.log(res, '用户绑定手机号'); |
| 185 | if (res.ret == 200) { | 185 | if (res.ret == 200) { |
| 186 | + //1邀请函领券 | ||
| 186 | if (this.data.types == '1') { | 187 | if (this.data.types == '1') { |
| 187 | this.setcouponFun() | 188 | this.setcouponFun() |
| 188 | - } else { | 189 | + // 2赴约 |
| 190 | + } else if (this.data.types == '2') { | ||
| 189 | this.confirmed() | 191 | this.confirmed() |
| 192 | + // 3优惠券详情领券 | ||
| 193 | + }else if (this.data.types == '3') { | ||
| 194 | + setTimeout(() => { | ||
| 195 | + util.toast('登陆成功!', 'none') | ||
| 196 | + wx.navigateBack(1) | ||
| 197 | + }, 3500); | ||
| 190 | } | 198 | } |
| 191 | } | 199 | } |
| 192 | }) | 200 | }) |
-
Please register or login to post a comment