fix(shop): 调整结算页默认支付方式为线下付款

- 注释掉了货到付款(id=8)支付方式选项
- 将默认支付方式由货到付款改为线下付款(id=9)
- 更新支付方式相关状态默认值为线下付款
- 确保支付方式选项列表仅保留线下付款项
This commit is contained in:
2026-07-15 00:50:24 +08:00
parent 6dafbf47c9
commit 1e4549095a
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
# 2026-07-15 工作日志
## 结算页支付方式调整
- 文件:`src/pages/shop/checkout.tsx`
- 注释掉货到付款(id=8)选项,只保留线下付款(id=9)
- 默认支付方式从 8(货到付款) 改为 9(线下付款)

View File

@@ -125,11 +125,11 @@ const CheckoutPage: React.FC = () => {
const [rushBuyProducts, setRushBuyProducts] = useState<ShopGoods[]>([])
// 支付方式相关状态
const [payType, setPayType] = useState<number>(8) // 8: 货到付款(默认),9: 线下付款
const [payType, setPayType] = useState<number>(9) // 9: 线下付款(默认),8: 货到付款(已注释)
// 支付方式选项
const PAYMENT_OPTIONS = [
{ id: 8, name: '货到付款', desc: '送达时支付', icon: '货', bgColor: '#f0fdf4', iconBg: '#dbeafe', iconColor: '#2563eb', borderColor: '#22c55e' },
// { id: 8, name: '货到付款', desc: '送达时支付', icon: '货', bgColor: '#f0fdf4', iconBg: '#dbeafe', iconColor: '#2563eb', borderColor: '#22c55e' },
{ id: 9, name: '线下付款', desc: '微信转账,商家确认后发货', icon: '线', bgColor: '#fffbeb', iconBg: '#fef3c7', iconColor: '#d97706', borderColor: '#f59e0b' },
]