支持深谷
This commit is contained in:
@@ -41,6 +41,7 @@ Page({
|
||||
{ key: 'peak', title: '峰' },
|
||||
{ key: 'flat', title: '平' },
|
||||
{ key: 'valley', title: '谷' },
|
||||
{ key: 'deepValley', title: '深谷' },
|
||||
],
|
||||
list: [],
|
||||
visible: false,
|
||||
@@ -171,7 +172,7 @@ Page({
|
||||
const newList = [...times].map(item => {
|
||||
const exist = list.find(ele => ele.time === item)
|
||||
if (exist) {
|
||||
return Number(exist.critical)+ Number(exist.peak)+Number(exist.flat)+Number(exist.valley);
|
||||
return Number(exist.critical || 0)+ Number(exist.peak || 0)+Number(exist.flat || 0)+Number(exist.valley || 0)+Number(exist.deepValley || 0);
|
||||
}
|
||||
return null
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user