diff --git a/pwuniapp/App.vue b/pwuniapp/App.vue index 0f980a8..9fc1191 100644 --- a/pwuniapp/App.vue +++ b/pwuniapp/App.vue @@ -179,6 +179,67 @@ view, text, image, input, button { color: transparent; } +/* 底部自定义 TabBar 全局兜底规范,锁死图标尺寸与定位,杜绝微信小程序中 image 标签退化为 320x240 默认尺寸 */ +.custom-tabbar-root { + width: 100%; + .tabbar-container { + position: fixed !important; + bottom: 0 !important; + left: 0 !important; + right: 0 !important; + margin: 0 auto !important; + max-width: 450px !important; + box-sizing: border-box !important; + height: calc(118rpx + env(safe-area-inset-bottom)) !important; + display: flex !important; + align-items: flex-start !important; + justify-content: space-around !important; + z-index: 999 !important; + } + .tab-item { + flex: 1 !important; + display: flex !important; + flex-direction: column !important; + align-items: center !important; + justify-content: center !important; + height: 118rpx !important; + } + .tab-icon-svg { + width: 50rpx !important; + height: 50rpx !important; + max-width: 50rpx !important; + max-height: 50rpx !important; + flex-shrink: 0 !important; + } + .plus-circle-btn { + width: 96rpx !important; + height: 96rpx !important; + min-width: 96rpx !important; + min-height: 96rpx !important; + max-width: 96rpx !important; + max-height: 96rpx !important; + border-radius: 50% !important; + flex-shrink: 0 !important; + display: flex !important; + align-items: center !important; + justify-content: center !important; + .plus-svg { + width: 48rpx !important; + height: 48rpx !important; + flex-shrink: 0 !important; + } + } + .radar-icon-box { + width: 52rpx !important; + height: 52rpx !important; + .radar-svg { + width: 52rpx !important; + height: 52rpx !important; + flex-shrink: 0 !important; + } + } +} + /* 移动端与 H5 响应式体验优化 */ /* #ifdef H5 */ html, body { diff --git a/pwuniapp/components/CustomTabBar.vue b/pwuniapp/components/CustomTabBar.vue index 1bb6dd3..1bd9f98 100644 --- a/pwuniapp/components/CustomTabBar.vue +++ b/pwuniapp/components/CustomTabBar.vue @@ -1,19 +1,20 @@ @@ -97,6 +104,15 @@ + + -