From a2454a0d3b4cf7564898a870ccbdfc24ceb577ea Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 9 Oct 2024 18:32:47 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=80=89=E9=A1=B9=E5=8D=A1=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-coupon/index.vue | 6 +++--- src/components/model-coupon/model-coupon-content.vue | 6 +++--- src/config/const/coupon.ts | 2 +- src/views/layout/index.vue | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/model-coupon/index.vue b/src/components/model-coupon/index.vue index ebf611b8..983543b9 100644 --- a/src/components/model-coupon/index.vue +++ b/src/components/model-coupon/index.vue @@ -184,9 +184,9 @@ const theme_bg_img = ref({ url_3: ``, }); onMounted(() => { - if (!isEmpty(form.value.data_list) && form.value.data_type == '0') { + if (!isEmpty(form.value.data_list) && form.value.data_type == '1') { data_list.value = form.value.data_list; - } else if (form.value.data_type == '1') { + } else if (form.value.data_type == '0') { if (!isEmpty(form.value.data_auto_list)) { data_list.value = form.value.data_auto_list; } else { @@ -224,7 +224,7 @@ const data_list_computer = computed(() => { watch( () => data_list_computer.value, (new_value) => { - if (new_value.data_type == '1') { + if (new_value.data_type == '0') { get_coupon(); } else { if (!isEmpty(form.value.data_list)) { diff --git a/src/components/model-coupon/model-coupon-content.vue b/src/components/model-coupon/model-coupon-content.vue index 288c9ee1..bedffd86 100644 --- a/src/components/model-coupon/model-coupon-content.vue +++ b/src/components/model-coupon/model-coupon-content.vue @@ -15,7 +15,7 @@ {{ item.name }} -