From b8e6faa9327d235cd93e154c3dd302f2182a67b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 12 Feb 2025 10:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=89=E9=A1=B9=E5=8D=A1?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/diy.vue | 4 ++-- components/diy/header.vue | 2 +- components/diy/modules/tabs-view.vue | 2 +- components/diy/tabs.vue | 13 +++++++++---- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/components/diy/diy.vue b/components/diy/diy.vue index 8454bfd4..df9905c1 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -432,9 +432,9 @@ // 顶部导航的高度 let header_top_height = (header.com_data.content.data_alone_row_value.length > 0 ? parseInt(header.com_data.style.data_alone_row_space || 5) : 0) + 33 + (header.com_data.content.data_alone_row_value.length > 0 ? 33 : 0); // 选项卡和选项卡轮播置顶时不需要加入安全距离 - if (!(new_data.com_data.content.tabs_top_up == '1' && ['tabs', 'tabs-carousel'].includes(new_data.key))) { + // if (!(new_data.com_data.content.tabs_top_up == '1' && ['tabs', 'tabs-carousel'].includes(new_data.key))) { new_data.com_data.style.common_style.padding_top = parseInt(new_data.com_data.style.common_style.padding_top) + header_top_height; - } + // } return new_data; } return item; diff --git a/components/diy/header.vue b/components/diy/header.vue index 5e08c01b..881ad147 100644 --- a/components/diy/header.vue +++ b/components/diy/header.vue @@ -363,7 +363,7 @@ .header-container { width: 100%; .header-around { - z-index: 11; + z-index: 12; } .model-top { .roll { diff --git a/components/diy/modules/tabs-view.vue b/components/diy/modules/tabs-view.vue index d5876ace..4adff2bb 100644 --- a/components/diy/modules/tabs-view.vue +++ b/components/diy/modules/tabs-view.vue @@ -54,7 +54,7 @@ - + 全部选项卡 diff --git a/components/diy/tabs.vue b/components/diy/tabs.vue index 3bf4d17a..68e0d674 100644 --- a/components/diy/tabs.vue +++ b/components/diy/tabs.vue @@ -2,9 +2,11 @@ - - - + + + + + @@ -98,6 +100,7 @@ tabs_carousel_seat_height: 0, // 置顶时,选项卡样式 tabs_top_style: '', + style_margin_top: '', }; }, created() { @@ -157,8 +160,10 @@ tabs_data: new_tabs_data, style_container: this.propIsCommon ? new_tabs_background + common_styles_computer(new_style.common_style) : new_content.tabs_top_up == '1' ? new_tabs_background + gradient_computer(new_style.common_style) + margin_computer(this.propSpacingCommonStyle) : '', // 如果是选项卡轮播,不需要走默认样式 // 如果开了滑动置顶,并且开了沉浸式,不需要走传递过来的index,否则的话就用传递过来的index - style_img_container: this.propIsCommon ? common_img_computer(new_style.common_style, new_content.tabs_top_up == '1' ? -1 : this.propIndex) : new_content.tabs_top_up == '1' ? background_computer(new_style.common_style) + padding_computer(this.propSpacingCommonStyle, 1, true) + 'box-sizing: border-box;' : '', // 如果是选项卡轮播,不需要走默认样式 + style_img_container: this.propIsCommon ? common_img_computer(new_style.common_style, this.propIndex) : new_content.tabs_top_up == '1' ? background_computer(new_style.common_style) + padding_computer(this.propSpacingCommonStyle, 1, true) + 'box-sizing: border-box;' : '', // 如果是选项卡轮播,不需要走默认样式 tabs_top_style: new_tabs_top_style, + // 沉浸模式下并且开通了安全距离 会显示-的margin + style_margin_top: this.propIsImmersionModel ? `margin-top: -${ this.propTop * 2 }rpx;` : '', // 判断是否置顶 top_up: new_top_up, });