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

@@ -2,8 +2,8 @@
export const ENV_CONFIG = {
// 开发环境
development: {
// API_BASE_URL: 'http://127.0.0.1:9200/api',
API_BASE_URL: 'https://mp-api.websoft.top/api',
API_BASE_URL: 'http://127.0.0.1:9200/api',
// API_BASE_URL: 'https://mp-api.websoft.top/api',
APP_NAME: '开发环境',
DEBUG: 'true',
},