- 人员详情页:日期下方显示完整农历「农历 YYYY年 X月X日」 - 日历页本月纪念日列表:日期下方显示农历月日「X月X日」 - 公历事件用 solarToLunar 算当年对应农历 - 农历事件按当年公历落点反算农历(与原始农历一致) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -122,12 +122,14 @@ Page({
|
||||
.map(x => {
|
||||
const person = persons.find(p => p.id === x.personId)
|
||||
const date = new Date(currentYear, x._displayMonth - 1, x._displayDay)
|
||||
const ld = lunar.solarToLunar(date)
|
||||
return {
|
||||
...x,
|
||||
personName: person ? person.name : '未知',
|
||||
typeIcon: this.getTypeIcon(x.type),
|
||||
typeName: x.customTypeName || this.getTypeName(x.type),
|
||||
dateText: dateUtils.formatDate(date, 'MM月DD日'),
|
||||
lunarMD: ld.lunarText,
|
||||
daysUntil: dateUtils.getDaysUntil(date)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user