Skip to content

Commit 423ea31

Browse files
committed
code review:限时折扣
1 parent bb59459 commit 423ea31

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/views/mall/promotion/discountActivity/DiscountActivityForm.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
:schema="allSchemas.formSchema"
99
>
1010
<!-- 先选择 -->
11+
<!-- TODO @zhangshuai:商品允许选择多个 -->
12+
<!-- TODO @zhangshuai:选择后的 SKU,需要后面加个【删除】按钮 -->
13+
<!-- TODO @zhangshuai:展示的金额,貌似不对,大了 100 倍,需要看下 -->
14+
<!-- TODO @zhangshuai:“优惠类型”,是每个 SKU 可以自定义已设置哈。因为每个商品 SKU 的折扣和减少价格,可能不同。具体交互,可以注册一个 youzan.com 看看;它的交互方式是,如果设置了“优惠金额”,则算“减价”;如果再次设置了“折扣百分比”,就算“打折”;这样形成一个互斥的优惠类型 -->
1115
<template #spuId>
1216
<el-button @click="spuSelectRef.open()">选择商品</el-button>
1317
<SpuAndSkuList

src/views/mall/promotion/discountActivity/discountActivity.data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
22
import { dateFormatter2 } from '@/utils/formatTime'
33

4+
// TODO @zhangshai
45
// 表单校验
56
export const rules = reactive({
67
spuId: [required],

0 commit comments

Comments
 (0)