feat:更新运动健康模块

This commit is contained in:
2025-11-04 22:35:53 +08:00
parent 5f3a7ca5b4
commit ee20c19b72
16 changed files with 182 additions and 394 deletions

View File

@@ -22,3 +22,7 @@ export const statsByField = (records: ILedgerRecord[],
.sort((a, b) => b.value - a.value)
.slice(0, 5)
}
export const getLedgerSortByPrice = (records: ILedgerRecord[]) => {
return records.sort((a, b) => b?.totalPrice - a?.totalPrice)
}