|
|
|
@ -1,6 +1,6 @@ |
|
|
|
//app.js
|
|
|
|
App({ |
|
|
|
|
|
|
|
//----------------------------------------------globalData--------------------------------------
|
|
|
|
release: true, |
|
|
|
httpUrl: 'https://api-test.qniao.cn', |
|
|
|
tmplIds: ['kg0T1ve0FpYrEtZ4ExbypHm8mtS7OJaehvqN_T9ypoI'], |
|
|
|
@ -10,7 +10,7 @@ |
|
|
|
token: null, |
|
|
|
isIPhoneX: false |
|
|
|
}, |
|
|
|
|
|
|
|
//-----------------------------------------onLaunch---------------------------------------------
|
|
|
|
onLaunch: function () { |
|
|
|
if (this.release) { |
|
|
|
this.httpUrl = 'https://api.qniao.cn' |
|
|
|
@ -26,12 +26,11 @@ |
|
|
|
let windowHeight = e.windowHeight * (750 / e.windowWidth); |
|
|
|
let statusBarHeight = this.globalData.CustomBar * (750 / e.windowWidth); |
|
|
|
this.globalData.fragmentHeight = windowHeight - statusBarHeight |
|
|
|
// console.log('fragmentHeight>>>' + this.globalData.fragmentHeight + ',windowHeight=' + windowHeight)
|
|
|
|
this.globalData.isIPhoneX = this.checkIPhoneX(e) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//-----------------------------------------checkIPhoneX---------------------------------------------
|
|
|
|
checkIPhoneX: function (e) { |
|
|
|
var t = e.model, |
|
|
|
o = e.platform; |
|
|
|
|