|
|
@ -1,6 +1,6 @@ |
|
|
//app.js
|
|
|
//app.js
|
|
|
App({ |
|
|
App({ |
|
|
evn: 1, // 0: 开发版本;1:测试版本;2:生产版本
|
|
|
|
|
|
|
|
|
evn: 0, // 0: 开发版本;1:测试版本;2:生产版本
|
|
|
tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'], |
|
|
tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'], |
|
|
version: '2.4.0', |
|
|
version: '2.4.0', |
|
|
xAppId: '503258978847953926', |
|
|
xAppId: '503258978847953926', |
|
|
@ -42,6 +42,7 @@ App({ |
|
|
} |
|
|
} |
|
|
wx.getSystemInfo({ |
|
|
wx.getSystemInfo({ |
|
|
success: e => { |
|
|
success: e => { |
|
|
|
|
|
this.globalData.window = e |
|
|
this.globalData.isIos = this.checkIos(e) |
|
|
this.globalData.isIos = this.checkIos(e) |
|
|
this.globalData.dev = e.platform == 'devtools' |
|
|
this.globalData.dev = e.platform == 'devtools' |
|
|
|
|
|
|
|
|
@ -50,7 +51,7 @@ App({ |
|
|
// 顶部操作栏高度
|
|
|
// 顶部操作栏高度
|
|
|
this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight + (this.globalData.isIos ? 4 : 0) |
|
|
this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight + (this.globalData.isIos ? 4 : 0) |
|
|
let windowHeight = e.windowHeight * (750 / e.windowWidth) |
|
|
let windowHeight = e.windowHeight * (750 / e.windowWidth) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let safeBottom = e.windowHeight - e.safeArea.bottom |
|
|
let safeBottom = e.windowHeight - e.safeArea.bottom |
|
|
if(safeBottom > e.windowHeight){ |
|
|
if(safeBottom > e.windowHeight){ |
|
|
safeBottom = 34 |
|
|
safeBottom = 34 |
|
|
|