update
This commit is contained in:
parent
0409da422c
commit
3e3f701b79
@ -1610,7 +1610,7 @@ export default {
|
|||||||
currentMoney:'',
|
currentMoney:'',
|
||||||
showMoreFixed:false,// 显示悬浮框
|
showMoreFixed:false,// 显示悬浮框
|
||||||
profitSharingList:[],// 分润占比旁边的list
|
profitSharingList:[],// 分润占比旁边的list
|
||||||
isShowFestival:'spring',// 显示的节日
|
isShowFestival:'qm',// 显示的节日
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@ -1704,9 +1704,9 @@ export default {
|
|||||||
...mapGetters({'user':'getUser'})
|
...mapGetters({'user':'getUser'})
|
||||||
},
|
},
|
||||||
onLoad(option){
|
onLoad(option){
|
||||||
if (new Date('2024-04-04 00:00:01').getTime() > new Date('2024-04-04 00:00:00').getTime()){
|
// if (new Date().getTime() > new Date('2024-04-04 00:00:00').getTime()){
|
||||||
this.isShowFestival = 'qm'
|
// this.isShowFestival = 'qm'
|
||||||
}
|
// }
|
||||||
const _this = this
|
const _this = this
|
||||||
// setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
// _this.moneyRateList = [0,0]
|
// _this.moneyRateList = [0,0]
|
||||||
|
|||||||
@ -188,8 +188,8 @@ export default {
|
|||||||
userInfo = JSON.parse(userInfo)
|
userInfo = JSON.parse(userInfo)
|
||||||
this.useInfo = JSON.parse(JSON.stringify(userInfo))
|
this.useInfo = JSON.parse(JSON.stringify(userInfo))
|
||||||
|
|
||||||
// this.lastDay = uni.getStorageSync('lastDay')
|
this.lastDay = uni.getStorageSync('lastDay')
|
||||||
this.lastDay = '2024-04-03'
|
// this.lastDay = '2024-04-03'
|
||||||
console.log('query',query)
|
console.log('query',query)
|
||||||
if (this.selectFestival===0){
|
if (this.selectFestival===0){
|
||||||
if (query.currentScroll){
|
if (query.currentScroll){
|
||||||
@ -221,7 +221,7 @@ export default {
|
|||||||
dayNumber = moment().diff("2024-01-26", "days")
|
dayNumber = moment().diff("2024-01-26", "days")
|
||||||
this.howDayNumber = dayNumber<=40?dayNumber:40
|
this.howDayNumber = dayNumber<=40?dayNumber:40
|
||||||
}else if(this.selectFestival===1){
|
}else if(this.selectFestival===1){
|
||||||
dayNumber = moment('2024-04-04').diff("2024-04-03", "days")
|
dayNumber = moment().diff("2024-04-03", "days")
|
||||||
this.howDayNumber = dayNumber<=3?dayNumber:3
|
this.howDayNumber = dayNumber<=3?dayNumber:3
|
||||||
}
|
}
|
||||||
let dateList = []
|
let dateList = []
|
||||||
|
|||||||
@ -230,8 +230,8 @@ export default {
|
|||||||
if (query.type){
|
if (query.type){
|
||||||
this.type = Number(query.type)
|
this.type = Number(query.type)
|
||||||
}
|
}
|
||||||
// this.lastDay = uni.getStorageSync('lastDay')
|
this.lastDay = uni.getStorageSync('lastDay')
|
||||||
this.lastDay = '2024-04-03'
|
// this.lastDay = '2024-04-03'
|
||||||
|
|
||||||
if (query.festivalType){
|
if (query.festivalType){
|
||||||
this.selectFestival = Number(query.festivalType)
|
this.selectFestival = Number(query.festivalType)
|
||||||
@ -272,7 +272,7 @@ export default {
|
|||||||
dayNumber = moment().diff("2024-01-26", "days")
|
dayNumber = moment().diff("2024-01-26", "days")
|
||||||
this.howDayNumber = dayNumber<=40?dayNumber:40
|
this.howDayNumber = dayNumber<=40?dayNumber:40
|
||||||
}else if(this.selectFestival===1){
|
}else if(this.selectFestival===1){
|
||||||
dayNumber = moment('2024-04-04').diff("2024-04-03", "days")
|
dayNumber = moment().diff("2024-04-03", "days")
|
||||||
this.howDayNumber = dayNumber<=3?dayNumber:3
|
this.howDayNumber = dayNumber<=3?dayNumber:3
|
||||||
}
|
}
|
||||||
let dateList = []
|
let dateList = []
|
||||||
@ -288,9 +288,10 @@ export default {
|
|||||||
// dateList.push({label:`第${i}天`,value:`2024-02-${i - 7 + 1<10?`0${i - 7 + 1}`:i - 7 + 1}`})
|
// dateList.push({label:`第${i}天`,value:`2024-02-${i - 7 + 1<10?`0${i - 7 + 1}`:i - 7 + 1}`})
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
this.scrollList = dateList
|
if(dateList && dateList.length>0){
|
||||||
this.selectDateText = dateList[this.howDayNumber-1].value
|
this.scrollList = dateList
|
||||||
|
this.selectDateText = dateList[this.howDayNumber-1].value
|
||||||
|
}
|
||||||
this.handleGetData()
|
this.handleGetData()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
|||||||
@ -974,14 +974,14 @@ export default {
|
|||||||
entryCarDailyAdd:0,// 每日车流增幅
|
entryCarDailyAdd:0,// 每日车流增幅
|
||||||
entryCarDailyNumber:0,// 每日车流增长
|
entryCarDailyNumber:0,// 每日车流增长
|
||||||
|
|
||||||
selectFestival: 0,// 选择的节日
|
selectFestival: 1,// 选择的节日
|
||||||
festivalList:[{label:'平安春运',value:1},{label:'清明节',value:2}],// 节日列表
|
festivalList:[{label:'平安春运',value:1},{label:'清明节',value:2}],// 节日列表
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async onLoad(query){
|
async onLoad(query){
|
||||||
if (new Date('2024-04-05 00:00:01').getTime() > new Date('2024-04-05 00:00:00').getTime()){
|
// if (new Date().getTime() > new Date('2024-04-05 00:00:00').getTime()){
|
||||||
this.selectFestival = 1
|
// this.selectFestival = 1
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 获取手机参数对页面进行适配
|
// 获取手机参数对页面进行适配
|
||||||
let systemInfo = uni.getSystemInfoSync()
|
let systemInfo = uni.getSystemInfoSync()
|
||||||
@ -1000,8 +1000,8 @@ export default {
|
|||||||
this.curYear = y
|
this.curYear = y
|
||||||
this.compareYear = y - 1
|
this.compareYear = y - 1
|
||||||
|
|
||||||
// this.lastDay = uni.getStorageSync('lastDay')
|
this.lastDay = uni.getStorageSync('lastDay')
|
||||||
this.lastDay = '2024-04-03'
|
// this.lastDay = '2024-04-03'
|
||||||
// this.currentScroll = 'item'+ uni.getStorageSync('lastDay')
|
// this.currentScroll = 'item'+ uni.getStorageSync('lastDay')
|
||||||
if (this.selectFestival===0){
|
if (this.selectFestival===0){
|
||||||
this.currentScroll = 'item'+ '2024-03-05'
|
this.currentScroll = 'item'+ '2024-03-05'
|
||||||
@ -1026,9 +1026,8 @@ export default {
|
|||||||
if (this.selectFestival===0){
|
if (this.selectFestival===0){
|
||||||
dayNumber = moment().diff("2024-01-26", "days")
|
dayNumber = moment().diff("2024-01-26", "days")
|
||||||
}else if (this.selectFestival===1){
|
}else if (this.selectFestival===1){
|
||||||
dayNumber = moment('2024-04-04').diff("2024-04-03", "days")
|
dayNumber = moment().diff("2024-04-03", "days")
|
||||||
}
|
}
|
||||||
console.log('dayNumber',dayNumber)
|
|
||||||
if (this.selectFestival===0){
|
if (this.selectFestival===0){
|
||||||
this.howDayNumber = dayNumber<=40?dayNumber:40
|
this.howDayNumber = dayNumber<=40?dayNumber:40
|
||||||
}else if (this.selectFestival===1){
|
}else if (this.selectFestival===1){
|
||||||
@ -1103,7 +1102,7 @@ export default {
|
|||||||
if (this.selectFestival===0){
|
if (this.selectFestival===0){
|
||||||
dayNumber = moment().diff("2024-01-26", "days")
|
dayNumber = moment().diff("2024-01-26", "days")
|
||||||
}else if (this.selectFestival===1){
|
}else if (this.selectFestival===1){
|
||||||
dayNumber = moment("2024-04-04").diff("2024-04-03", "days")
|
dayNumber = moment().diff("2024-04-03", "days")
|
||||||
}
|
}
|
||||||
if (this.selectFestival===0){
|
if (this.selectFestival===0){
|
||||||
this.howDayNumber = dayNumber<=40?dayNumber:40
|
this.howDayNumber = dayNumber<=40?dayNumber:40
|
||||||
|
|||||||
@ -127,7 +127,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query){
|
onLoad(query){
|
||||||
console.log('query',query)
|
|
||||||
if (query.detailObj){
|
if (query.detailObj){
|
||||||
this.giveTrendObj = JSON.parse(query.detailObj)
|
this.giveTrendObj = JSON.parse(query.detailObj)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user