1234567891011121314151617181920212223242526272829303132 |
- import {
- GetQueryString
- } from 'utils/util'
- const Towxml = require('/towxml/main');
- App({
- onLaunch: function (options) {
-
- this.checkIsIPhoneX()
- },
- globalData: {
- isIPX: false,
- isIOS: false,
- },
- 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
- }
- }
- })
- },
- towxml: new Towxml()
- })
|