Browse Source

bug修改

1004749546@qq.com 4 years ago
parent
commit
d17684304c

+ 5 - 2
pages/index/index.vue

@@ -85,7 +85,7 @@
 				hasLogin: false, // 是否登录
 				hasLogin: false, // 是否登录
 				listdata: [], // 列表数据
 				listdata: [], // 列表数据
 				noDataText: '暂无数据',  //  列表请求状态提示语
 				noDataText: '暂无数据',  //  列表请求状态提示语
-				status: 'loadmore',  //  加载中状态
+				status: 'loading',  //  加载中状态
 				titleStatus: false,  //  顶部加载中状态
 				titleStatus: false,  //  顶部加载中状态
 				scrollTop: 0,  //  滚动条位置
 				scrollTop: 0,  //  滚动条位置
 				numTotal: 0, // 完成订单个数
 				numTotal: 0, // 完成订单个数
@@ -112,6 +112,7 @@
 		onShareTimeline(res) {
 		onShareTimeline(res) {
 		},
 		},
 		onShow() {
 		onShow() {
+			this.status = 'loading'
 			checkLogin().then(res => {
 			checkLogin().then(res => {
 				this.hasLogin = res.status == 200
 				this.hasLogin = res.status == 200
 				if(this.hasLogin){
 				if(this.hasLogin){
@@ -120,6 +121,7 @@
 					this.getWorkStatus()
 					this.getWorkStatus()
 				} else {
 				} else {
 					this.noDataText = '您尚未登录或登录已过期!'
 					this.noDataText = '您尚未登录或登录已过期!'
+					this.status = 'loadmore'
 				}
 				}
 			})
 			})
 		},
 		},
@@ -198,9 +200,10 @@
 						this.listdata = res.data
 						this.listdata = res.data
 						this.listdata.forEach(item =>{
 						this.listdata.forEach(item =>{
 							item.distance = item.distance ? Math.round(item.distance/1000) : ''
 							item.distance = item.distance ? Math.round(item.distance/1000) : ''
-							item.reserveTime = moment(item.confirmDate).format('YYYY-MM-DD') + item.reserveTimeTypeDictValue
+							item.reserveTime = moment(item.reserveDateBegin).format('YYYY-MM-DD') + item.reserveTimeTypeDictValue
 						})
 						})
 					}
 					}
+					this.status = 'loadmore'
 					uni.hideLoading()
 					uni.hideLoading()
 				})
 				})
 			},
 			},

+ 1 - 1
pages/order/hisOrderDetail.vue

@@ -137,7 +137,7 @@
 					console.log(res,'rrrrrrrr')
 					console.log(res,'rrrrrrrr')
 					if (res.status == 200) {
 					if (res.status == 200) {
 						this.orderInfo = res.data
 						this.orderInfo = res.data
-						this.orderInfo.reserveTime = moment(this.orderInfo.confirmDate).format('YYYY-MM-DD') + this.orderInfo.reserveTimeTypeDictValue
+						this.orderInfo.reserveTime = moment(this.orderInfo.reserveDateBegin).format('YYYY-MM-DD') + this.orderInfo.reserveTimeTypeDictValue
 						let data = this.$refs.rubbishType.getDataList()
 						let data = this.$refs.rubbishType.getDataList()
 						// 重组类型数据
 						// 重组类型数据
 						if(this.orderInfo.orderReserveItemEntityList) {
 						if(this.orderInfo.orderReserveItemEntityList) {

+ 1 - 1
pages/order/waitOrderDetail.vue

@@ -172,7 +172,7 @@
 					console.log(res,'rrrrrrrr')
 					console.log(res,'rrrrrrrr')
 					if (res.status == 200 && res.data) {
 					if (res.status == 200 && res.data) {
 						this.orderInfo = res.data
 						this.orderInfo = res.data
-						this.orderInfo.reserveTime = moment(this.orderInfo.confirmDate).format('YYYY-MM-DD') + this.orderInfo.reserveTimeTypeDictValue
+						this.orderInfo.reserveTime = moment(this.orderInfo.reserveDateBegin).format('YYYY-MM-DD') + this.orderInfo.reserveTimeTypeDictValue
 					} 
 					} 
 					uni.hideLoading()
 					uni.hideLoading()
 				})
 				})

+ 2 - 2
pages/recoveryTotal/index.vue

@@ -59,8 +59,8 @@
 				status: 'loadmore',  //  加载中状态
 				status: 'loadmore',  //  加载中状态
 				openScreen: false,  //  是否打开筛选
 				openScreen: false,  //  是否打开筛选
 				searchForm: {  //  查询条件
 				searchForm: {  //  查询条件
-					beginDate: moment().startOf('year').format('YYYY-MM-DD'),  //  创建时间默认筛选近7天
-					endDate: moment().format('YYYY-MM-DD'),  //  创建时间默认筛选近7
+					beginDate: moment().startOf('year').format('YYYY-MM-DD'),  //  默认今年1月1号
+					endDate: moment().format('YYYY-MM-DD'),  //  到今
 				},
 				},
 				scrollTop: 0,  //  滚动条位置
 				scrollTop: 0,  //  滚动条位置
 				totalWeight: 0, // 总重量
 				totalWeight: 0, // 总重量

+ 6 - 5
pages/recoveryTotal/searchModal.vue

@@ -30,6 +30,7 @@
 
 
 <script>
 <script>
 import wPicker from '@/components/w-picker/w-picker.vue'
 import wPicker from '@/components/w-picker/w-picker.vue'
+import moment from 'moment'
 export default {
 export default {
 	components: { wPicker },
 	components: { wPicker },
 	props: {
 	props: {
@@ -69,7 +70,6 @@ export default {
 			showPicker: false, // 是否显示时间弹窗
 			showPicker: false, // 是否显示时间弹窗
 			form: {
 			form: {
 				time: '', // 发起时间区间
 				time: '', // 发起时间区间
-				customerMobile: '', // 门店名称
 			},
 			},
 			beginDate: null, // 开始时间
 			beginDate: null, // 开始时间
 			endDate: null // 结束时间
 			endDate: null // 结束时间
@@ -86,7 +86,6 @@ export default {
 			}
 			}
 			this.beginDate = this.defaultParams.beginDate ? this.defaultParams.beginDate : ''
 			this.beginDate = this.defaultParams.beginDate ? this.defaultParams.beginDate : ''
 			this.endDate = this.defaultParams.endDate ? this.defaultParams.endDate : ''
 			this.endDate = this.defaultParams.endDate ? this.defaultParams.endDate : ''
-			this.form.customerMobile = this.defaultParams.customerMobile ? this.defaultParams.customerMobile : ''
 		},
 		},
 		//  清空创建时间
 		//  清空创建时间
 		clearTime(){
 		clearTime(){
@@ -114,15 +113,17 @@ export default {
 			let params = {
 			let params = {
 				beginDate: this.beginDate,
 				beginDate: this.beginDate,
 				endDate: this.endDate,
 				endDate: this.endDate,
-				customerMobile: this.form.customerMobile,
 			};
 			};
 			this.$emit('refresh', params)
 			this.$emit('refresh', params)
 			this.isShow = false
 			this.isShow = false
 		},
 		},
 		// 重置
 		// 重置
 		resetForm() {
 		resetForm() {
-			this.$refs.uForm.resetFields()
-			this.$emit('refresh', {})
+			let params = {
+				beginDate: moment().startOf('year').format('YYYY-MM-DD'),
+				endDate: moment().format('YYYY-MM-DD'),
+			};
+			this.$emit('refresh', params)
 			this.isShow = false
 			this.isShow = false
 		}
 		}
 	}
 	}

BIN
static/logo.png


BIN
static/user_icon_number.png


BIN
static/user_icon_password.png