|  | @@ -23,7 +23,9 @@
 | 
	
		
			
				|  |  |  				<view class="info-item">进场时间:{{item.inTime}}</view>
 | 
	
		
			
				|  |  |  				<view class="info-item">出场时间:{{item.outTime}}</view>
 | 
	
		
			
				|  |  |  				<view class="info-item">停车时长:{{item.duration}}</view>
 | 
	
		
			
				|  |  | -				<view class="info-item">欠费金额:<span class="amount">{{item.payAmount}}元</span></view>
 | 
	
		
			
				|  |  | +				<view class="info-item">收费员:{{item.payeeName}}</view>
 | 
	
		
			
				|  |  | +				<view class="info-item">支付金额:<span class="amount">{{item.payAmount}}元</span></view>
 | 
	
		
			
				|  |  | +				<view class="info-item">订单状态:{{item.orderStatus|filterOrderStatus}}</view>
 | 
	
		
			
				|  |  |  		 	</view>
 | 
	
		
			
				|  |  |  		 </view>
 | 
	
		
			
				|  |  |  		 </mescroll-body>
 | 
	
	
		
			
				|  | @@ -37,23 +39,21 @@
 | 
	
		
			
				|  |  |  		mixins: [MescrollMixin], // 使用mixin
 | 
	
		
			
				|  |  |  		data(){
 | 
	
		
			
				|  |  |  			return{
 | 
	
		
			
				|  |  | -				orderID:'',
 | 
	
		
			
				|  |  | +				vehicleNo:'',
 | 
	
		
			
				|  |  |  				listEmpty:false,
 | 
	
		
			
				|  |  |  				owelist:[],
 | 
	
		
			
				|  |  |  				pagination:Object.assign({}, {pageNo: 1,pageSize: 10}),
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		onLoad(page){
 | 
	
		
			
				|  |  | -			this.orderID = page.orderID;
 | 
	
		
			
				|  |  | -			console.log('this.orderID',this.orderID)
 | 
	
		
			
				|  |  | +			this.vehicleNo = page.vehicleNo;
 | 
	
		
			
				|  |  | +			console.log('this.vehicleNo',this.vehicleNo)
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		onShow(){
 | 
	
		
			
				|  |  |  			// this.owelist = [];
 | 
	
		
			
				|  |  | -			// this.handleEntranceOutDetail();
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		onReachBottom() {
 | 
	
		
			
				|  |  |  			// this.getData();
 | 
	
		
			
				|  |  | -			console.log('111')
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		methods:{
 | 
	
		
			
				|  |  |  			customBack(){
 | 
	
	
		
			
				|  | @@ -62,32 +62,6 @@
 | 
	
		
			
				|  |  |  					url: 'pages/index/index'
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  | -			handleEntranceOutDetail(){
 | 
	
		
			
				|  |  | -				uni.showLoading({});
 | 
	
		
			
				|  |  | -				this.$u.api.entranceOutDetail({spaceId:this.orderID})
 | 
	
		
			
				|  |  | -				.then(res=>{
 | 
	
		
			
				|  |  | -					uni.hideLoading();
 | 
	
		
			
				|  |  | -					// this.$refs.uToast.show({
 | 
	
		
			
				|  |  | -					// 	title: res.msg,
 | 
	
		
			
				|  |  | -					// 	type: 'success',
 | 
	
		
			
				|  |  | -					// });
 | 
	
		
			
				|  |  | -					this.leaveDetail = res.data;
 | 
	
		
			
				|  |  | -					for (let item of res.data.oweList) {
 | 
	
		
			
				|  |  | -						this.owelist.push(item)
 | 
	
		
			
				|  |  | -					}
 | 
	
		
			
				|  |  | -					if(this.owelist.length<=0){this.listEmpty = true};
 | 
	
		
			
				|  |  | -				
 | 
	
		
			
				|  |  | -					console.log('entranceOutDetail',res)
 | 
	
		
			
				|  |  | -				}).catch(err=>{
 | 
	
		
			
				|  |  | -					uni.hideLoading();
 | 
	
		
			
				|  |  | -					this.$refs.uToast.show({
 | 
	
		
			
				|  |  | -						title: err.msg,
 | 
	
		
			
				|  |  | -						type: 'error',
 | 
	
		
			
				|  |  | -					});
 | 
	
		
			
				|  |  | -					console.log('entranceOutDetail ',err)
 | 
	
		
			
				|  |  | -				});
 | 
	
		
			
				|  |  | -				
 | 
	
		
			
				|  |  | -			},
 | 
	
		
			
				|  |  |  			downCallback(){
 | 
	
		
			
				|  |  |  				this.mescroll.resetUpScroll();
 | 
	
		
			
				|  |  |  			},
 | 
	
	
		
			
				|  | @@ -95,7 +69,7 @@
 | 
	
		
			
				|  |  |  				console.log('upCallback ',page);
 | 
	
		
			
				|  |  |  				let pageNum = page.num; // 页码, 默认从1开始
 | 
	
		
			
				|  |  |  				let pageSize = page.size; // 页长, 默认每页10条
 | 
	
		
			
				|  |  | -				this.$u.api.entranceOutDetail({spaceId:this.orderID})
 | 
	
		
			
				|  |  | +				this.$u.api.vehicleList({vehicleNo:this.vehicleNo,pageNum:pageNum,pageSize:pageSize})
 | 
	
		
			
				|  |  |  				.then(res=>{
 | 
	
		
			
				|  |  |  					// uni.hideLoading();
 | 
	
		
			
				|  |  |  					// this.$refs.uToast.show({
 | 
	
	
		
			
				|  | @@ -103,10 +77,10 @@
 | 
	
		
			
				|  |  |  					// 	type: 'success',
 | 
	
		
			
				|  |  |  					// });
 | 
	
		
			
				|  |  |  					//设置列表数据
 | 
	
		
			
				|  |  | -					let curPageData = res.data.oweList; 
 | 
	
		
			
				|  |  | +					let curPageData = res.data.rows; 
 | 
	
		
			
				|  |  |  					// 接口返回的当前页数据长度 (如列表有26个数据,当前页返回8个,则curPageLen=8)
 | 
	
		
			
				|  |  |  					let curPageLen = curPageData.length; 
 | 
	
		
			
				|  |  | -					let totalPage = res.data.totalPage; 
 | 
	
		
			
				|  |  | +					let totalPage = res.data.pages; 
 | 
	
		
			
				|  |  |  					
 | 
	
		
			
				|  |  |  					if(page.num == 1) this.owelist = []; //如果是第一页需手动置空列表
 | 
	
		
			
				|  |  |  					this.owelist = this.owelist.concat(curPageData); //追加新数据
 | 
	
	
		
			
				|  | @@ -116,19 +90,19 @@
 | 
	
		
			
				|  |  |  					this.mescroll.endByPage(curPageLen, totalPage);
 | 
	
		
			
				|  |  |  					
 | 
	
		
			
				|  |  |  					this.leaveDetail = res.data;
 | 
	
		
			
				|  |  | -					for (let item of res.data.oweList) {
 | 
	
		
			
				|  |  | +					for (let item of res.data.rows) {
 | 
	
		
			
				|  |  |  						this.owelist.push(item)
 | 
	
		
			
				|  |  |  					}
 | 
	
		
			
				|  |  |  					if(this.owelist.length<=0){this.listEmpty = true};
 | 
	
		
			
				|  |  |  				
 | 
	
		
			
				|  |  | -					console.log('entranceOutDetail',res)
 | 
	
		
			
				|  |  | +					console.log('vehicleList',res)
 | 
	
		
			
				|  |  |  				}).catch(err=>{
 | 
	
		
			
				|  |  |  					// uni.hideLoading();
 | 
	
		
			
				|  |  |  					this.$refs.uToast.show({
 | 
	
		
			
				|  |  |  						title: err.msg,
 | 
	
		
			
				|  |  |  						type: 'error',
 | 
	
		
			
				|  |  |  					});
 | 
	
		
			
				|  |  | -					console.log('entranceOutDetail ',err)
 | 
	
		
			
				|  |  | +					console.log('vehicleList ',err)
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  				
 | 
	
		
			
				|  |  |  			}
 |