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 || ''}}