Commit 18b3d811fe15d1d083bc101f52971cc7aa99d42b
1 parent
752a5e1c
解决tabbar 报错问题
Showing
1 changed file
with
4 additions
and
2 deletions
app.js
@@ -83,7 +83,7 @@ App({ | @@ -83,7 +83,7 @@ App({ | ||
83 | if(option) this.globalData.scene=option.scene; | 83 | if(option) this.globalData.scene=option.scene; |
84 | console.log(option,'登陆场景'); | 84 | console.log(option,'登陆场景'); |
85 | 85 | ||
86 | - wx.hideTabBar(); | 86 | + // wx.hideTabBar(); |
87 | this.initExt(); | 87 | this.initExt(); |
88 | // this.overShare() | 88 | // this.overShare() |
89 | 89 | ||
@@ -250,7 +250,9 @@ App({ | @@ -250,7 +250,9 @@ App({ | ||
250 | //首页的第一次登录 | 250 | //首页的第一次登录 |
251 | getUserFir(t) { | 251 | getUserFir(t) { |
252 | var s = this; | 252 | var s = this; |
253 | - if (o.isAuth()) "function" == typeof t && t(s.globalData.userInfo, s.globalData.wechatUser); else { | 253 | + if (o.isAuth()) { |
254 | + "function" == typeof t && t(s.globalData.userInfo, s.globalData.wechatUser); | ||
255 | + } else { | ||
254 | if (!o.isAuth()) return o.wxLogin_fir(t); | 256 | if (!o.isAuth()) return o.wxLogin_fir(t); |
255 | if (null == s.globalData.userInfo) { | 257 | if (null == s.globalData.userInfo) { |
256 | return o.wxLogin_fir(t); | 258 | return o.wxLogin_fir(t); |