体验官修改
This commit is contained in:
16
app.js
16
app.js
@@ -5,7 +5,14 @@
|
||||
|
||||
import api from "api/index"
|
||||
App({
|
||||
onLaunch(options) {
|
||||
onLaunch(e) {
|
||||
let { scene } = e
|
||||
|
||||
// 检查入口场景值
|
||||
if(scene === 1011 || scene === 1047 || scene === 1124 || scene === 1089 || scene === 1038){
|
||||
this.globalData.isOfficial = true
|
||||
}
|
||||
|
||||
// 检查用户登录状态
|
||||
const token = wx.getStorageSync("token")
|
||||
if(token){
|
||||
@@ -39,9 +46,7 @@ App({
|
||||
// 获取系统信息
|
||||
wx.getSystemInfo({
|
||||
success: res=>{
|
||||
this.globalData = {
|
||||
barHeight: res.statusBarHeight
|
||||
}
|
||||
this.globalData.barHeight = res.statusBarHeight
|
||||
}
|
||||
})
|
||||
|
||||
@@ -66,6 +71,7 @@ App({
|
||||
barHeight : '',
|
||||
inviteText : '', // 邀请好友临时存储
|
||||
isExperience: '', // 体验官身份
|
||||
experienceAreaId: '' // 体验官区域
|
||||
experienceAreaId: '', // 体验官区域
|
||||
isOfficial : false, // 关注公众号
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user