From 99e7b89d2a26bc6f23b5a74901959bed15c8dc4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Wed, 13 May 2026 17:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=A1=B9=E7=9B=AE=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E8=B5=9B=E4=BA=8B=E7=B1=BB=E5=9E=8B=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpackages/mine/order-detail/order-detail.js | 6 +++++- subpackages/mine/order-detail/order-detail.wxml | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/subpackages/mine/order-detail/order-detail.js b/subpackages/mine/order-detail/order-detail.js index 2b90468..2cb9c84 100644 --- a/subpackages/mine/order-detail/order-detail.js +++ b/subpackages/mine/order-detail/order-detail.js @@ -46,6 +46,9 @@ Page({ formatDetail(item) { const statusInfo = STATUS_MAP[item.orderStatus] || { text: item.orderStatus || '-', key: 'default' }; + // ChargeMode 枚举:0=免费,1=定价,2=单价(赛事),3=单价(项目) + // 只有 3(单价项目)显示费用列 + const shouldShowFee = item.chargeMode === 3; return { ...item, statusText: statusInfo.text, @@ -54,7 +57,8 @@ Page({ actualAmount: item.actualAmount != null ? item.actualAmount : '-', refundAmount: item.refundAmount != null && item.refundAmount > 0 ? item.refundAmount : '', payTimeStr: item.paymentTime ? formatTime(item.paymentTime) : '-', - refundTimeStr: item.refundTime ? formatTime(item.refundTime) : '-' + refundTimeStr: item.refundTime ? formatTime(item.refundTime) : '-', + shouldShowFee: shouldShowFee }; }, diff --git a/subpackages/mine/order-detail/order-detail.wxml b/subpackages/mine/order-detail/order-detail.wxml index dc4ac0e..1d092eb 100644 --- a/subpackages/mine/order-detail/order-detail.wxml +++ b/subpackages/mine/order-detail/order-detail.wxml @@ -65,13 +65,13 @@ 项目 组别 - 费用(元) + 费用(元) {{item.projectName}} {{item.groupName}} - {{item.fee}} + {{item.fee}}