1234567891011121314151617181920212223242526272829303132333435363738 |
- import {
- GetQueryString
- } from 'utils/util'
- App({
- onLaunch: function (options) {
-
- this.checkIsIPhoneX()
- options.referrerInfo.extraData && (this.globalData.upgradeHide = options.referrerInfo.extraData.upgrade)
- },
- globalData: {
- isIPX: false,
- isIOS: false,
- userInfo: null,
- statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
- userGrade: '二年级',
- upgradeHide: true
- },
- checkIsIPhoneX: function () {
- const self = this
- wx.getSystemInfo({
- success: function (res) {
-
- console.log(res)
- console.log(res.system.search('iOS'))
- if (res.model.search('iPhone X') != -1) {
- self.globalData.isIPX = true
- }
- if (res.system.search('iOS') != -1) {
- self.globalData.isIOS = true
- }
- }
- })
- },
-
- })
|