From b4d3a034baa8ebf36e8b307a630b4500460dc15e Mon Sep 17 00:00:00 2001 From: 17792275749 <812100002@qq.com> Date: Wed, 26 Aug 2026 16:08:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(detailedReport):=20=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=97=A0=E6=95=B0=E6=8D=AE=E6=97=B6=E9=9A=90=E8=97=8F=E6=95=B4?= =?UTF-8?q?=E5=8D=A1=EF=BC=8Cwx:if=20=E7=BB=9F=E4=B8=80=E5=86=99=20block?= =?UTF-8?q?=20=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除多余的 isEightElectrode 字段 - 各指标卡片 rows 为空时不渲染标题 - wx:if 统一移到 block 上,符合 wxml 规范 Co-Authored-By: Claude Opus 4.7 --- .../pages/detailedReport/detailedReport.ts | 2 - .../pages/detailedReport/detailedReport.wxml | 142 +++++++++++------- 2 files changed, 86 insertions(+), 58 deletions(-) diff --git a/miniprogram/pages/detailedReport/detailedReport.ts b/miniprogram/pages/detailedReport/detailedReport.ts index 2cada97..40db345 100644 --- a/miniprogram/pages/detailedReport/detailedReport.ts +++ b/miniprogram/pages/detailedReport/detailedReport.ts @@ -189,7 +189,6 @@ Page({ weightControl: { title: '体重管控', rows: [] } as MetricCard, // 以下卡片为 8 电极专属 - isEightElectrode: false, cellWater: { title: '细胞液分析', rows: [] } as MetricCard, advancedComposition: { title: '进阶成分', rows: [] } as MetricCard, bodyFat: { title: '躯干/四肢脂肪', rows: [] } as BodyPartsCard, @@ -347,7 +346,6 @@ Page({ fatAnalysis, physique, weightControl, - isEightElectrode: isEight, cellWater, advancedComposition, bodyFat, diff --git a/miniprogram/pages/detailedReport/detailedReport.wxml b/miniprogram/pages/detailedReport/detailedReport.wxml index ef55a86..8a898d9 100644 --- a/miniprogram/pages/detailedReport/detailedReport.wxml +++ b/miniprogram/pages/detailedReport/detailedReport.wxml @@ -28,8 +28,12 @@ kg - {{ header.bmiText }} - {{ header.changeText }} + + {{ header.bmiText }} + + + {{ header.changeText }} + @@ -47,7 +51,9 @@ {{ cell.label }} {{ cell.value }} - {{ cell.unit }} + + {{ cell.unit }} + @@ -77,68 +83,83 @@ - - - - {{ bodyComposition.title }} - - - - {{ item.label }} - {{ item.value }}{{ item.unit }} - {{ item.status }} + + + + + {{ bodyComposition.title }} + + + + {{ item.label }} + {{ item.value }}{{ item.unit }} + + {{ item.status }} + + - + - - - - {{ fatAnalysis.title }} - - - - {{ item.label }} - {{ item.value }}{{ item.unit }} - {{ item.status }} + + + + + {{ fatAnalysis.title }} + + + + {{ item.label }} + {{ item.value }}{{ item.unit }} + + {{ item.status }} + + - + - - - - {{ physique.title }} - - - - {{ item.label }} - {{ item.value }}{{ item.unit }} - {{ item.status }} + + + + + {{ physique.title }} + + + + {{ item.label }} + {{ item.value }}{{ item.unit }} + + {{ item.status }} + + - + - - - - {{ weightControl.title }} - - - - {{ item.label }} - {{ item.value }}{{ item.unit }} - {{ item.status }} + + + + + {{ weightControl.title }} + + + + {{ item.label }} + {{ item.value }}{{ item.unit }} + + {{ item.status }} + + - + - - - + + @@ -148,12 +169,16 @@ {{ item.label }} {{ item.value }}{{ item.unit }} - {{ item.status }} + + {{ item.status }} + + - + + @@ -163,12 +188,16 @@ {{ item.label }} {{ item.value }}{{ item.unit }} - {{ item.status }} + + {{ item.status }} + + - + + @@ -189,8 +218,10 @@ + - + + @@ -211,7 +242,6 @@ -