|
@@ -17,7 +17,7 @@ const CouponMedia = CouponCard.Media
|
17
|
17
|
const Action = CouponCard.Action
|
18
|
18
|
|
19
|
19
|
export default (props) => {
|
20
|
|
- const { item, setShowCutover, show, sh } = props
|
|
20
|
+ const { item, setShowCutover, show, sh, kkp } = props
|
21
|
21
|
|
22
|
22
|
const handleDetail = () => {
|
23
|
23
|
if (item.status === 0) {
|
|
@@ -60,20 +60,21 @@ export default (props) => {
|
60
|
60
|
});
|
61
|
61
|
};
|
62
|
62
|
const PayAction =
|
63
|
|
- sh == '1' ? <Action.Icon icon={Refund} text='售后/退款' onClick={() => handleRefund(item)} /> :
|
64
|
|
- item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> :
|
65
|
|
- item.status === 1 && item.isVerified == false ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> :
|
66
|
|
- item.status === 2 && item.isVerified == false ? <Action.Image image={refund} /> :
|
67
|
|
- item.status === 7 && item.isVerified == false ? <Action.Image image={Cancel} /> :
|
68
|
|
- item.status === 9 ? <Action.Image image={Null} /> :
|
69
|
|
- item.isVerified == true && item.isEvaluated > 0 ? <Action.Image image={Evaluated} /> :
|
70
|
|
- item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : <Action.Icon icon={Evaluation} />
|
|
63
|
+ kkp == '1' ? null :
|
|
64
|
+ sh == '1' ? <Action.Icon icon={Refund} text='售后/退款' onClick={() => handleRefund(item)} /> :
|
|
65
|
+ item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> :
|
|
66
|
+ item.status === 1 && item.isVerified == false ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> :
|
|
67
|
+ item.status === 2 && item.isVerified == false ? <Action.Image image={refund} /> :
|
|
68
|
+ item.status === 7 && item.isVerified == false ? <Action.Image image={Cancel} /> :
|
|
69
|
+ item.status === 9 ? <Action.Image image={Null} /> :
|
|
70
|
+ item.isVerified == true && item.isEvaluated > 0 ? <Action.Image image={Evaluated} /> :
|
|
71
|
+ item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : null
|
71
|
72
|
|
72
|
73
|
|
73
|
74
|
return (
|
74
|
75
|
<>
|
75
|
76
|
{
|
76
|
|
- sh != '1' ? <view className='OrderNumber'>订单编号:{item.orderId}</view> : null
|
|
77
|
+ sh != '1'|| kkp == '1'? <view className='OrderNumber'>订单编号:{item.orderId}</view> : null
|
77
|
78
|
}
|
78
|
79
|
<CouponCard action={PayAction}>
|
79
|
80
|
<CouponMedia>
|
|
@@ -82,11 +83,11 @@ export default (props) => {
|
82
|
83
|
image={item.poster}
|
83
|
84
|
badge='food'
|
84
|
85
|
/>
|
85
|
|
- <CouponMedia.Body star={item.score}>
|
|
86
|
+ <CouponMedia.Body star={kkp == '1' ? null : item.score}>
|
86
|
87
|
<View className='orderCard'>
|
87
|
88
|
<View className='cpn-card-text'>
|
88
|
89
|
<View style={{ flex: '1' }}>{(item.packageDescription).toString().length > 25 ? (item.packageDescription).substring(0, 25) + '...' : (item.packageDescription)}</View>
|
89
|
|
- <text className='title-money-2'>
|
|
90
|
+ <text className={kkp == '1' ? 'shanchu' : 'title-money-2'}>
|
90
|
91
|
数量:{item.amount}张
|
91
|
92
|
</text>
|
92
|
93
|
</View>
|