From de2677f8e17d260a83aba37e05202396c2311793 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, 24 Mar 2025 18:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-coupon/index.vue | 6 ++--- .../model-coupon/model-coupon-content.vue | 6 ++--- src/components/model-shop/index.vue | 25 +++++++++++++------ src/views/layout/index.vue | 2 +- 4 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/components/model-coupon/index.vue b/src/components/model-coupon/index.vue index 51107497..1bf75392 100644 --- a/src/components/model-coupon/index.vue +++ b/src/components/model-coupon/index.vue @@ -194,9 +194,9 @@ const theme_bg_img = ref({ }); // 初始化数据 onMounted(() => { - if (!isEmpty(form.value.data_list) && form.value.data_type == '1') { + if (!isEmpty(form.value.data_list) && form.value.data_type == '0') { data_list.value = form.value.data_list; - } else if (form.value.data_type == '0') { + } else if (form.value.data_type == '1') { if (!isEmpty(form.value.data_auto_list)) { data_list.value = form.value.data_auto_list; } else { @@ -243,7 +243,7 @@ const data_list_computer = computed(() => { watch( () => data_list_computer.value, (new_value) => { - if (new_value.data_type == '0') { + if (new_value.data_type == '1') { 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 b9b840d2..104a2f73 100644 --- a/src/components/model-coupon/model-coupon-content.vue +++ b/src/components/model-coupon/model-coupon-content.vue @@ -17,7 +17,7 @@ {{ item.name }} -