diff --git a/src/assets/images/components/model-goods-list/price.png b/src/assets/images/components/model-goods-list/price.png
deleted file mode 100644
index c162b9a0..00000000
Binary files a/src/assets/images/components/model-goods-list/price.png and /dev/null differ
diff --git a/src/components/model-custom/components/index-default.ts b/src/components/model-custom/components/index-default.ts
index 0f90dacc..06fd70aa 100644
--- a/src/components/model-custom/components/index-default.ts
+++ b/src/components/model-custom/components/index-default.ts
@@ -97,7 +97,7 @@ export const icon_com_data = {
icon_weight: 'normal',
icon_size: 12,
icon_option: 'none',
- icon_location: 'left',
+ icon_location: 'center',
icon_padding: {
padding: 0,
padding_top: 0,
diff --git a/src/components/model-goods-list/index.vue b/src/components/model-goods-list/index.vue
index 16f8c4f7..04a7654b 100644
--- a/src/components/model-goods-list/index.vue
+++ b/src/components/model-goods-list/index.vue
@@ -37,8 +37,8 @@
{{ item.show_price_unit }}
-
+ {{ item.show_original_price_symbol }}{{ item.min_original_price }}
{{ item.show_original_price_unit }}
@@ -72,8 +72,8 @@
{{ item.show_price_unit }}
-
+ {{ item.show_original_price_symbol }}{{ item.min_original_price }}
{{ item.show_original_price_unit }}
@@ -121,8 +121,8 @@
{{ item.show_price_unit }}
-
+ {{ item.show_original_price_symbol }}{{ item.min_original_price }}
{{ item.show_original_price_unit }}
@@ -491,9 +491,6 @@ watchEffect(() => {
}
.original-price-left {
width: 1rem;
- background-image: url('/src/assets/images/components/model-goods-list/price.png');
- background-size: 100% 100%;
- background-repeat: no-repeat;
}
.original-price {
background-color: #ede2c5;
diff --git a/src/views/layout/components/main/default/goods-list.ts b/src/views/layout/components/main/default/goods-list.ts
index 7782fe26..77cfa692 100644
--- a/src/views/layout/components/main/default/goods-list.ts
+++ b/src/views/layout/components/main/default/goods-list.ts
@@ -1,4 +1,6 @@
import defaultCommon from './index';
+import { online_url } from '@/utils';
+const new_url = await online_url('/static/app/common/').then((res) => res);
interface DefaultProductList {
content: {
theme: string;
@@ -15,6 +17,7 @@ interface DefaultProductList {
order_by_type: string;
order_by_rule: string;
is_show: string[];
+ static_img: uploadList[];
is_shop_show: string;
shop_type: string;
shop_button_text: string;
@@ -68,6 +71,7 @@ const defaultProductList: DefaultProductList = {
order_by_type: '0',
order_by_rule: '0',
is_show: ['title', 'plugins_view_icon', 'price', 'sales_count', 'original_price'],
+ static_img: [{ id: 2, url: new_url + 'price.png', original: '角标', title: '角标', ext: '.png', type: 'img' }],
is_shop_show: '1',
shop_type: 'text',
shop_button_text: '购买',
diff --git a/src/views/layout/components/main/default/goods-tabs.ts b/src/views/layout/components/main/default/goods-tabs.ts
index daf68ad8..ecc03a3b 100644
--- a/src/views/layout/components/main/default/goods-tabs.ts
+++ b/src/views/layout/components/main/default/goods-tabs.ts
@@ -1,4 +1,6 @@
import defaultCommon from './index';
+import { online_url } from '@/utils';
+const new_url = await online_url('/static/app/common/').then((res) => res);
interface articleTabsList {
id: string;
title: string;
@@ -22,6 +24,7 @@ interface DefaultProductList {
carousel_col: number;
tabs_list: articleTabsList[];
tabs_active_index: number;
+ static_img: uploadList[];
is_show: string[];
is_shop_show: string;
is_price_solo: string;
@@ -83,6 +86,7 @@ const defaultProductList: DefaultProductList = {
{ id: '4', title: '测试三', img: [], desc: '简介', data_type: '0', category_ids: [], brand_ids: [], data_ids: [], number: 4, order_by_type: '0', order_by_rule: '0', data_list: [], data_auto_list: [] },
],
tabs_active_index: 0,
+ static_img: [{ id: 2, url: new_url + 'price.png', original: '角标', title: '角标', ext: '.png', type: 'img' }],
is_show: ['title', 'plugins_view_icon', 'price', 'sales_count', 'original_price'],
is_shop_show: '1',
is_price_solo: '1',