fix(order): 修复订单退款时间窗口限制逻辑

- 在开发环境中切换回本地API接口配置
- 修正首页商品卡片按钮链接到正确的购买页面
- 添加退款时间窗口检查函数来限制退款申请时机
- 更新订单详情页退款按钮显示条件,确保仅在有效期内显示
- 在用户订单列表中实现相同的退款时间窗口验证逻辑
- 确保退款功能仅在支付后60分钟内可访问
This commit is contained in:
2026-02-07 15:44:00 +08:00
parent 6c83f6c082
commit f8672dec34
4 changed files with 29 additions and 5 deletions

View File

@@ -313,7 +313,7 @@ function Home() {
<View className="goods-card__actions">
<View
className="goods-card__btn goods-card__btn--ghost"
onClick={() => Taro.navigateTo({ url: '/user/ticket/index' })}
onClick={() => Taro.navigateTo({ url: 'shop/orderConfirm/index?goodsId=10074' })}
>
<Text className="goods-card__btnText"></Text>
</View>