aaa
This commit is contained in:
		
							parent
							
								
									63cf0b1e50
								
							
						
					
					
						commit
						ff2f195174
					
				| 
						 | 
					@ -21,7 +21,12 @@
 | 
				
			||||||
					<text class="shen">上报时间</text> <text class="qian">{{item.createTime}}</text>
 | 
										<text class="shen">上报时间</text> <text class="qian">{{item.createTime}}</text>
 | 
				
			||||||
				</view>
 | 
									</view>
 | 
				
			||||||
			</view>
 | 
								</view>
 | 
				
			||||||
			
 | 
								<view class="" style="width: 448rpx;height: 448rpx;margin: auto;margin-top: 100rpx;text-align: center;"
 | 
				
			||||||
 | 
									v-if="showflag">
 | 
				
			||||||
 | 
									<image style="width: 448rpx;height: 448rpx;"
 | 
				
			||||||
 | 
										src="https://api.ccttiot.com/smartmeter/img/static/uZFUpcz0YZZ4f4RjvGg2" mode=""></image>
 | 
				
			||||||
 | 
									<view class="" style="font-size: 30rpx;color: #ccc;margin-top: 30rpx;">暂无更多故障记录...</view>
 | 
				
			||||||
 | 
								</view>
 | 
				
			||||||
		</view>
 | 
							</view>
 | 
				
			||||||
	</view>
 | 
						</view>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
| 
						 | 
					@ -39,7 +44,8 @@
 | 
				
			||||||
				isLoading: false, // 是否正在加载数据  
 | 
									isLoading: false, // 是否正在加载数据  
 | 
				
			||||||
				noMoreData: false, // 是否没有更多数据  
 | 
									noMoreData: false, // 是否没有更多数据  
 | 
				
			||||||
				total: 0,
 | 
									total: 0,
 | 
				
			||||||
				keyword:''
 | 
									keyword:'',
 | 
				
			||||||
 | 
									showflag: false
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		onLoad() {
 | 
							onLoad() {
 | 
				
			||||||
| 
						 | 
					@ -59,6 +65,11 @@
 | 
				
			||||||
				this.$u.get('/app/abnormal/list?pageNum=' + this.pagenum + '&pageSize='+this.pagesize + '&keyword='+this.keyword).then((res) => {
 | 
									this.$u.get('/app/abnormal/list?pageNum=' + this.pagenum + '&pageSize='+this.pagesize + '&keyword='+this.keyword).then((res) => {
 | 
				
			||||||
					if (res.code == 200) {
 | 
										if (res.code == 200) {
 | 
				
			||||||
						this.total = res.total
 | 
											this.total = res.total
 | 
				
			||||||
 | 
											if (this.total > 0) {
 | 
				
			||||||
 | 
												this.showflag = false
 | 
				
			||||||
 | 
											} else {
 | 
				
			||||||
 | 
												this.showflag = true
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
						if (res.rows.length > 0) {
 | 
											if (res.rows.length > 0) {
 | 
				
			||||||
							// 有数据,追加到列表  
 | 
												// 有数据,追加到列表  
 | 
				
			||||||
							this.wateringList = this.wateringList.concat(res.rows)
 | 
												this.wateringList = this.wateringList.concat(res.rows)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,6 +36,14 @@
 | 
				
			||||||
					</view>
 | 
										</view>
 | 
				
			||||||
        		</view>
 | 
					        		</view>
 | 
				
			||||||
        	</view>
 | 
					        	</view>
 | 
				
			||||||
 | 
								
 | 
				
			||||||
 | 
								<view class="" style="width: 448rpx;height: 448rpx;margin: auto;margin-top: 100rpx;text-align: center;"
 | 
				
			||||||
 | 
									v-if="showflag">
 | 
				
			||||||
 | 
									<image style="width: 448rpx;height: 448rpx;"
 | 
				
			||||||
 | 
										src="https://api.ccttiot.com/smartmeter/img/static/uZFUpcz0YZZ4f4RjvGg2" mode=""></image>
 | 
				
			||||||
 | 
									<view class="" style="font-size: 30rpx;color: #ccc;margin-top: 30rpx;">暂无更多订单记录...</view>
 | 
				
			||||||
 | 
								</view>
 | 
				
			||||||
 | 
								
 | 
				
			||||||
        </view>
 | 
					        </view>
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -54,7 +62,8 @@
 | 
				
			||||||
                pagesize: 10, // 一页多少数据
 | 
					                pagesize: 10, // 一页多少数据
 | 
				
			||||||
                isLoading: false, // 是否正在加载数据  
 | 
					                isLoading: false, // 是否正在加载数据  
 | 
				
			||||||
                noMoreData: false, // 是否没有更多数据  
 | 
					                noMoreData: false, // 是否没有更多数据  
 | 
				
			||||||
                total: 0
 | 
					                total: 0,
 | 
				
			||||||
 | 
									showflag: false
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		onLoad() {
 | 
							onLoad() {
 | 
				
			||||||
| 
						 | 
					@ -65,6 +74,11 @@
 | 
				
			||||||
				this.$u.get('/app/bill/rechargeList?pageNum=' + this.pagenum + '&pageSize='+this.pagesize).then((res) => {
 | 
									this.$u.get('/app/bill/rechargeList?pageNum=' + this.pagenum + '&pageSize='+this.pagesize).then((res) => {
 | 
				
			||||||
					if (res.code == 200) {
 | 
										if (res.code == 200) {
 | 
				
			||||||
						this.total = res.total
 | 
											this.total = res.total
 | 
				
			||||||
 | 
											if (this.total > 0) {
 | 
				
			||||||
 | 
												this.showflag = false
 | 
				
			||||||
 | 
											} else {
 | 
				
			||||||
 | 
												this.showflag = true
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
						if (res.rows.length > 0) {
 | 
											if (res.rows.length > 0) {
 | 
				
			||||||
							// 有数据,追加到列表  
 | 
												// 有数据,追加到列表  
 | 
				
			||||||
							this.wateringList = this.wateringList.concat(res.rows)
 | 
												this.wateringList = this.wateringList.concat(res.rows)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -45,10 +45,13 @@
 | 
				
			||||||
					</view>
 | 
										</view>
 | 
				
			||||||
				</view>
 | 
									</view>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				<view v-if="wateringList.length == 0" class=""
 | 
									<view class="" style="width: 448rpx;height: 448rpx;margin: auto;margin-top: 100rpx;text-align: center;"
 | 
				
			||||||
					style="font-size: 32rpx;color: #ccc;width: 100%;text-align: center;margin-top: 50rpx;">
 | 
										v-if="showflag">
 | 
				
			||||||
					没有更多店铺了...
 | 
										<image style="width: 448rpx;height: 448rpx;"
 | 
				
			||||||
 | 
											src="https://api.ccttiot.com/smartmeter/img/static/uZFUpcz0YZZ4f4RjvGg2" mode=""></image>
 | 
				
			||||||
 | 
										<view class="" style="font-size: 30rpx;color: #ccc;margin-top: 30rpx;">暂无更多店铺...</view>
 | 
				
			||||||
				</view>
 | 
									</view>
 | 
				
			||||||
 | 
									
 | 
				
			||||||
			</view>
 | 
								</view>
 | 
				
			||||||
		</view>
 | 
							</view>
 | 
				
			||||||
	</view>
 | 
						</view>
 | 
				
			||||||
| 
						 | 
					@ -67,7 +70,8 @@
 | 
				
			||||||
				isLoading: false, // 是否正在加载数据  
 | 
									isLoading: false, // 是否正在加载数据  
 | 
				
			||||||
				noMoreData: false, // 是否没有更多数据  
 | 
									noMoreData: false, // 是否没有更多数据  
 | 
				
			||||||
				total: 0,
 | 
									total: 0,
 | 
				
			||||||
				keyword: ''
 | 
									keyword: '',
 | 
				
			||||||
 | 
									showflag: false
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		onLoad() {
 | 
							onLoad() {
 | 
				
			||||||
| 
						 | 
					@ -88,6 +92,11 @@
 | 
				
			||||||
					.keyword).then(res => {
 | 
										.keyword).then(res => {
 | 
				
			||||||
					if (res.code == 200) {
 | 
										if (res.code == 200) {
 | 
				
			||||||
						this.total = res.total
 | 
											this.total = res.total
 | 
				
			||||||
 | 
											if (this.total > 0) {
 | 
				
			||||||
 | 
												this.showflag = false
 | 
				
			||||||
 | 
											} else {
 | 
				
			||||||
 | 
												this.showflag = true
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
						if (res.rows.length > 0) {
 | 
											if (res.rows.length > 0) {
 | 
				
			||||||
							// 有数据,追加到列表  
 | 
												// 有数据,追加到列表  
 | 
				
			||||||
							this.wateringList = this.wateringList.concat(res.rows)
 | 
												this.wateringList = this.wateringList.concat(res.rows)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,6 +37,12 @@
 | 
				
			||||||
									</view>
 | 
														</view>
 | 
				
			||||||
								</view>
 | 
													</view>
 | 
				
			||||||
							</view>
 | 
												</view>
 | 
				
			||||||
 | 
												<view class="" style="width: 448rpx;height: 448rpx;margin: auto;margin-top: 100rpx;text-align: center;"
 | 
				
			||||||
 | 
													v-if="showflag">
 | 
				
			||||||
 | 
													<image style="width: 448rpx;height: 448rpx;"
 | 
				
			||||||
 | 
														src="https://api.ccttiot.com/smartmeter/img/static/uZFUpcz0YZZ4f4RjvGg2" mode=""></image>
 | 
				
			||||||
 | 
													<view class="" style="font-size: 30rpx;color: #ccc;margin-top: 30rpx;">该店铺暂无设备...</view>
 | 
				
			||||||
 | 
												</view>
 | 
				
			||||||
						</view>
 | 
											</view>
 | 
				
			||||||
					</view>
 | 
										</view>
 | 
				
			||||||
				</view>
 | 
									</view>
 | 
				
			||||||
| 
						 | 
					@ -59,7 +65,8 @@
 | 
				
			||||||
				pagesize: 10,
 | 
									pagesize: 10,
 | 
				
			||||||
				isLoading: false,
 | 
									isLoading: false,
 | 
				
			||||||
				noMoreData: false,
 | 
									noMoreData: false,
 | 
				
			||||||
				total: 0
 | 
									total: 0,
 | 
				
			||||||
 | 
									showflag: false
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		onLoad(option) {
 | 
							onLoad(option) {
 | 
				
			||||||
| 
						 | 
					@ -75,6 +82,11 @@
 | 
				
			||||||
					.then((res) => {
 | 
										.then((res) => {
 | 
				
			||||||
						if (res.code == 200) {
 | 
											if (res.code == 200) {
 | 
				
			||||||
							this.total = res.total
 | 
												this.total = res.total
 | 
				
			||||||
 | 
												if (this.total > 0) {
 | 
				
			||||||
 | 
													this.showflag = false
 | 
				
			||||||
 | 
												} else {
 | 
				
			||||||
 | 
													this.showflag = true
 | 
				
			||||||
 | 
												}
 | 
				
			||||||
							if (res.rows.length > 0) {
 | 
												if (res.rows.length > 0) {
 | 
				
			||||||
								// 有数据,追加到列表  
 | 
													// 有数据,追加到列表  
 | 
				
			||||||
								this.wateringList = this.wateringList.concat(res.rows)
 | 
													this.wateringList = this.wateringList.concat(res.rows)
 | 
				
			||||||
| 
						 | 
					@ -116,11 +128,13 @@
 | 
				
			||||||
	/deep/ .u-icon__icon {
 | 
						/deep/ .u-icon__icon {
 | 
				
			||||||
		padding-bottom: 41rpx;
 | 
							padding-bottom: 41rpx;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						page{
 | 
				
			||||||
 | 
							background: #F4F5F7;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.page {
 | 
						.page {
 | 
				
			||||||
		width: 750rpx;
 | 
							width: 750rpx;
 | 
				
			||||||
		padding-bottom: 200rpx;
 | 
							padding-bottom: 200rpx;
 | 
				
			||||||
 | 
					 | 
				
			||||||
		.box {
 | 
							.box {
 | 
				
			||||||
			width: 750rpx;
 | 
								width: 750rpx;
 | 
				
			||||||
			background: #F4F5F7;
 | 
								background: #F4F5F7;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,6 +20,13 @@
 | 
				
			||||||
			</view>
 | 
								</view>
 | 
				
			||||||
		</view>
 | 
							</view>
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							<view class="" style="width: 448rpx;height: 448rpx;margin: auto;margin-top: 100rpx;text-align: center;"
 | 
				
			||||||
 | 
								v-if="showflag">
 | 
				
			||||||
 | 
								<image style="width: 448rpx;height: 448rpx;"
 | 
				
			||||||
 | 
									src="https://api.ccttiot.com/smartmeter/img/static/uZFUpcz0YZZ4f4RjvGg2" mode=""></image>
 | 
				
			||||||
 | 
								<view class="" style="font-size: 30rpx;color: #ccc;margin-top: 30rpx;">暂无更多收支记录...</view>
 | 
				
			||||||
 | 
							</view>
 | 
				
			||||||
 | 
							
 | 
				
			||||||
	</view>
 | 
						</view>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,7 +47,8 @@
 | 
				
			||||||
				pagesize: 10, // 一页多少数据
 | 
									pagesize: 10, // 一页多少数据
 | 
				
			||||||
				isLoading: false, // 是否正在加载数据  
 | 
									isLoading: false, // 是否正在加载数据  
 | 
				
			||||||
				noMoreData: false, // 是否没有更多数据  
 | 
									noMoreData: false, // 是否没有更多数据  
 | 
				
			||||||
				total: 0
 | 
									total: 0,
 | 
				
			||||||
 | 
									showflag: false
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		onLoad() {
 | 
							onLoad() {
 | 
				
			||||||
| 
						 | 
					@ -52,6 +60,11 @@
 | 
				
			||||||
				this.$u.get("/app/bill/list").then((res) => {
 | 
									this.$u.get("/app/bill/list").then((res) => {
 | 
				
			||||||
					if (res.code == 200) {
 | 
										if (res.code == 200) {
 | 
				
			||||||
					   this.total = res.total
 | 
										   this.total = res.total
 | 
				
			||||||
 | 
										   if (this.total > 0) {
 | 
				
			||||||
 | 
										   	this.showflag = false
 | 
				
			||||||
 | 
										   } else {
 | 
				
			||||||
 | 
										   	this.showflag = true
 | 
				
			||||||
 | 
										   }
 | 
				
			||||||
					   if (res.rows.length > 0) {
 | 
										   if (res.rows.length > 0) {
 | 
				
			||||||
					   	// 有数据,追加到列表  
 | 
										   	// 有数据,追加到列表  
 | 
				
			||||||
					   	 this.wateringList =  this.wateringList.concat(res.rows)
 | 
										   	 this.wateringList =  this.wateringList.concat(res.rows)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -717,15 +717,12 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			swiperchange(e) {
 | 
								swiperchange(e) {
 | 
				
			||||||
				// console.log(e);
 | 
					 | 
				
			||||||
				
 | 
					 | 
				
			||||||
				uni.showLoading({  
 | 
									uni.showLoading({  
 | 
				
			||||||
				    title: '加载中...'
 | 
									    title: '加载中...'
 | 
				
			||||||
				});
 | 
									});
 | 
				
			||||||
				this.wateringList = []
 | 
									this.wateringList = []
 | 
				
			||||||
				this.pagenum = 1
 | 
									this.pagenum = 1
 | 
				
			||||||
				this.curtitidx = e.detail.current
 | 
									this.curtitidx = e.detail.current
 | 
				
			||||||
				// console.log(this.groupLists[this.curtitidx].storeId)
 | 
					 | 
				
			||||||
				this.storeId = this.groupLists[this.curtitidx].storeId
 | 
									this.storeId = this.groupLists[this.curtitidx].storeId
 | 
				
			||||||
				this.getlist()
 | 
									this.getlist()
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user