From 0207271e6200828bfe8bc6f1f73fec5f642fbd99 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 20 Nov 2025 21:39:53 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90ele/antd=E3=80=91?= =?UTF-8?q?=E3=80=90mall=E3=80=91diy=20=E7=9A=84=20coupon=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC=E7=BB=9F?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../diy-editor/components/mobile/coupon-card/component.tsx | 1 - .../diy-editor/components/mobile/coupon-card/component.tsx | 1 + .../diy-editor/components/mobile/coupon-card/property.vue | 6 ++---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx index d889c7540..5782b9a9f 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx @@ -1,5 +1,4 @@ /* eslint-disable vue/one-component-per-file */ -// TODO @YunaiV eslint检测了 import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTemplate'; import { defineComponent } from 'vue'; diff --git a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx index b09a30966..5782b9a9f 100644 --- a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx +++ b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx @@ -1,3 +1,4 @@ +/* eslint-disable vue/one-component-per-file */ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTemplate'; import { defineComponent } from 'vue'; diff --git a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue index d84038775..174f767a6 100644 --- a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue +++ b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue @@ -24,7 +24,7 @@ import { ElTooltip, } from 'element-plus'; -import * as CouponTemplateApi from '#/api/mall/promotion/coupon/couponTemplate'; +import { getCouponTemplateList } from '#/api/mall/promotion/coupon/couponTemplate'; import UploadImg from '#/components/upload/image-upload.vue'; import { ColorInput } from '#/views/mall/promotion/components'; import CouponSelect from '#/views/mall/promotion/coupon/components/select.vue'; @@ -65,9 +65,7 @@ watch( () => formData.value.couponIds, async () => { if (formData.value.couponIds?.length > 0) { - couponList.value = await CouponTemplateApi.getCouponTemplateList( - formData.value.couponIds, - ); + couponList.value = await getCouponTemplateList(formData.value.couponIds); } }, {