-
已售{{ item.sales_count }}件
+
已售{{ item.sales_count }}件
+
@@ -122,6 +121,13 @@ const form = computed(() => props.value?.content || {});
const new_style = computed(() => props.value?.style || {});
// 目前显示假数据,日后通过分类或者选择的商品来显示真实数据
+interface plugins_icon_data {
+ name: string;
+ bg_color: string;
+ br_color: string;
+ color: string;
+ url: string;
+}
interface product_list {
title: string;
images: string;
@@ -133,6 +139,7 @@ interface product_list {
show_price_symbol: string;
show_price_unit: string;
sales_count: string;
+ plugins_view_icon_data: plugins_icon_data[];
}
const default_list = {
title: '华为荣耀畅享平板换屏服务 屏幕换外屏',
@@ -144,6 +151,7 @@ const default_list = {
sales_count: '1000',
images: '',
new_url: [],
+ plugins_view_icon_data: []
};
const list = ref
([]);
@@ -312,6 +320,14 @@ const style_config = (typeface: string, size: number, color: string | object, ty
const button_gradient = () => {
return gradient_handle(new_style.value.shop_button_color, '90deg');
};
+// icon标志显示样式
+const icon_style = (item: { bg_color: string; color: string; br_color: string; }) => {
+ let style = `background: ${item.bg_color};color: ${item.color};`;
+ if (!isEmpty(item.br_color)) {
+ style += `border: 1px solid ${item.br_color};`
+ }
+ return style;
+}
// 公共样式
const style_container = computed(() => {
if (props.isCommonStyle) {
@@ -350,20 +366,6 @@ const style_container = computed(() => {
height: v-bind(button_size);
line-height: v-bind(button_size);
}
-.one1 {
- border: 1px solid #ea3323;
- background: #ea3323;
- color: #fff;
-}
-.one2 {
- border: 1px solid #ea3323;
- color: #ea3323;
-}
-.one3 {
- border: 1px solid #ffc300;
- color: #ffc300;
-}
-
.two-columns {
width: calc((100% - v-bind(two_columns)) / 2);
}