From b86f08230687d85a0ea379efe38d22568e80ba23 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 19 Dec 2023 23:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20code=20review=EF=BC=9A=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E8=A3=85=E4=BF=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppLinkInput/data.ts | 19 ------------------- .../components/ComponentContainer.vue | 3 +++ .../mobile/CouponCard/component.tsx | 1 + .../components/mobile/CouponCard/config.ts | 1 + .../components/mobile/HotZone/config.ts | 1 + .../components/mobile/MagicCube/config.ts | 2 ++ .../components/mobile/MenuGrid/config.ts | 1 + .../components/mobile/MenuList/config.ts | 1 + .../components/mobile/NoticeBar/property.vue | 1 - .../components/mobile/ProductCard/config.ts | 1 + .../components/mobile/ProductCard/index.vue | 1 + .../components/mobile/ProductList/config.ts | 1 + .../mobile/PromotionArticle/index.vue | 1 + .../mobile/PromotionCombination/config.ts | 2 ++ .../components/mobile/SearchBar/config.ts | 1 + .../components/mobile/VideoPlayer/config.ts | 1 + src/components/DiyEditor/util.ts | 1 + .../mall/promotion/diy/template/decorate.vue | 5 +++-- .../mall/promotion/diy/template/index.vue | 2 +- 19 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/components/AppLinkInput/data.ts b/src/components/AppLinkInput/data.ts index 0a8208eb..fe6bb291 100644 --- a/src/components/AppLinkInput/data.ts +++ b/src/components/AppLinkInput/data.ts @@ -35,8 +35,6 @@ export const enum APP_LINK_TYPE_ENUM { PRODUCT_DETAIL_NORMAL, // 拼团商品详情 PRODUCT_DETAIL_COMBINATION, - // 积分商品详情 - PRODUCT_DETAIL_POINT, // 秒杀商品详情 PRODUCT_DETAIL_SECKILL } @@ -80,10 +78,6 @@ export const APP_LINK_GROUP_LIST = [ name: '系统设置', path: '/pages/public/setting' }, - { - name: '问题反馈', - path: '/pages/public/feedback' - }, { name: '常见问题', path: '/pages/public/faq' @@ -112,11 +106,6 @@ export const APP_LINK_GROUP_LIST = [ name: '秒杀商品详情', path: '/pages/goods/seckill', type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_SECKILL - }, - { - name: '积分商品详情', - path: '/pages/goods/score', - type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_POINT } ] }, @@ -145,10 +134,6 @@ export const APP_LINK_GROUP_LIST = [ name: '签到中心', path: '/pages/app/sign' }, - { - name: '积分商城', - path: '/pages/app/score-shop' - }, { name: '优惠券中心', path: '/pages/coupon/list' @@ -242,10 +227,6 @@ export const APP_LINK_GROUP_LIST = [ name: '地址管理', path: '/pages/user/address/list' }, - { - name: '发票管理', - path: '/pages/user/invoice/list' - }, { name: '用户佣金', path: '/pages/user/wallet/commission' diff --git a/src/components/DiyEditor/components/ComponentContainer.vue b/src/components/DiyEditor/components/ComponentContainer.vue index e6f1beb3..14093f48 100644 --- a/src/components/DiyEditor/components/ComponentContainer.vue +++ b/src/components/DiyEditor/components/ComponentContainer.vue @@ -100,6 +100,7 @@ const emits = defineEmits<{ (e: 'copy'): void (e: 'delete'): void }>() + /** * 移动组件 * @param direction 移动方向 @@ -107,12 +108,14 @@ const emits = defineEmits<{ const handleMoveComponent = (direction: number) => { emits('move', direction) } + /** * 复制组件 */ const handleCopyComponent = () => { emits('copy') } + /** * 删除组件 */ diff --git a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx index 1542cad6..1817428d 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx +++ b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx @@ -4,6 +4,7 @@ import { floatToFixed2 } from '@/utils' import { formatDate } from '@/utils/formatTime' // 优惠值 +// TODO @疯狂:idea 有告警 export const CouponDiscount = defineComponent({ name: 'CouponDiscount', props: { diff --git a/src/components/DiyEditor/components/mobile/CouponCard/config.ts b/src/components/DiyEditor/components/mobile/CouponCard/config.ts index 304533d1..40c6bed3 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/config.ts +++ b/src/components/DiyEditor/components/mobile/CouponCard/config.ts @@ -24,6 +24,7 @@ export interface CouponCardProperty { } // 定义组件 +// TODO @疯狂:idea 有告警 export const component = { id: 'CouponCard', name: '优惠券', diff --git a/src/components/DiyEditor/components/mobile/HotZone/config.ts b/src/components/DiyEditor/components/mobile/HotZone/config.ts index 9dcebcc2..80ed8559 100644 --- a/src/components/DiyEditor/components/mobile/HotZone/config.ts +++ b/src/components/DiyEditor/components/mobile/HotZone/config.ts @@ -9,6 +9,7 @@ export interface HotZoneProperty { // 组件样式 style: ComponentStyle } + /** 热区项目属性 */ export interface HotZoneItemProperty { // 链接的名称 diff --git a/src/components/DiyEditor/components/mobile/MagicCube/config.ts b/src/components/DiyEditor/components/mobile/MagicCube/config.ts index bd3120bb..d2edfddf 100644 --- a/src/components/DiyEditor/components/mobile/MagicCube/config.ts +++ b/src/components/DiyEditor/components/mobile/MagicCube/config.ts @@ -13,6 +13,7 @@ export interface MagicCubeProperty { // 组件样式 style: ComponentStyle } + /** 广告魔方项目属性 */ export interface MagicCubeItemProperty { // 图标链接 @@ -30,6 +31,7 @@ export interface MagicCubeItemProperty { } // 定义组件 +// TODO @疯狂:有 idea 爆红告警 export const component = { id: 'MagicCube', name: '广告魔方', diff --git a/src/components/DiyEditor/components/mobile/MenuGrid/config.ts b/src/components/DiyEditor/components/mobile/MenuGrid/config.ts index b5a5d97d..9f91ceb0 100644 --- a/src/components/DiyEditor/components/mobile/MenuGrid/config.ts +++ b/src/components/DiyEditor/components/mobile/MenuGrid/config.ts @@ -10,6 +10,7 @@ export interface MenuGridProperty { // 组件样式 style: ComponentStyle } + /** 宫格导航项目属性 */ export interface MenuGridItemProperty { // 图标链接 diff --git a/src/components/DiyEditor/components/mobile/MenuList/config.ts b/src/components/DiyEditor/components/mobile/MenuList/config.ts index c42674f3..f96fd0a1 100644 --- a/src/components/DiyEditor/components/mobile/MenuList/config.ts +++ b/src/components/DiyEditor/components/mobile/MenuList/config.ts @@ -8,6 +8,7 @@ export interface MenuListProperty { // 组件样式 style: ComponentStyle } + /** 列表导航项目属性 */ export interface MenuListItemProperty { // 图标链接 diff --git a/src/components/DiyEditor/components/mobile/NoticeBar/property.vue b/src/components/DiyEditor/components/mobile/NoticeBar/property.vue index 7129d7cb..a505011a 100644 --- a/src/components/DiyEditor/components/mobile/NoticeBar/property.vue +++ b/src/components/DiyEditor/components/mobile/NoticeBar/property.vue @@ -12,7 +12,6 @@ -