Commit 3ea6e2e5e67eb0b454ad617189706bd5ff9f3552
1 parent
48f2c01e
注册按钮名称修改,拒绝就马上返回
Showing
2 changed files
with
12 additions
and
6 deletions
pages/togoin/togoin.js
| @@ -50,9 +50,9 @@ Page({ | @@ -50,9 +50,9 @@ Page({ | ||
| 50 | getphone:function (e) { | 50 | getphone:function (e) { |
| 51 | //接下来写业务代码登录 | 51 | //接下来写业务代码登录 |
| 52 | e=e.detail; | 52 | e=e.detail; |
| 53 | - if (e.encryptedData==undefined){ | ||
| 54 | - return app.my_warnning("登录需要授权手机号码!", 0, this); | ||
| 55 | - that.setData({show_bind:0}) | 53 | + if (e.encryptedData==undefined){ |
| 54 | + this.setData({show_bind:0}) | ||
| 55 | + return app.my_warnning("登录需要授权手机号码!", 0, this); | ||
| 56 | return false; | 56 | return false; |
| 57 | } | 57 | } |
| 58 | var th=this; | 58 | var th=this; |
| @@ -280,6 +280,12 @@ Page({ | @@ -280,6 +280,12 @@ Page({ | ||
| 280 | }) | 280 | }) |
| 281 | 281 | ||
| 282 | 282 | ||
| 283 | + }, | ||
| 284 | + | ||
| 285 | + | ||
| 286 | + close_pop_back:function(){ | ||
| 287 | + this.close_pop(); | ||
| 288 | + wx.navigateBack({ delta: 1}) | ||
| 283 | } | 289 | } |
| 284 | 290 | ||
| 285 | 291 |
pages/togoin/togoin.wxml
| @@ -57,11 +57,11 @@ | @@ -57,11 +57,11 @@ | ||
| 57 | <view class="cover-layer" bindtap="close_pop"></view> | 57 | <view class="cover-layer" bindtap="close_pop"></view> |
| 58 | <view class="p_content"> | 58 | <view class="p_content"> |
| 59 | <view class="p_title flex ali-c fs34"> | 59 | <view class="p_title flex ali-c fs34"> |
| 60 | - 请授权绑定手机号完成注册,拒绝将登录失败 | 60 | + 请授权绑定手机号完成注册,暂不授权将登录失败 |
| 61 | </view> | 61 | </view> |
| 62 | <view class="flex btn_view"> | 62 | <view class="flex btn_view"> |
| 63 | - <view bindtap="close_pop" style="height: 100%; line-height:normal;" class="txt-center f2 flex ali-c flex-center2 fs36 b_right">拒绝</view> | ||
| 64 | - <button style="height: 100%;" class="g_mobile f2 flex ali-c flex-center2 fs36 txt-red" open-type="getPhoneNumber" bindgetphonenumber="getphone">绑定</button> | 63 | + <view bindtap="close_pop_back" style="height: 100%; line-height:normal;" class="txt-center f2 flex ali-c flex-center2 fs36 b_right">暂不授权</view> |
| 64 | + <button style="height: 100%;" class="g_mobile f2 flex ali-c flex-center2 fs36 txt-red" open-type="getPhoneNumber" bindgetphonenumber="getphone">立即授权</button> | ||
| 65 | </view> | 65 | </view> |
| 66 | </view> | 66 | </view> |
| 67 | </view> | 67 | </view> |