123456789101112131415161718192021222324252627282930313233343536 |
- import {
- GetQueryString
- } from 'utils/util'
- App({
- onLaunch: function (options) {
-
- this.checkIsIPhoneX()
- },
- globalData: {
- isIPX: false,
- isIOS: false,
- userInfo: null,
- statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
- userGrade: '二年级'
- },
- 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
- }
- }
- })
- },
-
- })
|