Commit 561e1d7515f8645b954c7975159fda1aea0c27a8
1 parent
d1e57bfa
绑定手机的拒绝提示
Showing
2 changed files
with
10 additions
and
3 deletions
pages/getphone/getphone.js
@@ -54,9 +54,11 @@ Page({ | @@ -54,9 +54,11 @@ Page({ | ||
54 | //接下来写业务代码登录 | 54 | //接下来写业务代码登录 |
55 | //最后,记得返回刚才的页面 | 55 | //最后,记得返回刚才的页面 |
56 | if (e.encryptedData==undefined){ | 56 | if (e.encryptedData==undefined){ |
57 | + /*--- | ||
57 | wx.navigateTo({ | 58 | wx.navigateTo({ |
58 | url: '/pages/user/binding_info/binding_info', | 59 | url: '/pages/user/binding_info/binding_info', |
59 | - }) | 60 | + })--*/ |
61 | + return app.my_warnning("登录需要授权手机号码!", 0, that); | ||
60 | return false; | 62 | return false; |
61 | } | 63 | } |
62 | var r=getApp().globalData.getu; | 64 | var r=getApp().globalData.getu; |
@@ -105,6 +107,7 @@ Page({ | @@ -105,6 +107,7 @@ Page({ | ||
105 | 107 | ||
106 | }, | 108 | }, |
107 | failStatus: function (t) { | 109 | failStatus: function (t) { |
110 | + /*--- | ||
108 | return "100" === t.data.result ? (i.goHome(), wx.navigateTo({ | 111 | return "100" === t.data.result ? (i.goHome(), wx.navigateTo({ |
109 | url: "/pages/user/binding_info/binding_info?nickName=" + r.nickName + "&userHeadPic=" + r.avatarUrl | 112 | url: "/pages/user/binding_info/binding_info?nickName=" + r.nickName + "&userHeadPic=" + r.avatarUrl |
110 | }), !1) : (i.clearAuth(), i.alertLoginErrorAndGoHome(t.data.msg), a.request.post("/api/user/logout", { | 113 | }), !1) : (i.clearAuth(), i.alertLoginErrorAndGoHome(t.data.msg), a.request.post("/api/user/logout", { |
@@ -115,7 +118,8 @@ Page({ | @@ -115,7 +118,8 @@ Page({ | ||
115 | failStatus: function () { | 118 | failStatus: function () { |
116 | return !1; | 119 | return !1; |
117 | } | 120 | } |
118 | - }), !1); | 121 | + }), !1);--*/ |
122 | + return app.my_warnning("授权登入失败,请稍后再试!", 0, that); | ||
119 | }, | 123 | }, |
120 | fail: function (t) { | 124 | fail: function (t) { |
121 | return i.clearAuth(), i.alertLoginErrorAndGoHome(), !1; | 125 | return i.clearAuth(), i.alertLoginErrorAndGoHome(), !1; |