| | |
| | | countData:{}, |
| | | countDataList:{}, |
| | | hasNext:true, |
| | | loading:false, |
| | | show: false, |
| | | show1:false, |
| | | year:null, |
| | |
| | | }, |
| | | comfirmDate(flag){ |
| | | if (flag) { |
| | | if (!this.tempStartDate || !this.tempEndDate) { |
| | | return uni.showToast({ |
| | | title: '请选择开始和结束时间', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | if(new Date(this.tempEndDate+" 00:00:00").getTime() < new Date(this.tempStartDate+" 00:00:00").getTime()){ |
| | | return uni.showToast({ |
| | | title:'日期范围不正确', |
| | | icon:'error' |
| | | icon:'none' |
| | | }) |
| | | } |
| | | this.startDate =this.tempStartDate |
| | | this.endDate =this.tempEndDate |
| | | this.startDate = this.tempStartDate |
| | | this.endDate = this.tempEndDate |
| | | this.show1 = false |
| | | setTimeout(() => { |
| | | this.getFirstPageData() |
| | | }, 300) |
| | | } else { |
| | | this.startDate = null |
| | | this.endDate = null |
| | | this.tempStartDate = this.defaultStartDate |
| | | this.tempEndDate = this.defaultEndDate |
| | | this.show1 = false |
| | | setTimeout(() => { |
| | | this.getFirstPageData() |
| | | }, 300) |
| | | } |
| | | this.getFirstPageData() |
| | | this.show1=false |
| | | }, |
| | | openShow(){ |
| | | this.tempActive =this.active |
| | |
| | | if(flag){ |
| | | this.active = this.tempActive |
| | | this.type = this.tempType |
| | | this.show = false |
| | | this.wordsWidth = 250 |
| | | if(this.active === 0 && this.type === 0){ |
| | | this.words = '全部' |
| | |
| | | } |
| | | this.words = t1 + t2 |
| | | } |
| | | this.getFirstPageData() |
| | | this.show = false |
| | | setTimeout(() => { |
| | | this.getFirstPageData() |
| | | }, 300) |
| | | }else{ |
| | | this.tempActive = 0 |
| | | this.tempType =0 |
| | | this.tempType = 0 |
| | | this.active = 0 |
| | | this.type = 0 |
| | | this.words = '全部' |
| | | this.show = false |
| | | setTimeout(() => { |
| | | this.getFirstPageData() |
| | | }, 300) |
| | | } |
| | | }, |
| | | formattedDateTime(currentDate) { |
| | |
| | | }, |
| | | getFirstPageData(){ |
| | | this.currentPage = 0 |
| | | this.hasNext=true |
| | | this.total=0 |
| | | this.dataList=[] |
| | | this.hasNext = true |
| | | this.loading = false |
| | | this.total = 0 |
| | | this.dataList = [] |
| | | this.getShopPage() |
| | | }, |
| | | jumpWithdraw(){ |