[AI Generated]: refactor(Views): 优化测量报告页面结构与样式
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user