|  | @@ -26,7 +26,7 @@
 | 
	
		
			
				|  |  |  			</view>
 | 
	
		
			
				|  |  |  		</view>
 | 
	
		
			
				|  |  |  		<!-- 列表 -->
 | 
	
		
			
				|  |  | -		<t-table>
 | 
	
		
			
				|  |  | +		<!-- <t-table>
 | 
	
		
			
				|  |  |  			<t-tr>
 | 
	
		
			
				|  |  |  				<t-th>序号</t-th>
 | 
	
		
			
				|  |  |  				<t-th>姓名</t-th>
 | 
	
	
		
			
				|  | @@ -42,17 +42,52 @@
 | 
	
		
			
				|  |  |  				  <t-td align="left"> <u-button @click="edit(item)"  size="small" type="primary" :plain="true" text="编辑"></u-button></t-td>
 | 
	
		
			
				|  |  |  				
 | 
	
		
			
				|  |  |  			</t-tr>
 | 
	
		
			
				|  |  | -		</t-table>
 | 
	
		
			
				|  |  | +		</t-table> -->
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +<view class="u-listdata">
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +	<u-list  @scrolltolower="scrolltolower" :pagingEnabled='true'>
 | 
	
		
			
				|  |  | +		<u-list-item v-for="(item, index) in indexList" :key="index">
 | 
	
		
			
				|  |  | +			<!-- <u-cell :title="`列表长度-${index + 1}`">
 | 
	
		
			
				|  |  | +				<u-avatar slot="icon" shape="square" size="35" :src="item.url"
 | 
	
		
			
				|  |  | +					customStyle="margin: -3px 5px -3px 0"></u-avatar>
 | 
	
		
			
				|  |  | +			</u-cell> -->
 | 
	
		
			
				|  |  | +			<view class="companylist" @click="seedetail(item)">
 | 
	
		
			
				|  |  | +				<view class="settled" v-if="item.status==1">
 | 
	
		
			
				|  |  | +					已结清
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +				<view class="outstanding" v-if="item.status==0">
 | 
	
		
			
				|  |  | +					未结清
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +				<h3>{{item.name}}</h3>
 | 
	
		
			
				|  |  | +				<view class="Currentamount">
 | 
	
		
			
				|  |  | +					本期金额: <span>¥{{item.feeTotal}}</span>
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +				<view class="Currentamount">
 | 
	
		
			
				|  |  | +					欠费天数: {{item.elecAmount}}
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +				<view class="Currentamount">
 | 
	
		
			
				|  |  | +					账户余额:¥{{item.balance}}
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +				<view class="Currentamount">
 | 
	
		
			
				|  |  | +					联系电话: {{item.tel}}
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +				<view class="Callfee"  v-if="item.status==0"   @click.stop="handleClick(item.id)">
 | 
	
		
			
				|  |  | +					催费
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +			</view>
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +		</u-list-item>
 | 
	
		
			
				|  |  | +	</u-list>
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +</view>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		<u-picker :show="showtype" :columns="columnstype" keyName="label" @confirm="confirmtype" @cancel='canceltype'>
 | 
	
		
			
				|  |  |  		</u-picker>
 | 
	
		
			
				|  |  | -		<!-- 
 | 
	
		
			
				|  |  | -         <mx-date-picker :show="showPicker" type="range" :value="dayrange" :show-tips="true" :begin-text="'开始日期'" :end-text="'结束日期'" :show-seconds="true" @confirm="ed" @cancel="ec" /> -->
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  		<u-picker :show="showfloor" ref="uPicker" :loading="loading" @confirm="confirmfloor" @cancel='cancelfloor'
 | 
	
		
			
				|  |  |  			:columns="columns" keyName="orgName" @change="changeHandler"></u-picker>
 | 
	
		
			
				|  |  |  		<u-notify ref="uNotify" :show="showdct" message="服务器请求失败"></u-notify>
 | 
	
	
		
			
				|  | @@ -60,49 +95,49 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -	// import MxDatePicker from "@/components/mx-datepicker/mx-datepicker.vue";
 | 
	
		
			
				|  |  | -	import tTable from '@/components/t-table/t-table.vue';
 | 
	
		
			
				|  |  | -	import tTh from '@/components/t-table/t-th.vue';
 | 
	
		
			
				|  |  | -	import tTr from '@/components/t-table/t-tr.vue';
 | 
	
		
			
				|  |  | -	import tTd from '@/components/t-table/t-td.vue';
 | 
	
		
			
				|  |  | +	// import tTable from '@/components/t-table/t-table.vue';
 | 
	
		
			
				|  |  | +	// import tTh from '@/components/t-table/t-th.vue';
 | 
	
		
			
				|  |  | +	// import tTr from '@/components/t-table/t-tr.vue';
 | 
	
		
			
				|  |  | +	// import tTd from '@/components/t-table/t-td.vue';
 | 
	
		
			
				|  |  |  	export default {
 | 
	
		
			
				|  |  |  		components: {
 | 
	
		
			
				|  |  | -			//    MxDatePicker
 | 
	
		
			
				|  |  | -			tTable,
 | 
	
		
			
				|  |  | -			tTh,
 | 
	
		
			
				|  |  | -			tTr,
 | 
	
		
			
				|  |  | -			tTd
 | 
	
		
			
				|  |  | +			// tTable,
 | 
	
		
			
				|  |  | +			// tTh,
 | 
	
		
			
				|  |  | +			// tTr,
 | 
	
		
			
				|  |  | +			// tTd
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		data() {
 | 
	
		
			
				|  |  |  			const currentDate = this.getDate({
 | 
	
		
			
				|  |  |  				format: 'yyyy-mm'
 | 
	
		
			
				|  |  |  			})
 | 
	
		
			
				|  |  |  			return {
 | 
	
		
			
				|  |  | -				tableList: [{
 | 
	
		
			
				|  |  | -						id: 0,
 | 
	
		
			
				|  |  | -						name: '张三',
 | 
	
		
			
				|  |  | -						age: '19',
 | 
	
		
			
				|  |  | -						hobby: '游泳'
 | 
	
		
			
				|  |  | -					},
 | 
	
		
			
				|  |  | -					{
 | 
	
		
			
				|  |  | -						id: 1,
 | 
	
		
			
				|  |  | -						name: '李四',
 | 
	
		
			
				|  |  | -						age: '21',
 | 
	
		
			
				|  |  | -						hobby: '绘画'
 | 
	
		
			
				|  |  | -					},
 | 
	
		
			
				|  |  | -					{
 | 
	
		
			
				|  |  | -						id: 2,
 | 
	
		
			
				|  |  | -						name: '王二',
 | 
	
		
			
				|  |  | -						age: '29',
 | 
	
		
			
				|  |  | -						hobby: '滑板'
 | 
	
		
			
				|  |  | -					},
 | 
	
		
			
				|  |  | -					{
 | 
	
		
			
				|  |  | -						id: 3,
 | 
	
		
			
				|  |  | -						name: '码字',
 | 
	
		
			
				|  |  | -						age: '20',
 | 
	
		
			
				|  |  | -						hobby: '蹦极'
 | 
	
		
			
				|  |  | -					}
 | 
	
		
			
				|  |  | -				],
 | 
	
		
			
				|  |  | +				setyesno: true,
 | 
	
		
			
				|  |  | +				// tableList: [{
 | 
	
		
			
				|  |  | +				// 		id: 0,
 | 
	
		
			
				|  |  | +				// 		name: '张三',
 | 
	
		
			
				|  |  | +				// 		age: '19',
 | 
	
		
			
				|  |  | +				// 		hobby: '游泳'
 | 
	
		
			
				|  |  | +				// 	},
 | 
	
		
			
				|  |  | +				// 	{
 | 
	
		
			
				|  |  | +				// 		id: 1,
 | 
	
		
			
				|  |  | +				// 		name: '李四',
 | 
	
		
			
				|  |  | +				// 		age: '21',
 | 
	
		
			
				|  |  | +				// 		hobby: '绘画'
 | 
	
		
			
				|  |  | +				// 	},				
 | 
	
		
			
				|  |  | +				// ],
 | 
	
		
			
				|  |  | +				indexList: [],
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				dataList: [],
 | 
	
		
			
				|  |  | +				dataForm: {
 | 
	
		
			
				|  |  | +					projectId: "",
 | 
	
		
			
				|  |  | +					buildingId: "",
 | 
	
		
			
				|  |  | +					storeyId: "",
 | 
	
		
			
				|  |  | +					cycle: "",
 | 
	
		
			
				|  |  | +					status: "",
 | 
	
		
			
				|  |  | +					page: 1,
 | 
	
		
			
				|  |  | +					limit: 10,
 | 
	
		
			
				|  |  | +				},
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  				showtype: false,
 | 
	
		
			
				|  |  |  				showdct: false,
 | 
	
	
		
			
				|  | @@ -138,7 +173,7 @@
 | 
	
		
			
				|  |  |  		//监听页面加载,其参数为上个页面传递的数据,参数类型为 Object(用于页面传参
 | 
	
		
			
				|  |  |  		onLoad() {
 | 
	
		
			
				|  |  |  			this.getfloor();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +			//	this.loadmore();
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		//监听页面初次渲染完成。注意如果渲染速度快,会在页面进入动画完成前触发
 | 
	
		
			
				|  |  |  		onReady() {
 | 
	
	
		
			
				|  | @@ -157,23 +192,71 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		methods: {
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  | -			edit(item) {
 | 
	
		
			
				|  |  | -				console.log('111111111111111111', item)
 | 
	
		
			
				|  |  | +			seedetail(e){
 | 
	
		
			
				|  |  | +				  console.log('222',e)
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			handleClick(e){
 | 
	
		
			
				|  |  | +				  console.log('111111111111111111',e)
 | 
	
		
			
				|  |  | +				  
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  | +			scrolltolower() {
 | 
	
		
			
				|  |  | +				// this.loadmore()				 
 | 
	
		
			
				|  |  | +				this.dataForm.page = this.dataForm.page + 1;
 | 
	
		
			
				|  |  | +				console.log('111111111111111111', this.dataForm.page)
 | 
	
		
			
				|  |  | +				this.$api.get('/billinfo/paypage', this.dataForm)
 | 
	
		
			
				|  |  | +					.then(res => {
 | 
	
		
			
				|  |  | +						if (res.data.data.list.length != 0) {
 | 
	
		
			
				|  |  | +							this.indexList.push(...res.data.data.list);
 | 
	
		
			
				|  |  | +						} else {
 | 
	
		
			
				|  |  | +							uni.showToast({
 | 
	
		
			
				|  |  | +								title:'暂无更多数据了',
 | 
	
		
			
				|  |  | +								icon: 'none',
 | 
	
		
			
				|  |  | +								duration: 1500
 | 
	
		
			
				|  |  | +							})
 | 
	
		
			
				|  |  | +						}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +						console.log('111111111111111111', this.indexList)
 | 
	
		
			
				|  |  | +					})
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			loadmore() {
 | 
	
		
			
				|  |  | +				// for (let i = 0; i < 30; i++) {
 | 
	
		
			
				|  |  | +				// 	this.indexList.push({
 | 
	
		
			
				|  |  | +				// 		url: this.urls[uni.$u.random(0, this.urls.length - 1)]
 | 
	
		
			
				|  |  | +				// 	})
 | 
	
		
			
				|  |  | +				// }
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +			getalldata() {
 | 
	
		
			
				|  |  | +				this.$api.get('/billinfo/paypage', this.dataForm)
 | 
	
		
			
				|  |  | +					.then(res => {
 | 
	
		
			
				|  |  | +						this.indexList = [];
 | 
	
		
			
				|  |  | +						this.indexList = res.data.data.list;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +					})
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			// edit(item) {
 | 
	
		
			
				|  |  | +			// 	console.log('111111111111111111', item)
 | 
	
		
			
				|  |  | +			// },
 | 
	
		
			
				|  |  |  			canceltype() {
 | 
	
		
			
				|  |  |  				this.showtype = false;
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			confirmtype(e) {
 | 
	
		
			
				|  |  | -				// console.log('111111111111111111',e.value[0])
 | 
	
		
			
				|  |  | +			//	console.log('111111111111111111', e.value[0])
 | 
	
		
			
				|  |  |  				this.showtype = false;
 | 
	
		
			
				|  |  | -				this.mytype = e.value[0].label
 | 
	
		
			
				|  |  | +				this.mytype = e.value[0].label;
 | 
	
		
			
				|  |  | +				this.dataForm.cycle = e.value[0].id;
 | 
	
		
			
				|  |  | +				this.dataForm.page=1;
 | 
	
		
			
				|  |  | +				this.getalldata();
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			typechange() {
 | 
	
		
			
				|  |  |  				this.showtype = true;
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			dateChange(e) {
 | 
	
		
			
				|  |  |  				this.myday = e.target.value;
 | 
	
		
			
				|  |  | +				this.dataForm.cycle = e.target.value;
 | 
	
		
			
				|  |  | +				this.dataForm.page=1;
 | 
	
		
			
				|  |  | +				this.getalldata();
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			getDate(type) {
 | 
	
		
			
				|  |  |  				const date = new Date();
 | 
	
	
		
			
				|  | @@ -193,6 +276,8 @@
 | 
	
		
			
				|  |  |  					.then(res => {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  						if (res.data.code == 0) {
 | 
	
		
			
				|  |  | +							this.dataForm.projectId = res.data.data[0].orgId;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  							this.mytitle = res.data.data[0].orgName;
 | 
	
		
			
				|  |  |  							this.alldata = res.data.data[0].childrenList;
 | 
	
		
			
				|  |  |  							//console.log('111111111111111111',  res.data.data[0].childrenList)			
 | 
	
	
		
			
				|  | @@ -205,7 +290,9 @@
 | 
	
		
			
				|  |  |  								allfloor.push(res.data.data[0].childrenList[i].childrenList)
 | 
	
		
			
				|  |  |  							}
 | 
	
		
			
				|  |  |  							//  console.log('111111111111111111',allfloor)
 | 
	
		
			
				|  |  | -							this.columnData = allfloor
 | 
	
		
			
				|  |  | +							this.columnData = allfloor;
 | 
	
		
			
				|  |  | +							this.dataForm.page=1;
 | 
	
		
			
				|  |  | +							this.getalldata();
 | 
	
		
			
				|  |  |  						} else {
 | 
	
		
			
				|  |  |  							this.showdct = true
 | 
	
		
			
				|  |  |  						}
 | 
	
	
		
			
				|  | @@ -227,13 +314,15 @@
 | 
	
		
			
				|  |  |  					picker.setColumnValues(1, this.columnData[index])
 | 
	
		
			
				|  |  |  					this.loading = false
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  | +				this.getalldata();
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			confirmfloor(e) {
 | 
	
		
			
				|  |  |  				console.log('222222', e.value)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  				this.mytitle = e.value[0].orgName + e.value[1].orgName;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +				this.dataForm.buildingId = e.value[0].orgId;
 | 
	
		
			
				|  |  | +				this.dataForm.storeyId = e.value[1].orgId;
 | 
	
		
			
				|  |  |  				this.showfloor = false;
 | 
	
		
			
				|  |  | +				this.getalldata();
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			cancelfloor() {
 | 
	
		
			
				|  |  |  				this.showfloor = false;
 | 
	
	
		
			
				|  | @@ -244,7 +333,77 @@
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -<style>
 | 
	
		
			
				|  |  | +<style lang="scss">
 | 
	
		
			
				|  |  | +	.Currentamount {
 | 
	
		
			
				|  |  | +		padding-left: 30rpx;
 | 
	
		
			
				|  |  | +		height: 50rpx;
 | 
	
		
			
				|  |  | +		line-height: 50rpx;
 | 
	
		
			
				|  |  | +		color: #BCB3A7;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		span {
 | 
	
		
			
				|  |  | +			color: #FA5555;
 | 
	
		
			
				|  |  | +			padding-left: 9rpx;
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +.Callfee{
 | 
	
		
			
				|  |  | +	width: 100rpx;
 | 
	
		
			
				|  |  | +	height: 45rpx;
 | 
	
		
			
				|  |  | +	text-align: center;
 | 
	
		
			
				|  |  | +	line-height:45rpx;
 | 
	
		
			
				|  |  | +	color: #5C8FFF;
 | 
	
		
			
				|  |  | +	border: 1px solid #5C8FFF;
 | 
	
		
			
				|  |  | +	font-size: 22rpx;
 | 
	
		
			
				|  |  | +	position: absolute;
 | 
	
		
			
				|  |  | +	bottom: 10rpx;
 | 
	
		
			
				|  |  | +	right: 10px;
 | 
	
		
			
				|  |  | +	font-weight: bold;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +	.companylist {
 | 
	
		
			
				|  |  | +		margin: 20rpx 30rpx;
 | 
	
		
			
				|  |  | +		background: #fff;
 | 
	
		
			
				|  |  | +		height: 280rpx;
 | 
	
		
			
				|  |  | +		border-radius: 10px;
 | 
	
		
			
				|  |  | +		position: relative;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		h3 {
 | 
	
		
			
				|  |  | +			height: 70rpx;
 | 
	
		
			
				|  |  | +			line-height: 70rpx;
 | 
	
		
			
				|  |  | +			padding-left: 30rpx;
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	.settled {
 | 
	
		
			
				|  |  | +		background-color: #09C700;
 | 
	
		
			
				|  |  | +		width: 100rpx;
 | 
	
		
			
				|  |  | +		height: 40rpx;
 | 
	
		
			
				|  |  | +		text-align: center;
 | 
	
		
			
				|  |  | +		line-height: 40rpx;
 | 
	
		
			
				|  |  | +		color: #fff;
 | 
	
		
			
				|  |  | +		font-size: 14rpx;
 | 
	
		
			
				|  |  | +		position: absolute;
 | 
	
		
			
				|  |  | +		top: 0px;
 | 
	
		
			
				|  |  | +		right: 0px;
 | 
	
		
			
				|  |  | +		border-top-right-radius: 10rpx;
 | 
	
		
			
				|  |  | +		border-bottom-left-radius: 10rpx;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	.outstanding {
 | 
	
		
			
				|  |  | +		background-color: #FA5555;
 | 
	
		
			
				|  |  | +		width: 100rpx;
 | 
	
		
			
				|  |  | +		height: 40rpx;
 | 
	
		
			
				|  |  | +		text-align: center;
 | 
	
		
			
				|  |  | +		line-height: 40rpx;
 | 
	
		
			
				|  |  | +		color: #fff;
 | 
	
		
			
				|  |  | +		font-size: 14rpx;
 | 
	
		
			
				|  |  | +		position: absolute;
 | 
	
		
			
				|  |  | +		top: 0px;
 | 
	
		
			
				|  |  | +		right: 0px;
 | 
	
		
			
				|  |  | +		border-top-right-radius: 10rpx;
 | 
	
		
			
				|  |  | +		border-bottom-left-radius: 10rpx;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	.billall {}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	.topbill {
 |