From d7cd33bccabad2b96b5ba913da737c789a82cdbe Mon Sep 17 00:00:00 2001 From: Zuncle <34310384@qq.com> Date: Tue, 31 Mar 2026 21:13:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(shipping):=20=E5=8F=8D=E8=BD=AC=E8=BF=90?= =?UTF-8?q?=E8=B4=B9=E8=A7=84=E5=88=99=E4=B8=BA=E4=B8=8D=E6=BB=A15?= =?UTF-8?q?=E4=BB=B6=E6=94=B6=E8=BF=90=E8=B4=B9=EF=BC=8C=E6=BB=A15?= =?UTF-8?q?=E4=BB=B6=E5=8C=85=E9=82=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 onShip() 中运费判断从 > 5 件收运费改为 < 5 件收运费 --- pages/cabinet/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/cabinet/index.vue b/pages/cabinet/index.vue index 4675af7..34661a3 100755 --- a/pages/cabinet/index.vue +++ b/pages/cabinet/index.vue @@ -823,12 +823,12 @@ async function onShip() { const FREIGHT_THRESHOLD = 5 const FREIGHT_FEE = 10 - if (allIds.length > FREIGHT_THRESHOLD) { - // 超过 5 件,需支付 10 元运费 + if (allIds.length < FREIGHT_THRESHOLD) { + // 不满 5 件,需支付 10 元运费 const confirmed = await new Promise((resolve) => { uni.showModal({ title: '需支付运费', - content: `共 ${allIds.length} 件商品,超过 ${FREIGHT_THRESHOLD} 件需支付 ¥${FREIGHT_FEE}.00 运费,确认继续?`, + content: `共 ${allIds.length} 件商品,不满 ${FREIGHT_THRESHOLD} 件需支付 ¥${FREIGHT_FEE}.00 运费,确认继续?`, confirmText: '去支付', cancelText: '取消', success: (res) => resolve(res.confirm) @@ -867,7 +867,7 @@ async function onShip() { return } - // 不超过 5 件,原有确认发货流程 + // 满 5 件,包邮直接发货 uni.showModal({ title: '确认发货', content: `共 ${allIds.length} 件物品,确认申请发货?`,