|
@@ -127,20 +127,20 @@ Page({ |
|
|
* 生命周期函数--监听页面显示 |
|
|
* 生命周期函数--监听页面显示 |
|
|
*/ |
|
|
*/ |
|
|
onShow: function() { |
|
|
onShow: function() { |
|
|
if (typeof this.getTabBar === 'function' && |
|
|
|
|
|
this.getTabBar()) { |
|
|
|
|
|
|
|
|
let that = this; |
|
|
|
|
|
if (typeof that.getTabBar === 'function' && |
|
|
|
|
|
that.getTabBar()) { |
|
|
if (ifStoreApp==1){ |
|
|
if (ifStoreApp==1){ |
|
|
this.getTabBar().setData({ |
|
|
|
|
|
|
|
|
that.getTabBar().setData({ |
|
|
selected: 1 |
|
|
selected: 1 |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
this.getTabBar().setData({ |
|
|
|
|
|
|
|
|
that.getTabBar().setData({ |
|
|
selected: 3 |
|
|
selected: 3 |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
let that = this; |
|
|
|
|
|
that.checkUserStatus(); |
|
|
that.checkUserStatus(); |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
appVersion: extConfig.appVersion, |
|
|
appVersion: extConfig.appVersion, |
|
|