Commit 99fd9b2d by 严立

LL - 全局界面控制

parent 72624e69
...@@ -34,12 +34,12 @@ App({ ...@@ -34,12 +34,12 @@ App({
onLaunch: function () { onLaunch: function () {
this.setUnitProportion() this.setUnitProportion()
this.setAppStatus()
this.login() this.login()
}, },
onShow: function () { onShow: function () {
console.log('onShow') console.log('onShow')
this.setAppStatus()
if (this.globalData.token === '') return if (this.globalData.token === '') return
this.queryUserStatus() this.queryUserStatus()
......
...@@ -34,6 +34,7 @@ Page({ ...@@ -34,6 +34,7 @@ Page({
this.setSideHeight() this.setSideHeight()
}, },
onShow: function () { onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.setShopInfo(3, 1) this.setShopInfo(3, 1)
this.queryDetail() this.queryDetail()
this.queryActivity() this.queryActivity()
......
...@@ -32,6 +32,7 @@ Page({ ...@@ -32,6 +32,7 @@ Page({
}, },
onShow: function () { onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.setData({ this.setData({
userInfo: wx.getStorageSync('userInfo'), userInfo: wx.getStorageSync('userInfo'),
cssGreeting: wx.getStorageSync('navigationStatusHeight') + wx.getStorageSync('navigationCapsuleHeight') + 20 * wx.getStorageSync('unitProportion'), cssGreeting: wx.getStorageSync('navigationStatusHeight') + wx.getStorageSync('navigationCapsuleHeight') + 20 * wx.getStorageSync('unitProportion'),
......
...@@ -30,6 +30,10 @@ Page({ ...@@ -30,6 +30,10 @@ Page({
this.initSelection() this.initSelection()
}, },
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
},
initGuide: function () { initGuide: function () {
this.setMapCss() this.setMapCss()
}, },
......
...@@ -89,6 +89,7 @@ Page({ ...@@ -89,6 +89,7 @@ Page({
}, },
onShow: function () { onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.setUserInfo() this.setUserInfo()
}, },
......
...@@ -41,6 +41,7 @@ Page({ ...@@ -41,6 +41,7 @@ Page({
}, },
onShow: function () { onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.queryActivity() this.queryActivity()
this.queryMovie() this.queryMovie()
this.routeList() this.routeList()
......
...@@ -157,6 +157,10 @@ Page({ ...@@ -157,6 +157,10 @@ Page({
this.getAppraise() this.getAppraise()
}, },
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
},
/** /**
* 获取商店信息,缓存商店信息 * 获取商店信息,缓存商店信息
* @function * @function
......
...@@ -51,6 +51,10 @@ Page({ ...@@ -51,6 +51,10 @@ Page({
this.queryTouristRouteDetail() this.queryTouristRouteDetail()
}, },
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
},
/** /**
* 游客攻略详情 * 游客攻略详情
* @function * @function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment