Commit 99fd9b2d by 严立

LL - 全局界面控制

parent 72624e69
......@@ -34,12 +34,12 @@ App({
onLaunch: function () {
this.setUnitProportion()
this.setAppStatus()
this.login()
},
onShow: function () {
console.log('onShow')
this.setAppStatus()
if (this.globalData.token === '') return
this.queryUserStatus()
......
......@@ -34,6 +34,7 @@ Page({
this.setSideHeight()
},
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.setShopInfo(3, 1)
this.queryDetail()
this.queryActivity()
......
......@@ -32,6 +32,7 @@ Page({
},
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.setData({
userInfo: wx.getStorageSync('userInfo'),
cssGreeting: wx.getStorageSync('navigationStatusHeight') + wx.getStorageSync('navigationCapsuleHeight') + 20 * wx.getStorageSync('unitProportion'),
......
......@@ -30,6 +30,10 @@ Page({
this.initSelection()
},
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
},
initGuide: function () {
this.setMapCss()
},
......
......@@ -89,6 +89,7 @@ Page({
},
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.setUserInfo()
},
......
......@@ -41,6 +41,7 @@ Page({
},
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
this.queryActivity()
this.queryMovie()
this.routeList()
......
......@@ -157,6 +157,10 @@ Page({
this.getAppraise()
},
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
},
/**
* 获取商店信息,缓存商店信息
* @function
......
......@@ -51,6 +51,10 @@ Page({
this.queryTouristRouteDetail()
},
onShow: function () {
this.setData({ appStatus: App.globalData.appStatus })
},
/**
* 游客攻略详情
* @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