diff --git a/miniprogram/models/detail.js b/miniprogram/models/detail.js index b69d6a1..45beeb3 100644 --- a/miniprogram/models/detail.js +++ b/miniprogram/models/detail.js @@ -49,7 +49,8 @@ class DetailModel { if (!goalRecords) return durationFormatText(0) let max = 0 goalRecords.forEach(record => { - max = (record.time > max) ? record.time : max + let time = parseInt(record.time, 10) + max = (time > max) ? time : max }) return durationFormatText(max) }