Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
423ea319
authored
Oct 21, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review:限时折扣
parent
bb594595
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
src/views/mall/promotion/discountActivity/DiscountActivityForm.vue
+4
-0
src/views/mall/promotion/discountActivity/discountActivity.data.ts
+1
-0
No files found.
src/views/mall/promotion/discountActivity/DiscountActivityForm.vue
View file @
423ea319
...
...
@@ -8,6 +8,10 @@
:schema=
"allSchemas.formSchema"
>
<!-- 先选择 -->
<!-- TODO @zhangshuai:商品允许选择多个 -->
<!-- TODO @zhangshuai:选择后的 SKU,需要后面加个【删除】按钮 -->
<!-- TODO @zhangshuai:展示的金额,貌似不对,大了 100 倍,需要看下 -->
<!-- TODO @zhangshuai:“优惠类型”,是每个 SKU 可以自定义已设置哈。因为每个商品 SKU 的折扣和减少价格,可能不同。具体交互,可以注册一个 youzan.com 看看;它的交互方式是,如果设置了“优惠金额”,则算“减价”;如果再次设置了“折扣百分比”,就算“打折”;这样形成一个互斥的优惠类型 -->
<template
#
spuId
>
<el-button
@
click=
"spuSelectRef.open()"
>
选择商品
</el-button>
<SpuAndSkuList
...
...
src/views/mall/promotion/discountActivity/discountActivity.data.ts
View file @
423ea319
import
type
{
CrudSchema
}
from
'@/hooks/web/useCrudSchemas'
import
{
dateFormatter2
}
from
'@/utils/formatTime'
// TODO @zhangshai:
// 表单校验
export
const
rules
=
reactive
({
spuId
:
[
required
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment