This commit is contained in:
ylj20011123 2026-01-30 18:29:28 +08:00
parent 6f8d811054
commit 5a63f9a0b0
3 changed files with 491 additions and 445 deletions

View File

@ -3945,7 +3945,7 @@ export default {
},
data() {
const lastDay = this.$util.cutDate(new Date(), "YYYY-MM-DD", -1);
// const lastDay = '2026-01-01'
// const lastDay = '2026-02-02'
const nowDay = this.$util.cutDate(new Date(), "YYYY-MM-DD");
// const nowDay = '2026-01-01'
return {

View File

@ -240,6 +240,50 @@ let chineseCalendar2025 = [
'正月廿五',
]
// 2026年农历日历
let chineseCalendar2026 = [
'腊月十五',
'腊月十六',
'腊月十七',
'腊月十八',
'腊月十九',
'腊月二十',
'腊月廿一',
'腊月廿二',
'北小年',
'南小年',
'腊月廿五',
'腊月廿六',
'腊月廿七',
'腊月廿八',
'除夕',
'春节',
'正月初二',
'正月初三',
'正月初四',
'正月初五',
'正月初六',
'正月初七',
'正月初八',
'正月初九',
'正月初十',
'正月十一',
'正月十二',
'正月十三',
'正月十四',
'正月十五',
'正月十六',
'正月十七',
'正月十八',
'正月十九',
'正月二十',
'正月廿一',
'正月廿二',
'正月廿三',
'正月廿四',
'正月廿五',
]
// 2023年节假日安排表
let festivalObj2023 = {
"2023-01-01": "元旦",
@ -522,6 +566,8 @@ const cfu = {
resObj = chineseCalendar2024
} else if (item.name === 2025) {
resObj = chineseCalendar2025
}else if (item.name === 2026) {
resObj = chineseCalendar2026
}
otherFestivalTest = resObj[index]
} else if (festival === 1 || festival === 3 || festival === 4 || festival === 5 || festival === 7 || festival === 8) {

View File

@ -3426,7 +3426,7 @@ export default {
//
this.lastDay = uni.getStorageSync("lastDay");
// this.lastDay = '2026-09-30';
// this.lastDay = '2026-02-02';
const currentDate = new Date(this.lastDay);
let currentY = currentDate.getFullYear(); //
let currentM = currentDate.getMonth() + 1; //