From 1e4549095aecd0a9d15792391cc8cf09bd3717eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 15 Jul 2026 00:50:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(shop):=20=E8=B0=83=E6=95=B4=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E9=A1=B5=E9=BB=98=E8=AE=A4=E6=94=AF=E4=BB=98=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E4=B8=BA=E7=BA=BF=E4=B8=8B=E4=BB=98=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉了货到付款(id=8)支付方式选项 - 将默认支付方式由货到付款改为线下付款(id=9) - 更新支付方式相关状态默认值为线下付款 - 确保支付方式选项列表仅保留线下付款项 --- .workbuddy/memory/2026-07-15.md | 6 ++++++ src/pages/shop/checkout.tsx | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .workbuddy/memory/2026-07-15.md 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' }, ]