| | |
| | | export default function CouponPage() { |
| | | const [couponStatus] = useState([ |
| | | { label: '全部', value: '' }, |
| | | { label: '待领取', value: 0 }, |
| | | // { label: '待领取', value: 0 }, |
| | | { label: '未使用', value: 1 }, |
| | | { label: '已使用', value: 2 }, |
| | | { label: '已失效', value: 3 }]) |
| | |
| | | </View> |
| | | </View> |
| | | {/* 状态 1-未使用 2-已使用 3-已过期 0待领取 */} |
| | | {item.status === 0 ? ( |
| | | <View className='receive' onClick={(e) => handleReceive(e, item)}>领取</View> |
| | | ) : item.status === 1 ? ( |
| | | { |
| | | // item.status === 0 ? ( |
| | | // <View className='receive' onClick={(e) => handleReceive(e, item)}>领取</View> |
| | | // ) : |
| | | item.status === 1 ? ( |
| | | <View onClick={toHome} className='receive' style={{ backgroundColor: '#F58900' }}>去使用</View> |
| | | ) : item.status === 2 ? ( |
| | | <Image className='status-img' src={require('../../assets/coupon-used.png')} /> |
| | | ) : ( |
| | | ) : item.status === 3 ? ( |
| | | <Image className='status-img' src={require('../../assets/coupon-lost-efficacy.png')} /> |
| | | )} |
| | | ):''} |
| | | </View> |
| | | })} |
| | | </View> |