Commit 561e1d7515f8645b954c7975159fda1aea0c27a8

Authored by 后端研发-倪永富
1 parent d1e57bfa

绑定手机的拒绝提示

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