This commit is contained in:
cclu 2024-04-07 16:13:10 +08:00
parent 925b0a5ae7
commit ec8a9ca99d
3 changed files with 71 additions and 60 deletions

View File

@ -280,9 +280,12 @@ export default {
this.handleTab(this.selectTab) this.handleTab(this.selectTab)
}, },
handleBack(){ handleBack(){
uni.navigateBack({ uni.switchTab({
delta: 1 url: '/pages/index/index'
}); });
// uni.navigateBack({
// delta: 1
// });
}, },
// //
async handleGetServiceList(){ async handleGetServiceList(){

View File

@ -1611,6 +1611,7 @@ export default {
showMoreFixed:false,// showMoreFixed:false,//
profitSharingList:[],// list profitSharingList:[],// list
isShowFestival:'qm',// isShowFestival:'qm',//
oldSwiperIndex: 0,// swiper 1 return
} }
}, },
watch:{ watch:{
@ -2432,6 +2433,9 @@ export default {
console.log('1') console.log('1')
console.log('this.stopSwiper',this.stopSwiper) console.log('this.stopSwiper',this.stopSwiper)
console.log('e',e.detail.current) console.log('e',e.detail.current)
this.oldSwiperIndex = e.detail.current
setTimeout(()=>{
if (this.oldSwiperIndex === e.detail.current){
this.showRateChart = false this.showRateChart = false
if (!this.stopSwiper){ if (!this.stopSwiper){
this.selectMonth = e.detail.current>11?(e.detail.current + 1)%12===0?12:(e.detail.current + 1)%12:e.detail.current + 1 this.selectMonth = e.detail.current>11?(e.detail.current + 1)%12===0?12:(e.detail.current + 1)%12:e.detail.current + 1
@ -2467,7 +2471,7 @@ export default {
// //
this.initYesterdayData(this.selectMonth!==date.getMonth()+1) this.initYesterdayData(this.selectMonth!==date.getMonth()+1)
// //
this.monthYearPlan() // this.monthYearPlan()
// //
// //
let carDate let carDate
@ -2478,9 +2482,9 @@ export default {
} }
this.getCarInfo(carDate) this.getCarInfo(carDate)
// //
this.handleGetExamine() // this.handleGetExamine()
// //
this.handleGetDailyPatrol() // this.handleGetDailyPatrol()
// //
this.handleGetAllCarTraffic() this.handleGetAllCarTraffic()
@ -2489,6 +2493,10 @@ export default {
this.showRateChart = true this.showRateChart = true
},1500) },1500)
} }
}
},1000)
}, },
handleShowYDModal(){ handleShowYDModal(){
this.ydModal = !this.ydModal this.ydModal = !this.ydModal

View File

@ -354,7 +354,7 @@ export default {
data: [ data: [
{ {
min: 0, min: 0,
max:3000 max: this.selectFestival===0?3000:1500
} }
] ]
}, },