fix(shop): 调整结算页默认支付方式为线下付款
- 注释掉了货到付款(id=8)支付方式选项 - 将默认支付方式由货到付款改为线下付款(id=9) - 更新支付方式相关状态默认值为线下付款 - 确保支付方式选项列表仅保留线下付款项
This commit is contained in:
6
.workbuddy/memory/2026-07-15.md
Normal file
6
.workbuddy/memory/2026-07-15.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# 2026-07-15 工作日志
|
||||||
|
|
||||||
|
## 结算页支付方式调整
|
||||||
|
- 文件:`src/pages/shop/checkout.tsx`
|
||||||
|
- 注释掉货到付款(id=8)选项,只保留线下付款(id=9)
|
||||||
|
- 默认支付方式从 8(货到付款) 改为 9(线下付款)
|
||||||
@@ -125,11 +125,11 @@ const CheckoutPage: React.FC = () => {
|
|||||||
const [rushBuyProducts, setRushBuyProducts] = useState<ShopGoods[]>([])
|
const [rushBuyProducts, setRushBuyProducts] = useState<ShopGoods[]>([])
|
||||||
|
|
||||||
// 支付方式相关状态
|
// 支付方式相关状态
|
||||||
const [payType, setPayType] = useState<number>(8) // 8: 货到付款(默认),9: 线下付款
|
const [payType, setPayType] = useState<number>(9) // 9: 线下付款(默认),8: 货到付款(已注释)
|
||||||
|
|
||||||
// 支付方式选项
|
// 支付方式选项
|
||||||
const PAYMENT_OPTIONS = [
|
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' },
|
{ id: 9, name: '线下付款', desc: '微信转账,商家确认后发货', icon: '线', bgColor: '#fffbeb', iconBg: '#fef3c7', iconColor: '#d97706', borderColor: '#f59e0b' },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user