|
@@ -32,6 +32,27 @@
|
|
|
// },
|
|
|
},
|
|
|
onLaunch: function() {
|
|
|
+ uni.getSystemInfo({
|
|
|
+ success:function(e){
|
|
|
+ Vue.prototype.statusBar = e.statusBarHeight
|
|
|
+ // #ifndef MP
|
|
|
+ if(e.platform == 'android') {
|
|
|
+ Vue.prototype.customBar = e.statusBarHeight + 50
|
|
|
+ }else {
|
|
|
+ Vue.prototype.customBar = e.statusBarHeight + 45
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
+
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ let custom = wx.getMenuButtonBoundingClientRect()
|
|
|
+ Vue.prototype.customBar = custom.bottom + custom.top - e.statusBarHeight
|
|
|
+ // #endif
|
|
|
+
|
|
|
+ // #ifdef MP-ALIPAY
|
|
|
+ Vue.prototype.customBar = e.statusBarHeight + e.titleBarHeight
|
|
|
+ // #endif
|
|
|
+ }
|
|
|
+ })
|
|
|
// #ifdef APP-PLUS
|
|
|
// let isOpenLocation= permision.checkSystemEnableLocation()
|
|
|
// console.log("isOpenLocation",isOpenLocation)
|