diff --git a/src/components/common/data-filter/index.vue b/src/components/common/data-filter/index.vue
index f3dc2781..36af7e0d 100644
--- a/src/components/common/data-filter/index.vue
+++ b/src/components/common/data-filter/index.vue
@@ -191,6 +191,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -233,7 +274,7 @@
default: () => {},
},
type: {
- type: String as PropType<'goods' | 'blog' | 'article' | 'binding' | 'realstore' | 'merchant' | 'ask' | 'activity'>,
+ type: String as PropType<'goods' | 'blog' | 'article' | 'binding' | 'realstore' | 'merchant' | 'ask' | 'activity' | 'coupon'>,
default: 'goods',
}
});
@@ -288,6 +329,12 @@
imgParam: 'cover',
titleParam: 'title',
},
+ coupon: {
+ optionListKey: 'data_type_list',
+ imgParam: '',
+ titleParam: 'name',
+ typeParam: 'custom',
+ },
default: {
optionListKey: 'brand_data_type_list',
imgParam: 'logo',
diff --git a/src/components/model-coupon/index.vue b/src/components/model-coupon/index.vue
index 1bf75392..489cb58f 100644
--- a/src/components/model-coupon/index.vue
+++ b/src/components/model-coupon/index.vue
@@ -195,7 +195,11 @@ const theme_bg_img = ref({
// 初始化数据
onMounted(() => {
if (!isEmpty(form.value.data_list) && form.value.data_type == '0') {
- data_list.value = form.value.data_list;
+ data_list.value = form.value.data_list.map((item: any) => ({
+ ...item.data,
+ name: !isEmpty(item.new_title) ? item.new_title : item.data.name,
+ new_cover: item.new_cover,
+ }));
} else if (form.value.data_type == '1') {
if (!isEmpty(form.value.data_auto_list)) {
data_list.value = form.value.data_auto_list;
@@ -247,7 +251,11 @@ watch(
get_coupon();
} else {
if (!isEmpty(form.value.data_list)) {
- data_list.value = cloneDeep(form.value.data_list);
+ data_list.value = form.value.data_list.map((item: any) => ({
+ ...item.data,
+ name: !isEmpty(item.new_title) ? item.new_title : item.data.name,
+ new_cover: item.new_cover,
+ }));
} else {
data_list.value = Array(4).fill(default_list);
}
diff --git a/src/components/model-coupon/model-coupon-content.vue b/src/components/model-coupon/model-coupon-content.vue
index 104a2f73..8b3c31d4 100644
--- a/src/components/model-coupon/model-coupon-content.vue
+++ b/src/components/model-coupon/model-coupon-content.vue
@@ -12,74 +12,15 @@
优惠券数据
-
-
- {{ item.name }}
-
-
-
-
-
-
-
- {{ row.name }}
-
-
-
+添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+