Merge branch 'hotfix/skan-qrcode' into 'master'
Hotfix/skan qrcode See merge request !4
Showing
6 changed files
with
9 additions
and
10 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); |
@@ -51,11 +51,6 @@ Component({ | @@ -51,11 +51,6 @@ Component({ | ||
51 | */ | 51 | */ |
52 | methods: { | 52 | methods: { |
53 | fetchCode() { | 53 | fetchCode() { |
54 | - if (!app.getUid()) { | ||
55 | - this.triggerEvent('requireauth'); | ||
56 | - return; | ||
57 | - } | ||
58 | - | ||
59 | wx.showLoading({ | 54 | wx.showLoading({ |
60 | mask: true | 55 | mask: true |
61 | }); | 56 | }); |
@@ -439,9 +439,9 @@ Page(Object.assign({ | @@ -439,9 +439,9 @@ Page(Object.assign({ | ||
439 | }, | 439 | }, |
440 | 440 | ||
441 | requireAuth() { | 441 | requireAuth() { |
442 | - this.setData({ | ||
443 | - showAuth: true | ||
444 | - }) | 442 | + // this.setData({ |
443 | + // showAuth: true | ||
444 | + // }) | ||
445 | }, | 445 | }, |
446 | _jumpBanner() { | 446 | _jumpBanner() { |
447 | if (this.data.bannerUrl == null) { | 447 | if (this.data.bannerUrl == null) { |
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | </group-recommend> | 32 | </group-recommend> |
33 | 33 | ||
34 | <view class="action-bar"> | 34 | <view class="action-bar"> |
35 | - <action-bar wx:if="{{isLogin}}" status="{{actionStatus}}" num="{{myPrizeCount}}" share-uid="{{shareUid}}" act-prize-id="{{actPrizeId}}" bindgetcode="changeActionStatus" bindshare="share" bind:requireauth="requireAuth" | 35 | + <action-bar wx:if="{{isLogin}}" status="{{actionStatus}}" num="{{myPrizeCount}}" share-uid="{{shareUid}}" act-prize-id="{{actPrizeId}}" bindgetcode="changeActionStatus" bindshare="share" |
36 | ></action-bar> | 36 | ></action-bar> |
37 | 37 | ||
38 | <block wx:else> | 38 | <block wx:else> |
@@ -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