update
This commit is contained in:
parent
6f8d811054
commit
5a63f9a0b0
@ -3945,7 +3945,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const lastDay = this.$util.cutDate(new Date(), "YYYY-MM-DD", -1);
|
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 = this.$util.cutDate(new Date(), "YYYY-MM-DD");
|
||||||
// const nowDay = '2026-01-01'
|
// const nowDay = '2026-01-01'
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -240,6 +240,50 @@ let chineseCalendar2025 = [
|
|||||||
'正月廿五',
|
'正月廿五',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// 2026年农历日历
|
||||||
|
let chineseCalendar2026 = [
|
||||||
|
'腊月十五',
|
||||||
|
'腊月十六',
|
||||||
|
'腊月十七',
|
||||||
|
'腊月十八',
|
||||||
|
'腊月十九',
|
||||||
|
'腊月二十',
|
||||||
|
'腊月廿一',
|
||||||
|
'腊月廿二',
|
||||||
|
'北小年',
|
||||||
|
'南小年',
|
||||||
|
'腊月廿五',
|
||||||
|
'腊月廿六',
|
||||||
|
'腊月廿七',
|
||||||
|
'腊月廿八',
|
||||||
|
'除夕',
|
||||||
|
'春节',
|
||||||
|
'正月初二',
|
||||||
|
'正月初三',
|
||||||
|
'正月初四',
|
||||||
|
'正月初五',
|
||||||
|
'正月初六',
|
||||||
|
'正月初七',
|
||||||
|
'正月初八',
|
||||||
|
'正月初九',
|
||||||
|
'正月初十',
|
||||||
|
'正月十一',
|
||||||
|
'正月十二',
|
||||||
|
'正月十三',
|
||||||
|
'正月十四',
|
||||||
|
'正月十五',
|
||||||
|
'正月十六',
|
||||||
|
'正月十七',
|
||||||
|
'正月十八',
|
||||||
|
'正月十九',
|
||||||
|
'正月二十',
|
||||||
|
'正月廿一',
|
||||||
|
'正月廿二',
|
||||||
|
'正月廿三',
|
||||||
|
'正月廿四',
|
||||||
|
'正月廿五',
|
||||||
|
]
|
||||||
|
|
||||||
// 2023年节假日安排表
|
// 2023年节假日安排表
|
||||||
let festivalObj2023 = {
|
let festivalObj2023 = {
|
||||||
"2023-01-01": "元旦",
|
"2023-01-01": "元旦",
|
||||||
@ -522,6 +566,8 @@ const cfu = {
|
|||||||
resObj = chineseCalendar2024
|
resObj = chineseCalendar2024
|
||||||
} else if (item.name === 2025) {
|
} else if (item.name === 2025) {
|
||||||
resObj = chineseCalendar2025
|
resObj = chineseCalendar2025
|
||||||
|
}else if (item.name === 2026) {
|
||||||
|
resObj = chineseCalendar2026
|
||||||
}
|
}
|
||||||
otherFestivalTest = resObj[index]
|
otherFestivalTest = resObj[index]
|
||||||
} else if (festival === 1 || festival === 3 || festival === 4 || festival === 5 || festival === 7 || festival === 8) {
|
} else if (festival === 1 || festival === 3 || festival === 4 || festival === 5 || festival === 7 || festival === 8) {
|
||||||
|
|||||||
@ -3426,7 +3426,7 @@ export default {
|
|||||||
|
|
||||||
// 拿到计算数据的标准日
|
// 拿到计算数据的标准日
|
||||||
this.lastDay = uni.getStorageSync("lastDay");
|
this.lastDay = uni.getStorageSync("lastDay");
|
||||||
// this.lastDay = '2026-09-30';
|
// this.lastDay = '2026-02-02';
|
||||||
const currentDate = new Date(this.lastDay);
|
const currentDate = new Date(this.lastDay);
|
||||||
let currentY = currentDate.getFullYear(); // 年
|
let currentY = currentDate.getFullYear(); // 年
|
||||||
let currentM = currentDate.getMonth() + 1; // 月
|
let currentM = currentDate.getMonth() + 1; // 月
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user