diff --git a/src/api/mall/promotion/diy/page.ts b/src/api/mall/promotion/diy/page.ts index 1cd34282..a834b240 100644 --- a/src/api/mall/promotion/diy/page.ts +++ b/src/api/mall/promotion/diy/page.ts @@ -5,7 +5,7 @@ export interface DiyPageVO { templateId?: number name: string remark: string - previewImageUrls: string[] + previewPicUrls: string[] property: string } diff --git a/src/api/mall/promotion/diy/template.ts b/src/api/mall/promotion/diy/template.ts index f8d4bc80..87134c95 100644 --- a/src/api/mall/promotion/diy/template.ts +++ b/src/api/mall/promotion/diy/template.ts @@ -7,7 +7,7 @@ export interface DiyTemplateVO { used: boolean usedTime?: Date remark: string - previewImageUrls: string[] + previewPicUrls: string[] property: string } diff --git a/src/components/DiyEditor/components/ComponentContainerProperty.vue b/src/components/DiyEditor/components/ComponentContainerProperty.vue index 4f48e204..9d0750da 100644 --- a/src/components/DiyEditor/components/ComponentContainerProperty.vue +++ b/src/components/DiyEditor/components/ComponentContainerProperty.vue @@ -23,7 +23,7 @@ - + - + diff --git a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx index 1817428d..689690b0 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx +++ b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx @@ -2,15 +2,13 @@ import * as CouponTemplateApi from '@/api/mall/promotion/coupon/couponTemplate' import { CouponTemplateValidityTypeEnum, PromotionDiscountTypeEnum } from '@/utils/constants' import { floatToFixed2 } from '@/utils' import { formatDate } from '@/utils/formatTime' +import { object } from 'vue-types' // 优惠值 -// TODO @疯狂:idea 有告警 export const CouponDiscount = defineComponent({ name: 'CouponDiscount', props: { - coupon: { - type: CouponTemplateApi.CouponTemplateVO - } + coupon: object() }, setup(props) { const coupon = props.coupon as CouponTemplateApi.CouponTemplateVO @@ -35,9 +33,7 @@ export const CouponDiscount = defineComponent({ export const CouponDiscountDesc = defineComponent({ name: 'CouponDiscountDesc', props: { - coupon: { - type: CouponTemplateApi.CouponTemplateVO - } + coupon: object() }, setup(props) { const coupon = props.coupon as CouponTemplateApi.CouponTemplateVO @@ -61,9 +57,7 @@ export const CouponDiscountDesc = defineComponent({ export const CouponValidTerm = defineComponent({ name: 'CouponValidTerm', props: { - coupon: { - type: CouponTemplateApi.CouponTemplateVO - } + coupon: object() }, setup(props) { const coupon = props.coupon as CouponTemplateApi.CouponTemplateVO diff --git a/src/components/DiyEditor/components/mobile/CouponCard/config.ts b/src/components/DiyEditor/components/mobile/CouponCard/config.ts index 40c6bed3..304533d1 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/config.ts +++ b/src/components/DiyEditor/components/mobile/CouponCard/config.ts @@ -24,7 +24,6 @@ export interface CouponCardProperty { } // 定义组件 -// TODO @疯狂:idea 有告警 export const component = { id: 'CouponCard', name: '优惠券', diff --git a/src/components/DiyEditor/components/mobile/MagicCube/config.ts b/src/components/DiyEditor/components/mobile/MagicCube/config.ts index d2edfddf..5e10ab55 100644 --- a/src/components/DiyEditor/components/mobile/MagicCube/config.ts +++ b/src/components/DiyEditor/components/mobile/MagicCube/config.ts @@ -31,7 +31,6 @@ export interface MagicCubeItemProperty { } // 定义组件 -// TODO @疯狂:有 idea 爆红告警 export const component = { id: 'MagicCube', name: '广告魔方', diff --git a/src/components/DiyEditor/components/mobile/ProductCard/config.ts b/src/components/DiyEditor/components/mobile/ProductCard/config.ts index fd4b21fc..735b6ba0 100644 --- a/src/components/DiyEditor/components/mobile/ProductCard/config.ts +++ b/src/components/DiyEditor/components/mobile/ProductCard/config.ts @@ -59,7 +59,6 @@ export interface ProductCardFieldProperty { } // 定义组件 -// TODO @疯狂:idea 有告警 export const component = { id: 'ProductCard', name: '商品卡片', diff --git a/src/components/DiyEditor/components/mobile/ProductList/config.ts b/src/components/DiyEditor/components/mobile/ProductList/config.ts index 6522a314..1f168323 100644 --- a/src/components/DiyEditor/components/mobile/ProductList/config.ts +++ b/src/components/DiyEditor/components/mobile/ProductList/config.ts @@ -38,7 +38,6 @@ export interface ProductListFieldProperty { } // 定义组件 -// TODO @疯狂:idea 有告警 export const component = { id: 'ProductList', name: '商品栏', diff --git a/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue b/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue index 3bca5da9..e003b081 100644 --- a/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue +++ b/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue @@ -1,17 +1,16 @@