From 2dbfa77bee275031d732112bc178232ecaa2c33d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 21 Oct 2023 19:59:41 +0800 Subject: [PATCH] =?UTF-8?q?code=20review=EF=BC=9Abanner=20=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/views/mall/product/spu/form/CouponSelect.vue | 5 ++++- src/views/mall/product/spu/form/OtherSettingsForm.vue | 1 + src/views/mall/promotion/{market => }/banner/BannerForm.vue | 0 src/views/mall/promotion/{market => }/banner/index.vue | 0 5 files changed, 6 insertions(+), 2 deletions(-) rename src/views/mall/promotion/{market => }/banner/BannerForm.vue (100%) rename src/views/mall/promotion/{market => }/banner/index.vue (100%) diff --git a/.env b/.env index c079b153..3c5303b5 100644 --- a/.env +++ b/.env @@ -11,7 +11,7 @@ VITE_OPEN=true VITE_APP_TENANT_ENABLE=true # 验证码的开关 -VITE_APP_CAPTCHA_ENABLE=false +VITE_APP_CAPTCHA_ENABLE=true # 百度统计 VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc diff --git a/src/views/mall/product/spu/form/CouponSelect.vue b/src/views/mall/product/spu/form/CouponSelect.vue index e0f32af2..67e057b1 100644 --- a/src/views/mall/product/spu/form/CouponSelect.vue +++ b/src/views/mall/product/spu/form/CouponSelect.vue @@ -201,20 +201,23 @@ const resetQuery = () => { queryFormRef?.value?.resetFields() handleQuery() } + /** 打开弹窗 */ const open = async () => { dialogVisible.value = true resetQuery() } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 + const handleSelectionChange = (val: CouponTemplateApi.CouponTemplateVO[]) => { emit( 'update:multipleSelection', val.map((item) => ({ id: item.id, name: item.name })) ) } + const submitForm = () => { dialogVisible.value = false } +// TODO @puhui999:提前 todo,先不用改;未来单独成组件,其它模块可以服用;例如说,满减送,可以选择优惠劵; - diff --git a/src/views/mall/product/spu/form/OtherSettingsForm.vue b/src/views/mall/product/spu/form/OtherSettingsForm.vue index 24498860..42e61ba1 100644 --- a/src/views/mall/product/spu/form/OtherSettingsForm.vue +++ b/src/views/mall/product/spu/form/OtherSettingsForm.vue @@ -42,6 +42,7 @@ +