From 8410bc10402f34eb0bf8b552df2c7bcae90183b8 Mon Sep 17 00:00:00 2001 From: "@zuopngfei" Date: Tue, 5 Aug 2025 11:26:06 +0800 Subject: [PATCH] sdsd --- pages/therapeuticRegimen/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/therapeuticRegimen/index.js b/pages/therapeuticRegimen/index.js index c1db2c0..6d08147 100644 --- a/pages/therapeuticRegimen/index.js +++ b/pages/therapeuticRegimen/index.js @@ -38,6 +38,9 @@ Page({ const list = res.list.map(item => { const startDate = new Date(item.start_date) const endDate = new Date(item.end_date) + if (startDate == endDate && today == startDate){ + item.status = '进行中' + } if (today > endDate) { item.status = '已结束' } else if (today < startDate) {