12 lines
373 B
JavaScript
12 lines
373 B
JavaScript
Page({
|
|
data: {
|
|
days: Array.from({ length: 31 }).map((_, index) => ({ day: index + 1, rest: [12, 25].includes(index + 1) })),
|
|
records: [
|
|
{ date: '2026-06-12', text: '全天请假' },
|
|
{ date: '2026-06-25', text: '下午请假' }
|
|
]
|
|
},
|
|
add() { wx.showToast({ title: '请选择日期后保存', icon: 'none' }) },
|
|
back() { wx.navigateBack() }
|
|
})
|