[AI Generated]: refactor(Views): 优化测量报告页面结构与样式

This commit is contained in:
17792275749
2026-05-13 11:19:32 +08:00
parent d1331437fa
commit afa602dff9
7 changed files with 116 additions and 345 deletions
@@ -1,15 +1,11 @@
/** 测量报告数据 */
interface ReportData {
/** 测量时间 */
measureTime: string
/** 用户姓名 */
userName: string
interface WeightRecord {
/** 体重整数部分 */
weight: number
/** 体重小数部分,如 ".20" */
/** 体重小数部分,含小数点,如 ".20" */
weightDecimal: string
/** 测量时间显示,如 "05-06 09:30" */
weightDate: string
/** 测量时间显示,如 "今日 07:30" */
date: string
/** 与上次相比差值(负=减轻,正=增重) */
diff: number
/** 身高(cm) */
@@ -35,13 +31,11 @@ interface ReportData {
Page({
data: {
// 报告数据
report: {
measureTime: '2026-05-06 09:30',
userName: '陈万宁',
record: {
weight: 68,
weightDecimal: '.20',
weightDate: '05-06 09:30',
diff: -2.6,
date: '今日 07:30',
diff: -0.3,
height: 176,
bmi: 22.4,
bmiLabel: '标准',
@@ -49,7 +43,7 @@ Page({
bodyFat: 22.3,
bodyFatMass: 52.1,
bmr: 1652
} as ReportData
} as WeightRecord
},
onLoad(options) {