董国庆
2026-03-02 3f635bfcfff7db642fcb3c09b43c79237db12316
优惠券修改
1个文件已修改
14 ■■■■■ 已修改文件
src/robotaxi/pages/coupon/index.tsx 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/coupon/index.tsx
@@ -9,7 +9,7 @@
export default function CouponPage() {
  const [couponStatus] = useState([
    { label: '全部', value: '' },
    { label: '待领取', value: 0 },
    // { label: '待领取', value: 0 },
    { label: '未使用', value: 1 },
    { label: '已使用', value: 2 },
    { label: '已失效', value: 3 }])
@@ -135,15 +135,17 @@
                </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>