|
@@ -61,23 +61,25 @@ export default (props) => {
|
61
|
61
|
});
|
62
|
62
|
};
|
63
|
63
|
const PayAction =
|
64
|
|
- kkp == '1' ? null :
|
65
|
|
- sh == '1' ? <Action.Icon icon={Refund} text='售后/退款' onClick={() => handleRefund(item)} /> :
|
66
|
|
- item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> :
|
67
|
|
- item.status === 1 && item.isVerified == false ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> :
|
68
|
|
- item.status === 2 && item.isVerified == false ? <Action.Image image={refund} /> :
|
69
|
|
- item.status === 7 && item.isVerified == false ? <Action.Image image={Cancel} /> :
|
70
|
|
- item.status === 9 ? <Action.Image image={Null} /> :
|
71
|
|
- item.isVerified == true && item.isEvaluated > 0 ? <Action.Image image={Evaluated} /> :
|
72
|
|
- item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : null
|
|
64
|
+ kkp == '1' ? null ://空卡片用于售后详情页面
|
|
65
|
+ sh == '1' ? <Action.Icon icon={Refund} text='售后/退款' onClick={() => handleRefund(item)} /> ://售后页面卡片
|
|
66
|
+ item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> ://待支付
|
|
67
|
+ item.status === 1 && item.isVerified == false ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> ://待核销
|
|
68
|
+ item.status === 2 && item.isVerified == false ? <Action.Image image={refund} /> ://已退费
|
|
69
|
+ item.status === 7 && item.isVerified == false ? <Action.Image image={Cancel} /> ://已取消
|
|
70
|
+ item.status === 9 ? <Action.Image image={Null} /> ://已过期
|
|
71
|
+ item.isVerified == true && item.isEvaluated > 0 ? <Action.Image image={Evaluated} /> ://已评价
|
|
72
|
+ item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : null//待评价
|
73
|
73
|
|
74
|
74
|
|
75
|
75
|
return (
|
76
|
76
|
<>
|
77
|
77
|
{
|
|
78
|
+ //售后和售后详情页面不显示订单编号
|
78
|
79
|
sh != '1' || kkp != '1' ? <view className='OrderNumber'>订单编号:{item.orderId}</view> : null
|
79
|
80
|
}
|
80
|
81
|
{
|
|
82
|
+ //待支付可以左滑删除
|
81
|
83
|
item.status === 0 ? <SlideView del onDelete={() => handeDelete(item)} >
|
82
|
84
|
<CouponCard onClick={() => { Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` })}} action={PayAction}>
|
83
|
85
|
<CouponMedia>
|