diff --git a/elderly-health-app/src/pages/health/add.vue b/elderly-health-app/src/pages/health/add.vue index f3cb5a9..129828b 100644 --- a/elderly-health-app/src/pages/health/add.vue +++ b/elderly-health-app/src/pages/health/add.vue @@ -105,9 +105,10 @@ import { onLoad } from '@dcloudio/uni-app' import { createHealthRecord, getLatestHealthRecord } from '@/api/health' import { getProfile } from '@/api/elderly' -const today = new Date().toISOString().slice(0, 10) const now = new Date() const pad = (n) => String(n).padStart(2, '0') +// 日期选择器使用本地日期;toISOString() 会转成 UTC,午夜附近可能预填成昨天/明天。 +const today = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}` const form = reactive({ date: today, diff --git a/elderly-health-app/src/pages/screening/index.vue b/elderly-health-app/src/pages/screening/index.vue index 9f98c3d..931bc73 100644 --- a/elderly-health-app/src/pages/screening/index.vue +++ b/elderly-health-app/src/pages/screening/index.vue @@ -7,6 +7,13 @@ 加载中… + + 请先签署知情同意书,才能开始健康初筛。 + + + + 初筛暂时无法加载,请稍后重试 +