Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -200,12 +200,13 @@ export struct AppointmentListUI { | @@ -200,12 +200,13 @@ export struct AppointmentListUI { | ||
| 200 | let time = arr[0].split("-"); | 200 | let time = arr[0].split("-"); |
| 201 | if (time.length === 3) { | 201 | if (time.length === 3) { |
| 202 | let month = time[1].indexOf("0") === 0 ? time[1].substring(1) : time[1] | 202 | let month = time[1].indexOf("0") === 0 ? time[1].substring(1) : time[1] |
| 203 | - let day = time[2] | 203 | + // let day = time[2] |
| 204 | + let day = time[2].indexOf("0") === 0 ? time[2].substring(1) : time[2] | ||
| 204 | 205 | ||
| 205 | dealData[0] = `${month}月${day}日` | 206 | dealData[0] = `${month}月${day}日` |
| 206 | let today = `${new Date().getMonth() + 1}月${new Date().getDate()}日` | 207 | let today = `${new Date().getMonth() + 1}月${new Date().getDate()}日` |
| 207 | if (dealData[0] === today) { | 208 | if (dealData[0] === today) { |
| 208 | - dealData[0] = "今日" | 209 | + dealData[0] = "今天" |
| 209 | } | 210 | } |
| 210 | } | 211 | } |
| 211 | } | 212 | } |
-
Please register or login to post a comment