This commit is contained in:
cclu 2024-05-10 13:39:50 +08:00
parent c1a8805ca7
commit a75bc5d821
3 changed files with 17 additions and 8 deletions

View File

@ -229,6 +229,7 @@ export default {
}else{
this.howDayNumber = 5
this.currentScroll = 'item'+ '2024-04-07'
this.allDateDay = '2024-04-07'
}
}else if (this.selectFestival===2){
dayNumber = moment().diff("2024-04-30", "days")//
@ -236,8 +237,9 @@ export default {
this.howDayNumber = dayNumber
}else{
this.howDayNumber = 7
this.currentScroll = 'item'+ '2024-05-05'
this.lastDay = '2024-05-05'
this.currentScroll = 'item'+ '2024-05-06'
this.lastDay = '2024-05-06'
this.allDateDay = '2024-05-06'
}
}
let dateList = []

View File

@ -280,6 +280,7 @@ export default {
}else{
this.howDayNumber = 5
this.currentScroll = 'item'+ '2024-04-07'
this.allDateDay = '2024-04-07'
}
}else if(this.selectFestival===2){
dayNumber = moment().diff("2024-04-30", "days")
@ -287,8 +288,9 @@ export default {
this.howDayNumber = dayNumber
}else{
this.howDayNumber = 7
this.currentScroll = 'item'+ '2024-05-05'
this.lastDay = '2024-05-05'
this.currentScroll = 'item'+ '2024-05-06'
this.lastDay = '2024-05-06'
this.allDateDay = '2024-05-06'
}
}
let dateList = []

View File

@ -1045,14 +1045,16 @@ export default {
this.howDayNumber = 5
this.currentScroll = 'item'+ '2024-04-07'
this.lastDay = '2024-04-07'
this.allDateDay = '2024-04-07'
}
}else if (this.selectFestival===2){
if (dayNumber<=7){
this.howDayNumber = dayNumber
}else{
this.howDayNumber = 7
this.currentScroll = 'item'+ '2024-05-05'
this.lastDay = '2024-05-05'
this.currentScroll = 'item'+ '2024-05-06'
this.lastDay = '2024-05-06'
this.allDateDay = '2024-05-06'
}
}
@ -1143,6 +1145,7 @@ export default {
}else{
this.howDayNumber = 40
this.lastDay = '2024-03-05'
this.allDateDay = '2024-03-05'
}
}else if (this.selectFestival===1){
// this.howDayNumber = dayNumber<=3?dayNumber:3
@ -1152,6 +1155,7 @@ export default {
this.howDayNumber = 3
this.currentScroll = 'item'+ '2024-04-05'
this.lastDay = '2024-04-07'
this.allDateDay = '2024-04-07'
}
}else if (this.selectFestival===2){
// this.howDayNumber = dayNumber<=3?dayNumber:3
@ -1159,8 +1163,9 @@ export default {
this.howDayNumber = dayNumber
}else{
this.howDayNumber = 7
this.currentScroll = 'item'+ '2024-05-05'
this.lastDay = '2024-05-05'
this.currentScroll = 'item'+ '2024-05-06'
this.lastDay = '2024-05-06'
this.allDateDay = '2024-05-06'
}
}
let dateList = []