Authored by 李奇

fixed: 授权卡死

... ... @@ -27,6 +27,7 @@ import { logEvent,
YB_AWAKE_MP,
YB_SERVICE_PUSH
} from './libs/analytics.js';
import router from './pages/zeroSell/router/router';
App({
... ... @@ -101,6 +102,9 @@ App({
}, 1000);
this.mtainit(options);
await wxLogin();
event.on('wechat-login-error', () => {
router.go('bindPhoneNumber');
});
event.on('user-is-login', ({ logged, loginSuccess }) => {
const userInfo = wx.getStorageSync('userInfo');
console.log(userInfo);
... ...
... ... @@ -86,7 +86,6 @@ Page(Object.assign({
event.on('wechat-login-success', this.loginSuccess);
event.on('wechat-login-callback', this.loginCallback);
event.on('wechat-login-change-status', this.loginChangeStatus);
event.on('wechat-login-error', this.loginError);
this.service = new ZeroSellService();
this.commonService = new CommonService();
... ...