体验官修改

This commit is contained in:
2023-07-31 17:27:05 +08:00
parent a0399a8944
commit c41b852aaf
26 changed files with 1568 additions and 124 deletions

16
app.js
View File

@@ -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, // 关注公众号
}
})