From 0ffb3740fb4332b77365d2835e57810450938871 Mon Sep 17 00:00:00 2001 From: 17792275749 <812100002@qq.com> Date: Wed, 2 Sep 2026 11:13:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(data):=20=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=97=E8=A1=A8=E5=8D=A1=E7=89=87=E5=8C=96=E6=94=B9?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增记录列表标题与总条数 - 每条记录展示体重及增减徽标、BMI与体脂率 - 新增加减号图标资源 Co-Authored-By: Claude Opus 4.7 --- miniprogram/images/data/add.png | Bin 0 -> 347 bytes miniprogram/images/data/sub.png | Bin 0 -> 368 bytes miniprogram/pages/data/data.less | 174 +++++++++++++++++++++++++++---- miniprogram/pages/data/data.wxml | 35 ++++++- 4 files changed, 184 insertions(+), 25 deletions(-) create mode 100644 miniprogram/images/data/add.png create mode 100644 miniprogram/images/data/sub.png diff --git a/miniprogram/images/data/add.png b/miniprogram/images/data/add.png new file mode 100644 index 0000000000000000000000000000000000000000..02d9d5ffa00694c238887b3ba540c6af250c4acd GIT binary patch literal 347 zcmeAS@N?(olHy`uVBq!ia0vp^fa!M z%~()yBlu=vh-gEzPC&GZLwvB+S|%Ik7il|HR#{&vE5CV`{Y#=~anrtl`X|pP{^n-O q$j_Rz?C2YBj=3vLvMiSE(?0sL_28C0X}f_wWbkzLb6Mw<&;$Sx=!*UT literal 0 HcmV?d00001 diff --git a/miniprogram/images/data/sub.png b/miniprogram/images/data/sub.png new file mode 100644 index 0000000000000000000000000000000000000000..1f5a0b709de3395bb4d372128c41106de97f6f86 GIT binary patch literal 368 zcmeAS@N?(olHy`uVBq!ia0vp^fq=5?v|Yb`m$n?C8ZL@+O0%2f9> z{?h~_%LNTnoVXl1GZc9jxN=QkG*B{X?zTVDar?X(tChnuZujMRt30NB{S5RrgQu&X J%Q~loCII5Ah%NvC literal 0 HcmV?d00001 diff --git a/miniprogram/pages/data/data.less b/miniprogram/pages/data/data.less index 1b81553..ab61ca9 100644 --- a/miniprogram/pages/data/data.less +++ b/miniprogram/pages/data/data.less @@ -12,7 +12,7 @@ padding: 40rpx 30rpx 30rpx; box-sizing: border-box; border-radius: 24rpx; - margin-bottom: 30rpx; + margin-bottom: 15rpx; background-color: #FFFFFF; &::before { @@ -225,13 +225,37 @@ } } + .data-user-title { + width: 100%; + height: 80rpx; + display: flex; + flex-wrap: nowrap; + box-sizing: border-box; + justify-content: space-between; + + > view:nth-of-type(1) { + color: #252535; + height: 80rpx; + font-size: 32rpx; + font-weight: bolder; + line-height: 80rpx; + } + + > view:nth-of-type(2) { + color: #808080; + height: 80rpx; + font-size: 26rpx; + line-height: 80rpx; + } + } + .data-user-list { flex: 1; overflow: hidden; .scrollViewContent { width: 100%; - padding: 24rpx 30rpx; + padding: 0 30rpx; box-sizing: border-box; /* 历史记录列表 */ @@ -240,41 +264,145 @@ .list { width: 100%; - margin-bottom: 30rpx; - - >view:first-of-type { + padding: 30rpx 48rpx 30rpx 30rpx; + border-radius: 24rpx; + box-sizing: border-box; + background-color: #FFFFFF; + margin-bottom: 24rpx; + + .list-examTime { color: #808080; width: 100%; height: 24rpx; font-size: 24rpx; line-height: 24rpx; - margin-bottom: 20rpx; + margin-bottom: 24rpx; } - - >view:last-of-type { + + .list-weight { width: 100%; - height: 96rpx; + height: 48rpx; display: flex; - justify-content: space-between; - padding-left: 30rpx; - padding-right: 50rpx; - box-sizing: border-box; flex-wrap: nowrap; - border-radius: 16rpx; - background-color: #FFFFFF; - - >view { - color: #808080; - font-size: 26rpx; - height: 96rpx; - line-height: 96rpx; - + justify-content: space-between; + margin-bottom: 30rpx; + + > view:nth-of-type(1) { + color: #252535; + height: 48rpx; + font-size: 48rpx; + font-weight: bolder; + line-height: 48rpx; + text { + color: #808080; + font-size: 24rpx; + margin-left: 6rpx; + font-weight: normal; + } + } + + > view:nth-of-type(2) { + height: 48rpx; + padding: 0 16rpx; + display: flex; + flex-wrap: nowrap; + align-items: center; + border-radius: 8rpx; + background-color: #EAFAF6; + + > view:nth-of-type(1) { + width: 14rpx; + height: 18rpx; + display: flex; + align-items: center; + margin-right: 8rpx; + } + + > view:nth-of-type(2) { + color: #2AC79F; + font-size: 26rpx; + height: 26rpx; + line-height: 26rpx; + } + } + + &.arrow::after { + right: -24rpx; + } + } + + .list-bmi { + width: 100%; + height: 26rpx; + display: flex; + flex-wrap: nowrap; + + > view { + height: 26rpx; + display: flex; + flex-wrap: nowrap; + margin-right: 55rpx; + + > view:nth-of-type(1) { + height: 26rpx; + width: 26rpx; + display: flex; + align-items: center; + margin-right: 10rpx; + } + + > view:nth-of-type(2) { + color: #77849E; + height: 26rpx; + font-size: 26rpx; + line-height: 26rpx; + margin-right: 20rpx; + } + + > view:nth-of-type(3) { color: #252535; - font-weight: bold; + height: 26rpx; + font-size: 26rpx; + font-weight: bolder; + line-height: 26rpx; } } } + + // >view:first-of-type { + // color: #808080; + // width: 100%; + // height: 24rpx; + // font-size: 24rpx; + // line-height: 24rpx; + // margin-bottom: 20rpx; + // } + + // >view:last-of-type { + // width: 100%; + // height: 96rpx; + // display: flex; + // justify-content: space-between; + // padding-left: 30rpx; + // padding-right: 50rpx; + // box-sizing: border-box; + // flex-wrap: nowrap; + // border-radius: 16rpx; + // background-color: #FFFFFF; + + // >view { + // color: #808080; + // font-size: 26rpx; + // height: 96rpx; + // line-height: 96rpx; + + // text { + // color: #252535; + // font-weight: bold; + // } + // } + // } } } diff --git a/miniprogram/pages/data/data.wxml b/miniprogram/pages/data/data.wxml index a3943b7..df9f911 100644 --- a/miniprogram/pages/data/data.wxml +++ b/miniprogram/pages/data/data.wxml @@ -56,6 +56,11 @@ + + 记录列表 + 共 {{total}} 条记录 + + @@ -65,12 +70,38 @@ - {{ item.examTime }} + {{ item.examTime }} + + {{ item.weight }}kg + + + + + 0.3 + + + + + + + + BMI + {{ item.bmi }} + + + + + + 体脂率 + {{ item.fatRate }}% + + +