mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-06-07 06:03:57 +08:00
修复ios 状态栏错位
修复ios 状态栏错位
This commit is contained in:
+10
-4
@@ -13,12 +13,18 @@
|
||||
};
|
||||
// #endif
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
// #ifdef MP-WEIXIN || MP-QQ
|
||||
Vue.prototype.StatusBar = e.statusBarHeight;
|
||||
let custom = wx.getMenuButtonBoundingClientRect();
|
||||
Vue.prototype.Custom = custom;
|
||||
Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
|
||||
let capsule = wx.getMenuButtonBoundingClientRect();
|
||||
if (capsule) {
|
||||
Vue.prototype.Custom = capsule;
|
||||
// Vue.prototype.capsuleSafe = uni.upx2px(750) - capsule.left + uni.upx2px(750) - capsule.right;
|
||||
Vue.prototype.CustomBar = capsule.bottom + capsule.top - e.statusBarHeight;
|
||||
} else {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 50;
|
||||
}
|
||||
// #endif
|
||||
|
||||
|
||||
// #ifdef MP-ALIPAY
|
||||
Vue.prototype.StatusBar = e.statusBarHeight;
|
||||
|
||||
Reference in New Issue
Block a user