From b7b988fe66bb403c47ba6c9628c6589dd5c08248 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Mon, 4 Nov 2024 16:45:25 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=86=85=E5=AE=B9=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/div-content/index.vue | 6 +++--
.../model-goods-list-styles.vue | 22 +++++++++----------
.../model-goods-tabs-styles.vue | 22 +++++++++----------
3 files changed, 26 insertions(+), 24 deletions(-)
diff --git a/src/components/common/div-content/index.vue b/src/components/common/div-content/index.vue
index 0cc67398..e47a9b5b 100644
--- a/src/components/common/div-content/index.vue
+++ b/src/components/common/div-content/index.vue
@@ -182,8 +182,10 @@ const model_style = computed(() => {
// 默认组件z-index为1
let z_index = 'z-index: 1';
// 如果开通上浮显示的时候,会改变他的z-index值
- if (item.com_data.style.common_style?.floating_up != 0) {
- z_index = `z-index: ${ item.com_data.style.common_style?.is_bottom_up == '1' ? '0' : '1'}`;
+ if (item.com_data.style.common_style?.is_bottom_up == '1') {
+ z_index = 'z-index: 0';
+ } else {
+ z_index = 'z-index: 1';
}
item.com_data.style.offset_number_percentage = (bottom / window.innerHeight).toFixed(4);
return item.key == 'float-window' ? `bottom: ${((bottom / window.innerHeight) * 100).toFixed(4) + '%'};` : `margin-top: -${item.com_data.style.common_style?.floating_up || 0}px;${z_index};`;
diff --git a/src/components/model-goods-list/model-goods-list-styles.vue b/src/components/model-goods-list/model-goods-list-styles.vue
index 448c6254..c10e8bd6 100644
--- a/src/components/model-goods-list/model-goods-list-styles.vue
+++ b/src/components/model-goods-list/model-goods-list-styles.vue
@@ -31,18 +31,23 @@