|
@@ -8,13 +8,15 @@ App({
|
|
onLaunch: function (options) {
|
|
onLaunch: function (options) {
|
|
// 判断设备是否为 iPhone X
|
|
// 判断设备是否为 iPhone X
|
|
this.checkIsIPhoneX()
|
|
this.checkIsIPhoneX()
|
|
|
|
+ options.referrerInfo.extraData && (this.globalData.upgradeHide = options.referrerInfo.extraData.upgrade)
|
|
},
|
|
},
|
|
globalData: {
|
|
globalData: {
|
|
isIPX: false, // 当前设备是否为 iPhone X
|
|
isIPX: false, // 当前设备是否为 iPhone X
|
|
isIOS: false, // 判断设备是否为苹果
|
|
isIOS: false, // 判断设备是否为苹果
|
|
userInfo: null,
|
|
userInfo: null,
|
|
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
|
|
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
|
|
- userGrade: '二年级'
|
|
|
|
|
|
+ userGrade: '二年级',
|
|
|
|
+ upgradeHide: true
|
|
},
|
|
},
|
|
checkIsIPhoneX: function () {
|
|
checkIsIPhoneX: function () {
|
|
const self = this
|
|
const self = this
|