diff --git a/components/nav-back/nav-back.vue b/components/nav-back/nav-back.vue index 9c02e834..371b3643 100644 --- a/components/nav-back/nav-back.vue +++ b/components/nav-back/nav-back.vue @@ -3,7 +3,7 @@ - + {{ propName }} @@ -85,6 +85,9 @@ diff --git a/components/trn-nav/trn-nav.vue b/components/trn-nav/trn-nav.vue index c0e0fcab..c8b3a113 100644 --- a/components/trn-nav/trn-nav.vue +++ b/components/trn-nav/trn-nav.vue @@ -54,7 +54,7 @@ // 设置样式 this.nav_style = 'opacity:'+opacity+';'; // #ifdef MP - this.nav_style += 'height:'+(this.propHeight+this.statusbar_height)+'rpx;'; + this.nav_style += 'height:'+(this.propHeight+this.statusbar_height)+'px;'; // #endif // #ifdef H5 this.nav_style += 'height:44px;'; @@ -65,7 +65,7 @@ }, mounted() { // 获取系统状态栏高度 - this.statusbar_height = app.globalData.px_to_rpx(app.globalData.get_system_info('statusBarHeight', 0)); + this.statusbar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0, true)); } } diff --git a/pages/goods-detail/goods-detail.css b/pages/goods-detail/goods-detail.css index 8c8ceedd..106cf73c 100644 --- a/pages/goods-detail/goods-detail.css +++ b/pages/goods-detail/goods-detail.css @@ -30,7 +30,7 @@ } .top-nav { position: absolute; - bottom: 24rpx; + bottom: 6rpx; width: calc(100% - 40rpx); /* #ifdef H5 || APP */ bottom: 6px; diff --git a/pages/goods-detail/goods-detail.vue b/pages/goods-detail/goods-detail.vue index 4916ae84..bfd4cd68 100644 --- a/pages/goods-detail/goods-detail.vue +++ b/pages/goods-detail/goods-detail.vue @@ -695,7 +695,7 @@ export default { top_nav_more_top_value: 50, top_nav_right_icon_left_value: win_width <= 800 ? win_width - 40 : win_width - (win_width - 800) / 2 - 40, // #endif - top_nav_height: 50, + top_nav_height: 23, top_nav_title_index: 0, top_nav_title_scroll: true, top_nav_title_timer: null, diff --git a/pages/index/index.vue b/pages/index/index.vue index 8dac9dd2..fab3fa54 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -341,7 +341,7 @@ top_content_bg_color: 'background:linear-gradient(180deg, ' + theme_color + ' 0%, #f5f5f5 80%)', top_content_search_bg_color: 'background:linear-gradient(180deg, ' + theme_color + ' 0%, #f5f5f5 460%)', top_content_search_content_style: 'background-image: url("' + static_url + 'nav-top.png");', - top_content_style: 'padding-top:' + (bar_height + 7) + 'px;', + top_content_style: 'padding-top:' + (bar_height + 6) + 'px;', // #ifdef H5 || MP-TOUTIAO || APP top_content_style: 'padding-top:' + (bar_height + 10) + 'px;', // #endif diff --git a/pages/plugins/shop/detail/detail.vue b/pages/plugins/shop/detail/detail.vue index 3f4d3764..40352e67 100644 --- a/pages/plugins/shop/detail/detail.vue +++ b/pages/plugins/shop/detail/detail.vue @@ -7,7 +7,7 @@ - +