From 14c9a600aa2f2ea1ebd59d485c68b5a30821234e 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, 26 Aug 2024 17:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E5=81=87?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-shop-list/index.vue | 29 +++++++++++++++++-- .../components/main/default/shop-list.ts | 20 ++++++------- .../components/main/default/shop-tabs.ts | 22 +++++++------- 3 files changed, 48 insertions(+), 23 deletions(-) diff --git a/src/components/model-shop-list/index.vue b/src/components/model-shop-list/index.vue index 749ebcbc..00cd4e9c 100644 --- a/src/components/model-shop-list/index.vue +++ b/src/components/model-shop-list/index.vue @@ -22,7 +22,7 @@
{{ item.title }}
-
+
{{ icon_data.name }}
@@ -151,13 +151,36 @@ const default_list = { title: '测试商品标题', min_original_price: '41.2', show_original_price_symbol: '¥', + show_original_price_unit: '/ 台', min_price: '51', show_price_symbol: '¥', - show_price_unit: '', + show_price_unit: '/ 台', sales_count: '1000', images: '', new_cover: [], - plugins_view_icon_data: [] + plugins_view_icon_data: [ + { + name: '满减活动', + bg_color: '#EA3323', + br_color: '', + color: '#fff', + url: '' + }, + { + name: '包邮', + bg_color: '', + br_color: '#EA3323', + color: '#EA3323', + url: '' + }, + { + name: '领劵', + bg_color: '', + br_color: '#EA9223', + color: '#EA9223 ', + url: '' + } + ] }; const list = ref([]); diff --git a/src/layout/components/main/default/shop-list.ts b/src/layout/components/main/default/shop-list.ts index 02693e18..f2c9c5cb 100644 --- a/src/layout/components/main/default/shop-list.ts +++ b/src/layout/components/main/default/shop-list.ts @@ -70,11 +70,11 @@ const defaultProductList: DefaultProductList = { padding_right: 10, }, shop_img_radius: { - radius: 0, - radius_top_left: 0, - radius_top_right: 0, - radius_bottom_left: 0, - radius_bottom_right: 0, + radius: 4, + radius_top_left: 4, + radius_top_right: 4, + radius_bottom_left: 4, + radius_bottom_right: 4, }, shop_radius: { radius: 8, @@ -87,11 +87,11 @@ const defaultProductList: DefaultProductList = { content_spacing: 10, content_outer_width: 104, content_outer_height: 189, - shop_title_typeface: 'normal', + shop_title_typeface: '500', shop_title_size: 14, shop_title_color: "#333333", - shop_price_typeface: 'normal', - shop_price_size: 14, + shop_price_typeface: '500', + shop_price_size: 18, shop_price_color: "#EA3323;", shop_sold_number_typeface: 'normal', shop_sold_number_size: 10, @@ -103,11 +103,11 @@ const defaultProductList: DefaultProductList = { shop_button_size: 12, shop_button_color: [ { - color: '#2a94ff', + color: '#FF3D53', color_percentage: '' }, { - color: '#2a94ff', + color: '#D73A3A', color_percentage: '' } ], diff --git a/src/layout/components/main/default/shop-tabs.ts b/src/layout/components/main/default/shop-tabs.ts index b540ea67..abaf3ae6 100644 --- a/src/layout/components/main/default/shop-tabs.ts +++ b/src/layout/components/main/default/shop-tabs.ts @@ -20,6 +20,7 @@ interface DefaultProductList { tabs_list: articleTabsList[]; is_show: string[]; is_shop_show: boolean; + is_price_solo: boolean; shop_type: string; shop_button_effect: string; shop_button_size: string; @@ -71,6 +72,7 @@ const defaultProductList: DefaultProductList = { ], is_show: ['title', 'plugins_view_icon', 'price', 'sales_count', 'original_price'], is_shop_show: true, + is_price_solo: true, shop_type: '0', shop_button_effect: '0', shop_button_size: '1', @@ -92,11 +94,11 @@ const defaultProductList: DefaultProductList = { padding_right: 10, }, shop_img_radius: { - radius: 0, - radius_top_left: 0, - radius_top_right: 0, - radius_bottom_left: 0, - radius_bottom_right: 0, + radius: 4, + radius_top_left: 4, + radius_top_right: 4, + radius_bottom_left: 4, + radius_bottom_right: 4, }, shop_radius: { radius: 8, @@ -109,11 +111,11 @@ const defaultProductList: DefaultProductList = { content_spacing: 10, content_outer_width: 104, content_outer_height: 189, - shop_title_typeface: 'normal', + shop_title_typeface: '500', shop_title_size: 14, shop_title_color: "#333333", - shop_price_typeface: 'normal', - shop_price_size: 14, + shop_price_typeface: '500', + shop_price_size: 18, shop_price_color: "#EA3323;", shop_sold_number_typeface: 'normal', shop_sold_number_size: 10, @@ -125,11 +127,11 @@ const defaultProductList: DefaultProductList = { shop_button_size: 12, shop_button_color: [ { - color: '#2a94ff', + color: '#FF3D53', color_percentage: '' }, { - color: '#2a94ff', + color: '#D73A3A', color_percentage: '' } ],