From cc6facb11d915d0acad71bad787b50acc1f7442f 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, 20 Jan 2025 15:53:15 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=89=E9=A1=B9=E5=8D=A1=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/data-magic.vue | 14 +++++-----
components/diy/goods-list.vue | 2 +-
.../diy/modules/data-magic/magic-carousel.vue | 4 +--
.../modules/data-magic/product-list-show.vue | 28 +++++++++----------
4 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/components/diy/data-magic.vue b/components/diy/data-magic.vue
index 90b6bcad..5074a0f6 100644
--- a/components/diy/data-magic.vue
+++ b/components/diy/data-magic.vue
@@ -12,8 +12,8 @@
-
-
+
+
@@ -61,8 +61,8 @@
-
-
+
+
@@ -71,7 +71,7 @@
{{ item.data_content.subtitle || '' }}
-
+
@@ -237,8 +237,8 @@
}
data_content.fit = fit;
// 商品名称和价格样式
- data_style.goods_title_style = this.goods_trends_config(data_style, 'title') + `line-height: ${ (item.data_style.goods_title_size + 3) * 2 }rpx;`;
- data_style.goods_price_style = this.goods_trends_config(data_style, 'price') + `line-height: ${ item.data_style.goods_price_size * 2 }rpx;`;
+ data_style.goods_title_style = this.goods_trends_config(data_style, 'title') + `line-height: ${ (item.data_style.goods_title_size + 3) * 2 }rpx;height: ${ (item.data_style.goods_title_size + 3) * 2 }rpx;`;
+ data_style.goods_price_style = this.goods_trends_config(data_style, 'price') + `line-height: ${ item.data_style.goods_price_size * 2 }rpx;height: ${ (item.data_style.goods_title_size + 3) * 2 }rpx;`;
const radius = !isEmpty(data_style.img_radius) ? data_style.img_radius : { radius: 4, radius_top_left: 4, radius_top_right: 4, radius_bottom_left: 4, radius_bottom_right: 4 };
data_style.get_img_radius = radius_computer(radius);
diff --git a/components/diy/goods-list.vue b/components/diy/goods-list.vue
index 662ec285..ab53540f 100644
--- a/components/diy/goods-list.vue
+++ b/components/diy/goods-list.vue
@@ -58,7 +58,7 @@
- 已售{{ item.sales_count }}件
+ 已售{{ item.sales_count || 0 }}件
diff --git a/components/diy/modules/data-magic/magic-carousel.vue b/components/diy/modules/data-magic/magic-carousel.vue
index b6f9bd4e..059976d8 100644
--- a/components/diy/modules/data-magic/magic-carousel.vue
+++ b/components/diy/modules/data-magic/magic-carousel.vue
@@ -1,5 +1,5 @@
-
+
@@ -9,7 +9,7 @@
-
+
diff --git a/components/diy/modules/data-magic/product-list-show.vue b/components/diy/modules/data-magic/product-list-show.vue
index 8e098a67..279cbff4 100644
--- a/components/diy/modules/data-magic/product-list-show.vue
+++ b/components/diy/modules/data-magic/product-list-show.vue
@@ -1,7 +1,7 @@
-
+
-
+
@@ -15,12 +15,12 @@
- {{ item.title }}
+ {{ item.title || '' }}
- {{ item.show_price_symbol }}
- {{ item.min_price }}
+ {{ item.show_price_symbol || '' }}
+ {{ item.min_price || '' }}
- {{ item.show_price_unit }}
+ {{ item.show_price_unit || '' }}
@@ -29,7 +29,7 @@
-
+
@@ -44,19 +44,19 @@
- {{ item.show_price_symbol }}{{ item.min_price }}
+ {{ item.show_price_symbol || ''}}{{ item.min_price || ''}}
- {{ item.show_price_unit }}
+ {{ item.show_price_unit || ''}}
- {{ item.title }}
+ {{ item.title || '' }}
-
+
@@ -70,11 +70,11 @@
- {{ item.title }}
+ {{ item.title || '' }}
- {{ item.show_price_symbol }}{{ item.min_price }}
+ {{ item.show_price_symbol || ''}}{{ item.min_price || '' }}
- {{ item.show_price_unit }}
+ {{ item.show_price_unit || ''}}