Showing
2 changed files
with
4 additions
and
1 deletions
@@ -27,6 +27,7 @@ import { logEvent, | @@ -27,6 +27,7 @@ import { logEvent, | ||
27 | YB_AWAKE_MP, | 27 | YB_AWAKE_MP, |
28 | YB_SERVICE_PUSH | 28 | YB_SERVICE_PUSH |
29 | } from './libs/analytics.js'; | 29 | } from './libs/analytics.js'; |
30 | +import router from './pages/zeroSell/router/router'; | ||
30 | 31 | ||
31 | 32 | ||
32 | App({ | 33 | App({ |
@@ -101,6 +102,9 @@ App({ | @@ -101,6 +102,9 @@ App({ | ||
101 | }, 1000); | 102 | }, 1000); |
102 | this.mtainit(options); | 103 | this.mtainit(options); |
103 | await wxLogin(); | 104 | await wxLogin(); |
105 | + event.on('wechat-login-error', () => { | ||
106 | + router.go('bindPhoneNumber'); | ||
107 | + }); | ||
104 | event.on('user-is-login', ({ logged, loginSuccess }) => { | 108 | event.on('user-is-login', ({ logged, loginSuccess }) => { |
105 | const userInfo = wx.getStorageSync('userInfo'); | 109 | const userInfo = wx.getStorageSync('userInfo'); |
106 | console.log(userInfo); | 110 | console.log(userInfo); |
@@ -86,7 +86,6 @@ Page(Object.assign({ | @@ -86,7 +86,6 @@ Page(Object.assign({ | ||
86 | event.on('wechat-login-success', this.loginSuccess); | 86 | event.on('wechat-login-success', this.loginSuccess); |
87 | event.on('wechat-login-callback', this.loginCallback); | 87 | event.on('wechat-login-callback', this.loginCallback); |
88 | event.on('wechat-login-change-status', this.loginChangeStatus); | 88 | event.on('wechat-login-change-status', this.loginChangeStatus); |
89 | - event.on('wechat-login-error', this.loginError); | ||
90 | 89 | ||
91 | this.service = new ZeroSellService(); | 90 | this.service = new ZeroSellService(); |
92 | this.commonService = new CommonService(); | 91 | this.commonService = new CommonService(); |
-
Please register or login to post a comment