修复一些细节

This commit is contained in:
Weilanwl
2019-03-25 10:20:55 +08:00
parent fc62c054a1
commit 5742a427fe
4 changed files with 33 additions and 20 deletions
+4 -5
View File
@@ -4,13 +4,12 @@
onLaunch: function() {
uni.getSystemInfo({
success: function(e) {
// #ifdef H5
Vue.prototype.StatusBar = e.statusbarHeight;
// #ifndef MP-WEIXIN
Vue.prototype.StatusBar = e.statusBarHeight;
if (e.platform == 'android') {
Vue.prototype.CustomBar = e.statusbarHeight + 50;
Vue.prototype.CustomBar = e.statusBarHeight + 50;
} else {
Vue.prototype.CustomBar = e.statusbarHeight + 45;
Vue.prototype.CustomBar = e.statusBarHeight + 45;
};
// #endif