diff --git a/pages/getphone/getphone.js b/pages/getphone/getphone.js index 9a6e927..ddf27f8 100644 --- a/pages/getphone/getphone.js +++ b/pages/getphone/getphone.js @@ -54,9 +54,11 @@ Page({ //接下来写业务代码登录 //最后,记得返回刚才的页面 if (e.encryptedData==undefined){ + /*--- wx.navigateTo({ url: '/pages/user/binding_info/binding_info', - }) + })--*/ + return app.my_warnning("登录需要授权手机号码!", 0, that); return false; } var r=getApp().globalData.getu; @@ -105,6 +107,7 @@ Page({ }, failStatus: function (t) { + /*--- return "100" === t.data.result ? (i.goHome(), wx.navigateTo({ url: "/pages/user/binding_info/binding_info?nickName=" + r.nickName + "&userHeadPic=" + r.avatarUrl }), !1) : (i.clearAuth(), i.alertLoginErrorAndGoHome(t.data.msg), a.request.post("/api/user/logout", { @@ -115,7 +118,8 @@ Page({ failStatus: function () { return !1; } - }), !1); + }), !1);--*/ + return app.my_warnning("授权登入失败,请稍后再试!", 0, that); }, fail: function (t) { return i.clearAuth(), i.alertLoginErrorAndGoHome(), !1; diff --git a/pages/getphone/getphone.json b/pages/getphone/getphone.json index 41fff8a..fb13409 100644 --- a/pages/getphone/getphone.json +++ b/pages/getphone/getphone.json @@ -1,3 +1,6 @@ { - "navigationBarTitleText": "绑定手机" + "navigationBarTitleText": "绑定手机", + "usingComponents": { + "warn": "/components/long_warn/long_warn" + } }