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) {