diff --git a/.workbuddy/memory/2026-07-15.md b/.workbuddy/memory/2026-07-15.md new file mode 100644 index 0000000..5ca8dd9 --- /dev/null +++ b/.workbuddy/memory/2026-07-15.md @@ -0,0 +1,6 @@ +# 2026-07-15 工作日志 + +## 结算页支付方式调整 +- 文件:`src/pages/shop/checkout.tsx` +- 注释掉货到付款(id=8)选项,只保留线下付款(id=9) +- 默认支付方式从 8(货到付款) 改为 9(线下付款) diff --git a/src/pages/shop/checkout.tsx b/src/pages/shop/checkout.tsx index 02d7743..9d4ebd4 100644 --- a/src/pages/shop/checkout.tsx +++ b/src/pages/shop/checkout.tsx @@ -125,11 +125,11 @@ const CheckoutPage: React.FC = () => { const [rushBuyProducts, setRushBuyProducts] = useState([]) // 支付方式相关状态 - const [payType, setPayType] = useState(8) // 8: 货到付款(默认),9: 线下付款 + const [payType, setPayType] = useState(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' }, ]