Commit 91674da4 authored by XieZhiXiong's avatar XieZhiXiong

chore: 没有领取条件不做展示

parent 4f480dc4
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-06-22 16:45:58 * @Date: 2021-06-22 16:45:58
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-22 15:39:01 * @LastEditTime: 2021-11-12 11:47:16
* @Description: 优惠券规则 * @Description: 优惠券规则
*/ */
import React from 'react'; import React from 'react';
...@@ -86,10 +86,15 @@ const CouponRules: React.FC<PropsType> = (props: PropsType) => { ...@@ -86,10 +86,15 @@ const CouponRules: React.FC<PropsType> = (props: PropsType) => {
title: '使用条件', title: '使用条件',
value: `订单满 ¥ ${dataSource.useConditionMoney || ''} 使用`, value: `订单满 ¥ ${dataSource.useConditionMoney || ''} 使用`,
}, },
{ (
title: '领取条件', dataSource.conditionGetTotal
value: `每会员ID总共可领取 ${dataSource.conditionGetTotal} 张,每日 ${dataSource.conditionGetDay} 张`, && dataSource.conditionGetDay
}, ? {
title: '领取条件',
value: `每会员ID总共可领取 ${dataSource.conditionGetTotal} 张,每日 ${dataSource.conditionGetDay} 张`,
}
: null
),
{ {
title: '有效期结束时间', title: '有效期结束时间',
value: dataSource.effectiveTimeEnd ? moment(dataSource.effectiveTimeEnd).format('YYYY-MM-DD HH:mm:ss') : `领取${dataSource.invalidDay || ''}天后失效`, value: dataSource.effectiveTimeEnd ? moment(dataSource.effectiveTimeEnd).format('YYYY-MM-DD HH:mm:ss') : `领取${dataSource.invalidDay || ''}天后失效`,
...@@ -98,7 +103,7 @@ const CouponRules: React.FC<PropsType> = (props: PropsType) => { ...@@ -98,7 +103,7 @@ const CouponRules: React.FC<PropsType> = (props: PropsType) => {
title: '使用说明', title: '使用说明',
value: dataSource.useConditionDesc, value: dataSource.useConditionDesc,
}, },
]; ].filter(Boolean);
return ( return (
<CustomizeColumn <CustomizeColumn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment