From 4ed5184046ba4c3075aa1fa23004f5d4d5038fa9 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Mon, 5 Sep 2022 16:33:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=8B=B9=E6=9E=9C=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=BA=95=E9=83=A8=E5=AE=89=E5=85=A8=E5=8C=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 +++--- pages/mine/details2.vue | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/App.vue b/App.vue index af4e312..6edaabc 100644 --- a/App.vue +++ b/App.vue @@ -7,11 +7,11 @@ uni.getSystemInfo({ success: function(e) { // #ifdef MP-WEIXIN - Vue.prototype.StatusBar = e.statusBarHeight; + Vue.prototype.StatusBar = e.statusBarHeight; // 状态栏高度 let custom = wx.getMenuButtonBoundingClientRect(); Vue.prototype.Custom = custom; - Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight; - Vue.prototype.windowHeight = e.safeArea.height + Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;// 底部菜单栏高度 + Vue.prototype.windowHeight = e.safeArea.height // 内容区高度 // #endif Vue.mixin({ data() { diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 92a4832..913a92b 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -2027,9 +2027,10 @@ width: 100%; height: 170rpx; border-top: 1px solid #E0E0E0; - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); - + /* iphonex 等安全区设置,底部安全区适配 */ + padding-bottom: constant(safe-area-inset-bottom); /* 兼容 iOS < 11.2 */ + padding-bottom: env(safe-area-inset-bottom); /* 兼容 iOS >= 11.2 */ + box-sizing: content-box; .bottomhead { width: 100%; height: 81rpx;