Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-admin
Commits
d89178ae
Commit
d89178ae
authored
Sep 23, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 完善展示
parent
3ba086a5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
9 deletions
+42
-9
index.tsx
...nage/platformCoupon/components/ApplicableMember/index.tsx
+12
-2
index.tsx
...ngManage/platformCoupon/components/CouponDetail/index.tsx
+14
-6
index.tsx
...ingManage/platformCoupon/components/CouponRules/index.tsx
+9
-1
index.less
...ge/platformCoupon/components/TofuCheckboxGroup/index.less
+3
-0
index.tsx
...e/platformCoupon/platformCouponAnalysis/deliver/index.tsx
+2
-0
index.tsx
...ge/platformCoupon/platformCouponAnalysis/detail/index.tsx
+2
-0
No files found.
src/pages/marketingManage/platformCoupon/components/ApplicableMember/index.tsx
View file @
d89178ae
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-02 16:56:32
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
8-03 09:48:34
* @LastEditTime: 2021-0
9-23 16:40:12
* @Description: 适用用户
*/
import
React
,
{
useMemo
}
from
'react'
;
...
...
@@ -17,6 +17,16 @@ import { OptionItemType as MemberOptionItemType } from '../MemberCheckboxGroup';
import
ApplicableList
from
'../FormilyFieldItem/ApplicableList'
;
export
type
ApplicationMemberLevelType
=
Omit
<
MemberOptionItemType
,
'value'
>
&
{
id
:
string
}
export
type
SuitableMemberType
=
{
/**
* 值
*/
value
:
number
,
/**
* 名称
*/
name
:
string
,
}
interface
IProps
extends
MellowCardProps
{
/**
...
...
@@ -26,7 +36,7 @@ interface IProps extends MellowCardProps {
/**
* 适用用户
*/
suitableMemberTypes
:
{}
[],
suitableMemberTypes
:
SuitableMemberType
[],
/**
* 适用用户列表
*/
...
...
src/pages/marketingManage/platformCoupon/components/CouponDetail/index.tsx
View file @
d89178ae
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-25 17:23:30
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-
17 14:33:06
* @LastEditTime: 2021-09-
23 16:41:28
* @Description: 商家优惠券页面详情组件
*/
import
React
,
{
useMemo
}
from
'react'
;
...
...
@@ -34,9 +34,11 @@ import ApplicableGoods, { ListItemDataType } from '../ApplicableGoods';
import
ApplicableShopList
from
'../ApplicableShopList'
;
import
ApplicableCategories
from
'../ApplicableCategories'
;
import
ApplicableBrands
from
'../ApplicableBrands'
;
import
ApplicableMember
,
{
ApplicationMemberLevelType
}
from
'../ApplicableMember'
;
import
ApplicableMember
,
{
ApplicationMemberLevelType
,
SuitableMemberType
}
from
'../ApplicableMember'
;
import
InnerFlowRecords
from
'../InnerFlowRecords'
;
export
type
SuitableMemberLevelType
=
Omit
<
ApplicationMemberLevelType
,
'roleName'
|
'levelTypeName'
>
&
{
roleTypeName
:
string
,
memberLevelTypeName
:
string
}
export
type
DetailType
=
BacisInfoPropsType
[
'dataSource'
]
&
CouponRulesPropsType
[
'dataSource'
]
&
{
/**
* 优惠券名称
...
...
@@ -127,7 +129,11 @@ export type DetailType = BacisInfoPropsType['dataSource'] & CouponRulesPropsType
/**
* 适用会员
*/
suitableMemberLevelTypes
?:
ApplicationMemberLevelType
[],
suitableMemberLevelTypes
?:
SuitableMemberLevelType
[],
/**
* 适用用户
*/
suitableMemberTypes
:
SuitableMemberType
[],
};
interface
IProps
{
...
...
@@ -263,6 +269,8 @@ const MerchantCouponDetail: React.FC<IProps> = (props) => {
invalidDay
:
dataSource
?.
invalidDay
,
useConditionMoney
:
dataSource
?.
useConditionMoney
,
useConditionDesc
:
dataSource
?.
useConditionDesc
,
conditionGetDay
:
dataSource
?.
conditionGetDay
as
number
,
conditionGetTotal
:
dataSource
?.
conditionGetTotal
as
number
,
}
}
id=
"couponRules"
/>
...
...
@@ -284,7 +292,7 @@ const MerchantCouponDetail: React.FC<IProps> = (props) => {
?
(
<
Col
span=
{
24
}
>
<
ApplicableGoods
dataSource=
{
dataSource
?.
suitableCommoditySkuList
}
dataSource=
{
dataSource
?.
suitableCommoditySkuList
!
}
id=
"applicableGoods"
/>
</
Col
>
...
...
@@ -329,8 +337,8 @@ const MerchantCouponDetail: React.FC<IProps> = (props) => {
<
Col
span=
{
24
}
>
<
ApplicableMember
applicableMember=
{
{
suitableMemberTypes
:
[]
,
applicationMemberLevel
:
dataSource
?.
suitableMemberLevelTypes
,
suitableMemberTypes
:
dataSource
?.
suitableMemberTypes
,
applicationMemberLevel
:
dataSource
?.
suitableMemberLevelTypes
!
.
map
(({
roleTypeName
,
memberLevelTypeName
,
...
rest
})
=>
({
roleName
:
roleTypeName
,
levelTypeName
:
memberLevelTypeName
,
...
rest
}))
,
}
}
id=
"applicableMember"
/>
...
...
src/pages/marketingManage/platformCoupon/components/CouponRules/index.tsx
View file @
d89178ae
...
...
@@ -48,6 +48,14 @@ export type PropsType = Omit<CustomizeColumnProps, 'data' | 'column'> & {
* 使用条件说明
*/
useConditionDesc
:
string
,
/**
* 每日可领取
*/
conditionGetDay
:
number
,
/**
* 每会员ID总共可领取
*/
conditionGetTotal
:
number
,
},
}
...
...
@@ -80,7 +88,7 @@ const CouponRules: React.FC<PropsType> = (props: PropsType) => {
},
{
title
:
'领取条件'
,
value
:
'每会员ID总共可领取 3 张,每日 1 张'
,
value
:
`每会员ID总共可领取
${
dataSource
.
conditionGetTotal
}
张,每日
${
dataSource
.
conditionGetDay
}
张`
,
},
{
title
:
'有效期结束时间'
,
...
...
src/pages/marketingManage/platformCoupon/components/TofuCheckboxGroup/index.less
View file @
d89178ae
@import '~antd/es/style/themes/default.less';
.tofuCheckbox-list {
margin-bottom: -@margin-md;
&-item {
display: inline-flex;
align-items: center;
padding: @padding-sm - 2 @padding-md;
margin-right: @margin-md;
margin-bottom: @margin-md;
position: relative;
background-color: @background-color-base;
border: 1px solid @border-color-base;
...
...
src/pages/marketingManage/platformCoupon/platformCouponAnalysis/deliver/index.tsx
View file @
d89178ae
...
...
@@ -142,6 +142,8 @@ const PlatformCouponAnalysisDeliver: React.FC<{}> = () => {
invalidDay
:
couponInfo
?.
invalidDay
as
number
,
useConditionMoney
:
couponInfo
?.
useConditionMoney
as
number
,
useConditionDesc
:
couponInfo
?.
useConditionDesc
as
string
,
conditionGetDay
:
couponInfo
?.
conditionGetDay
as
number
,
conditionGetTotal
:
couponInfo
?.
conditionGetTotal
as
number
,
}
}
id=
"couponRules"
/>
...
...
src/pages/marketingManage/platformCoupon/platformCouponAnalysis/detail/index.tsx
View file @
d89178ae
...
...
@@ -115,6 +115,8 @@ const PlatformCouponAnalysisDetail: React.FC<{}> = () => {
invalidDay
:
couponInfo
?.
invalidDay
as
number
,
useConditionMoney
:
couponInfo
?.
useConditionMoney
as
number
,
useConditionDesc
:
couponInfo
?.
useConditionDesc
as
string
,
conditionGetDay
:
couponInfo
?.
conditionGetDay
as
number
,
conditionGetTotal
:
couponInfo
?.
conditionGetTotal
as
number
,
}
}
id=
"couponRules"
/>
...
...
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