|
@@ -16,7 +16,7 @@ const CouponMedia = CouponCard.Media
|
16
|
16
|
const Action = CouponCard.Action
|
17
|
17
|
|
18
|
18
|
export default (props) => {
|
19
|
|
- const { item, setShowCutover, show,sh } = props
|
|
19
|
+ const { item, setShowCutover, show, sh } = props
|
20
|
20
|
|
21
|
21
|
const handleDetail = () => {
|
22
|
22
|
if (item.status === 0) {
|
|
@@ -59,18 +59,20 @@ export default (props) => {
|
59
|
59
|
});
|
60
|
60
|
};
|
61
|
61
|
const PayAction =
|
62
|
|
- sh=='1'?<Action.Icon icon={Refund} text='售后/退款' onClick={()=>handleRefund(item)} /> :
|
63
|
|
- item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> :
|
64
|
|
- item.status === 1 && item.isVerified == false ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> :
|
65
|
|
- item.status === 2 && item.isVerified == false ? <Action.Image image={refund} /> :
|
66
|
|
- item.status === 9 ? <Action.Image image={Null} /> :
|
67
|
|
- item.isVerified == true && item.isEvaluated == 3 ? <Action.Image image={Evaluated} /> :
|
68
|
|
- item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : ''
|
|
62
|
+ sh == '1' ? <Action.Icon icon={Refund} text='售后/退款' onClick={() => handleRefund(item)} /> :
|
|
63
|
+ item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> :
|
|
64
|
+ item.status === 1 && item.isVerified == false ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> :
|
|
65
|
+ item.status === 2 && item.isVerified == false ? <Action.Image image={refund} /> :
|
|
66
|
+ item.status === 9 ? <Action.Image image={Null} /> :
|
|
67
|
+ item.isVerified == true && item.isEvaluated == 3 ? <Action.Image image={Evaluated} /> :
|
|
68
|
+ item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : ''
|
69
|
69
|
|
70
|
70
|
|
71
|
71
|
return (
|
72
|
72
|
<>
|
73
|
|
- <view className='OrderNumber'>订单编号:{item.orderId}</view>
|
|
73
|
+ {
|
|
74
|
+ sh != '1' ? <view className='OrderNumber'>订单编号:{item.orderId}</view> : ''
|
|
75
|
+ }
|
74
|
76
|
<CouponCard action={PayAction}>
|
75
|
77
|
<CouponMedia>
|
76
|
78
|
<CouponMedia.Header
|
|
@@ -92,10 +94,10 @@ export default (props) => {
|
92
|
94
|
<View className='cpn-md-act'>
|
93
|
95
|
<view className={item.isVerified == 1 ? 'title-time' : ''}>
|
94
|
96
|
{
|
95
|
|
- sh==1?'有效期:'+formatTime(item.endTime, "yyyy/MM/dd"):
|
96
|
|
- item.isVerified == 1 ? '核销时间 :' + formatTime(item?.verifiedDate, "yyyy/MM/dd") :
|
97
|
|
- '有效期:' + formatTime(item?.startTime, "yyyy/MM/dd") + '-' +
|
98
|
|
- formatTime(item.endTime, "yyyy/MM/dd")
|
|
97
|
+ sh == 1 ? '有效期:' + formatTime(item.endTime, "yyyy/MM/dd") :
|
|
98
|
+ item.isVerified == 1 ? '核销时间 :' + formatTime(item?.verifiedDate, "yyyy/MM/dd") :
|
|
99
|
+ '有效期:' + formatTime(item?.startTime, "yyyy/MM/dd") + '-' +
|
|
100
|
+ formatTime(item.endTime, "yyyy/MM/dd")
|
99
|
101
|
}
|
100
|
102
|
</view>
|
101
|
103
|
</View>
|