| | |
| | | model: { |
| | | startTime: this.startDate || this.defaultStartDate, |
| | | endTime: this.endDate || this.defaultEndDate, |
| | | type: this.active === 1?0:(this.active===2?1:''), |
| | | objType: this.type === 1?16:( this.type === 2?17:( this.type === 3?25: (this.type === 4?1: ''))), |
| | | optType: this.active === 1 ? 1 : (this.active === 2 ? -1 : ''), |
| | | type: this.type === 1 ? 0 : (this.type === 2 ? 1 : (this.type === 4 ? 2 : '')), |
| | | }, |
| | | page: this.currentPage |
| | | }).then(res => { |
| | |
| | | this.$u.api.shopSummary({ |
| | | startTime: this.startDate || this.defaultStartDate, |
| | | endTime: this.endDate || this.defaultEndDate, |
| | | type: this.active === 1?0:(this.active===2?1:''), |
| | | objType: this.type === 1?16:( this.type === 2?17:( this.type === 3?25: (this.type === 4?1: ''))), |
| | | optType: this.active === 1 ? 1 : (this.active === 2 ? -1 : ''), |
| | | type: this.type === 1 ? 0 : (this.type === 2 ? 1 : (this.type === 4 ? 2 : '')), |
| | | }).then(res=>{ |
| | | if(res.code == 200){ |
| | | this.countDataList = res.data |
| | |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | if(new Date(this.tempEndDate+" 00:00:00").getTime() < new Date(this.tempStartDate+" 00:00:00").getTime()){ |
| | | if(new Date(this.tempEndDate+" 00:00:00").getTime() <= new Date(this.tempStartDate+" 00:00:00").getTime()){ |
| | | return uni.showToast({ |
| | | title:'日期范围不正确', |
| | | title:'开始时间必须小于截止时间', |
| | | icon:'none' |
| | | }) |
| | | } |
| | |
| | | } else { |
| | | this.startDate = null |
| | | this.endDate = null |
| | | this.tempStartDate = this.defaultStartDate |
| | | this.tempEndDate = this.defaultEndDate |
| | | this.tempStartDate = null |
| | | this.tempEndDate = null |
| | | this.show1 = false |
| | | setTimeout(() => { |
| | | this.getFirstPageData() |
| | |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | margin-top: 30rpx; |
| | | padding-bottom: 30rpx; |
| | | box-sizing: border-box; |
| | | } |
| | | .item-list-item { |
| | | width: 100%; |