From 2312e57e82920e30b6729ddfb5a6d1cfcb29d7c0 Mon Sep 17 00:00:00 2001
From: "3321822538@qq.com" <3321822538@qq.com>
Date: Sun, 28 Jul 2024 18:03:00 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=BD=AE=E6=92=AD=E5=9B=BE?=
 =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86=20?=
 =?UTF-8?q?=E6=90=9C=E7=B4=A2=20=E9=80=89=E6=8B=A9=E6=97=A5=E6=9C=9F=20?=
 =?UTF-8?q?=E5=88=86=E7=B1=BB=20=E6=94=B6=E6=94=AF=E6=98=8E=E7=BB=86?=
 =?UTF-8?q?=E5=BE=85=E5=AE=9A=20=E6=8F=90=E7=8E=B0=E5=BE=85=E5=AE=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 page_fenbao/statulist/myshop/index.vue |   1 +
 page_user/order_detail.vue             |   5 +-
 page_user/shouzhi.vue                  |   3 +-
 page_user/switchs.vue                  | 270 +++++++++++++++++++++++--
 page_user/yetx.vue                     |  18 +-
 pages.json                             |  37 ++++
 pages/index/index.vue                  | 229 ++++++++++++++-------
 pages/my.vue                           |  17 +-
 8 files changed, 472 insertions(+), 108 deletions(-)

diff --git a/page_fenbao/statulist/myshop/index.vue b/page_fenbao/statulist/myshop/index.vue
index 1f890d9..f08df22 100644
--- a/page_fenbao/statulist/myshop/index.vue
+++ b/page_fenbao/statulist/myshop/index.vue
@@ -93,6 +93,7 @@
 		    }  
 		  },
 		onShow() {
+			this.pagenum = 1
 			this.wateringList = []
 			this.getlist()
 		},
diff --git a/page_user/order_detail.vue b/page_user/order_detail.vue
index 487d840..6284bec 100644
--- a/page_user/order_detail.vue
+++ b/page_user/order_detail.vue
@@ -24,10 +24,11 @@
 						支付中 
 					</view>
 					<view class="num" v-if="list.type == 1">
-						{{list.suitTime}} 分钟
+						<!-- {{list.suitTime}} 分钟 -->
+						{{list.money}}
 					</view>
 					<view class="text" v-if="list.type == 1">
-						充值金额{{list.money}}
+						充值金额
 					</view>
 					<view class="nums" v-if="list.type == 2">
 						提现金额{{list.money}}
diff --git a/page_user/shouzhi.vue b/page_user/shouzhi.vue
index 42d5d5e..7c22bfc 100644
--- a/page_user/shouzhi.vue
+++ b/page_user/shouzhi.vue
@@ -13,7 +13,8 @@
 				</view>
 			</view>
 			<view class="card_right">
-				<view class="top" v-if="item.type == 1">{{item.suitTime}}<text v-if="item.timeUnit == 1">日</text>  <text v-if="item.timeUnit == 2">时</text> <text v-if="item.timeUnit == 3">分钟</text> <text v-if="item.timeUnit == 4">秒</text></view>
+				<!-- <view class="top" v-if="item.type == 1">{{item.suitTime}}
+				<text v-if="item.timeUnit == 1">日</text>  <text v-if="item.timeUnit == 2">时</text> <text v-if="item.timeUnit == 3">分钟</text> <text v-if="item.timeUnit == 4">秒</text></view> -->
 				<view class="bot">
 					¥{{item.money}}
 				</view>
diff --git a/page_user/switchs.vue b/page_user/switchs.vue
index 9747b13..6237b01 100644
--- a/page_user/switchs.vue
+++ b/page_user/switchs.vue
@@ -7,19 +7,64 @@
 				时间范围
 			</view>
 			<view class="timert">
-				<view class="xztime"></view> - <view class="xztime"></view>
-				<view class="qinc">×</view>
+				<view class="xztime" @click="btnks(1)">{{endtime}}</view> - <view class="xztime" @click="btnks(2)">{{lasttime}}</view>
+				<view class="qinc" @click="btnqc">×</view>
 			</view>
 		</view>
 
 		<view class="serch">
-			<input type="text" placeholder="请输入SN码或手机号" />
-			<view class="">搜索</view>
+			<input type="text" v-model="type" placeholder="请输入SN码或手机号" />
+			<view class="" @click="btnsear">搜索</view>
 		</view>
 
-		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
-
-
+		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" active-color="#8883F0"></u-tabs>
+         <view class="orderlist" @scrolltolower="onReachBottom">
+         	<view class="otderlist_item" v-for="(item,index) in wateringList" :key="index" @click="btnxq(item.billId)">
+         		<view class="order_top">
+         			<view class="">
+         				订单编号:{{item.billNo == null ? '--' : item.billNo}}
+         			</view>
+					<view class="">
+						<text style="color: #ccc;" v-if="item.status == 1"><text style="width: 10rpx;height: 10rpx;background-color: #ccc;border-radius: 50%;display: inline-block;vertical-align: middle;margin-right: 5rpx;"></text> 未支付</text>
+						<text style="color: #00FF00;" v-if="item.status == 2"><text style="width: 10rpx;height: 10rpx;background-color: #00FF00;border-radius: 50%;display: inline-block;vertical-align: middle;margin-right: 5rpx;"></text> 支付成功</text>
+						<text style="color: #ccc;" v-if="item.status == 3"><text style="width: 10rpx;height: 10rpx;background-color: #ccc;border-radius: 50%;display: inline-block;vertical-align: middle;margin-right: 5rpx;"></text> 已退款</text>
+						<text style="color: red;" v-if="item.status == 4"><text style="width: 10rpx;height: 10rpx;background-color: red;border-radius: 50%;display: inline-block;vertical-align: middle;margin-right: 5rpx;"></text> 用户取消</text>
+						<text style="color: red;" v-if="item.status == 5"><text style="width: 10rpx;height: 10rpx;background-color: red;border-radius: 50%;display: inline-block;vertical-align: middle;margin-right: 5rpx;"></text> 系统超时取消</text>
+						<text style="color: #8892F1;" v-if="item.status == 6"><text style="width: 10rpx;height: 10rpx;background-color: #8892F1;border-radius: 50%;display: inline-block;vertical-align: middle;margin-right: 5rpx;"></text> 未支付</text>
+						<text style="color: #ccc;" v-if="item.status == 7"><text style="width: 10rpx;height: 10rpx;background-color: #000;border-radius: 50%;display: inline-block;vertical-align: middle;margin-right: 5rpx;"></text> 退款中</text>
+					</view>
+         		</view>
+				<view class="order_bd">
+					<view class="order_fu">
+						<view class="name">
+							用户手机:{{item.userName == null ? '--' : item.userName}}
+						</view>
+						<view class="">
+							订单费用:{{item.money == null ? '--' : item.money}}元
+						</view>
+					</view>
+					<view class="order_fu">
+						<view class="name">
+							设备编码:{{item.deviceNo == null ? '--' : item.deviceNo}}
+						</view>
+						<view class="">
+							设备名称:{{item.deviceName == null ? '--' : item.deviceName}}
+						</view>
+					</view>
+					<view class="order_fu">
+						<view class="name">
+							开始时间:{{item.suitStartTime == null ? '--' : item.suitStartTime}}
+						</view>
+						<view class="">
+							有无售后	:{{item.status == 3 || item.status == 7 ? '有' : '无'}}
+						</view>
+					</view>
+				</view>
+         	</view>
+			<view v-if="jlflag" class="" style="font-size: 28rpx;color: red;margin-top: 30rpx;width: 100%;text-align: center;">-没有更多订单记录-</view>
+         </view>
+          
+		  <u-picker mode="time" v-model="show" :params="params" @confirm="confirm"></u-picker>
 
 	</view>
 </template>
@@ -32,17 +77,46 @@
 					backgroundColor: "#8883F0",
 				},
 				list: [{
-					name: '待收货'
+					name: '全部'
 				}, {
-					name: '待付款'
+					name: '未支付'
 				}, {
-					name: '待评价',
+					name: '已支付',
+				}, {
+					name: '已完成',
+				}, {
+					name: '已售后',
 				}],
-				current: 0
+				current: 0,
+				pagenum: 1,
+				wateringList: [],
+				pagesize: 10, // 一页多少数据
+				isLoading: false, // 是否正在加载数据  
+				noMoreData: false, // 是否没有更多数据  
+				total: 0,
+				showflag: false,
+				jlflag:false,
+				statusList:'',
+				type:'',
+				endtime:'',
+				lasttime:'',
+				params: {
+					year: true,
+					month: true,
+					day: true,
+					hour: false,
+					minute: false,
+					second: false
+				},
+				show: false,
+				num:''
 			}
 		},
 		onLoad() {
-
+            
+		},
+		onShow() {
+			this.getList()
 		},
 		// 分享到好友(会话)
 		onShareAppMessage: function() {
@@ -61,10 +135,141 @@
 			}
 		},
 		methods: {
+			btnks(num) {
+				this.show = true
+				if (num == 1) {
+					this.num = 1
+				} else {
+					this.num = 2
+				}
+			},
+			btnqc(){
+				this.endtime = ''
+				this.lasttime = ''
+				this.wateringList = []
+				this.pagenum = 1
+				this.statusList = ''
+				this.getList()
+			},
+			confirm(e) {
+				if (this.num == 1) {
+					this.endtime = e.year + '-' + e.month + '-' + e.day
+					if(this.lasttime != ''){
+						this.wateringList = []
+						this.pagenum = 1
+						this.statusList = ''
+						this.getList()
+					}
+				} else {
+					this.lasttime = e.year + '-' + e.month + '-' + e.day
+					if(this.endtime != ''){
+						this.wateringList = []
+						this.pagenum = 1
+						this.statusList = ''
+						this.getList()
+					}
+				}
+			},
+			btnxq(billId){
+				uni.navigateTo({
+					url:'/page_user/mapditu/orderxq?billId=' + billId
+				})
+			},
+			
 			change(index) {
+				 this.jlflag = false
 				this.current = index;
+				if(index == 0){
+					this.wateringList = []
+					this.pagenum = 1
+					this.statusList = ''
+					this.getList()
+				}else if(index == 1){
+					this.wateringList = []
+					this.pagenum = 1
+					this.statusList = 1
+					this.getList()
+				}else if(index == 2){
+					this.wateringList = []
+					this.pagenum = 1
+					this.statusList = 2
+					this.getList()
+				}else if(index == 3){
+					this.wateringList = []
+					this.pagenum = 1
+					this.statusList = '2,3,7'
+					this.getList()
+				}else if(index == 4){
+					this.wateringList = []
+					this.pagenum = 1
+					this.statusList = '3,7'
+					this.getList()
+				}
+			},
+			btnsear(){
+				this.wateringList = []
+				this.pagenum = 1
+				this.statusList = ''
+				this.getList()
+			},
+			
+			getList(){
+				this.$u.get(`/app/bill/incomeList?pageNum=${this.pagenum}&pageSize=${this.pagesize}&statusList=${this.statusList}&keyword=${this.type}&startDate=${this.endtime}&endDate=${this.lasttime}`).then((res) => {
+					if (res.code == 200) {
+					   this.total = res.total
+					   if (res.rows.length > 0) {
+					   	// 有数据,追加到列表  
+					   	 this.wateringList =  this.wateringList.concat(res.rows)
+					   	 this.pagenum++
+					   } else {
+					   	// 没有更多数据  
+					   	this.noMoreData = true;
+                         setTimeout(()=>{
+							 this.jlflag = true
+						 })
+						}
+					   this.isLoading = false;
+					}
+				});
+			},
+			
+			onReachBottom() {
+				let sum = this.total / this.pagesize
+				if (this.pagenum-1 < sum) {
+					this.getList(); // 上拉加载更多  
+				} else {
+					this.jlflag = true
+					// uni.showToast({
+					// 	title: '没有更多记录了',
+					// 	icon: 'none',
+					// 	duration: 1000
+					// })
+				}
+			},
+			// 点击查询详情
+			btndetail(id){
+				uni.navigateTo({
+					url:'/page_user/order_detail?id=' + id
+				})
 			}
-		}
+			
+		},
+		// 分享到好友(会话)
+		  onShareAppMessage: function () {  
+		    return {  
+		      title: '创想物联',  
+		      path: '/pages/shouye/index'  
+		    }  
+		  },  
+		  
+		  // 分享到朋友圈  
+		  onShareTimeline: function () {  
+		    return {  
+		      title: '创想物联',  
+		      query: '',  
+		      path: '/pages/shouye/index'  
+		    }  
+		  },
 	}
 </script>
 
@@ -76,7 +281,39 @@
 	/deep/ .u-icon__icon {
 		padding-bottom: 22rpx;
 	}
-
+     .orderlist{
+		 width: 100%;
+		 height: 100%;
+		 overflow: scroll;
+		 .otderlist_item{
+			 margin-top: 30rpx;
+			 background-color: #fff;
+			 height: 230rpx;
+			 .order_top{
+				 color: #000;
+				 font-size: 28rpx;
+				 display: flex;
+				 justify-content: space-between;
+				 border-bottom: 1px solid #ccc;
+				 padding: 0 30rpx;
+				 box-sizing: border-box;
+				 height: 80rpx;
+				 line-height: 80rpx;
+			 }
+			 .order_fu{
+				 display: flex;
+				 color: #ccc;
+				 font-size: 26rpx;
+				 padding: 20rpx 30rpx;
+				 box-sizing: border-box;
+				 height: 40rpx;
+				 line-height: 40rpx;
+				 .name{
+					 width: 440rpx;
+				 }
+			 }
+		 }
+	 }
 	.serch {
 		display: flex;
 		justify-content: space-between;
@@ -91,7 +328,7 @@
 			width: 100%;
 			height: 60rpx;
 			line-height: 60rpx;
-			padding-left: 50rpx;
+			padding-left: 30rpx;
 			border: 1px solid #ccc;
 			border-radius: 10rpx;
 		}
@@ -150,6 +387,9 @@
 
 	page {
 		background-color: #F7FAFE !important;
+		// position: fixed;
+		// top: 0;
+		// left: 0;
 	}
 
 	.pages {
diff --git a/page_user/yetx.vue b/page_user/yetx.vue
index b6e03c8..11f3eaa 100644
--- a/page_user/yetx.vue
+++ b/page_user/yetx.vue
@@ -1,14 +1,14 @@
 <template>
 	<view>
-		<u-navbar title="收款账户" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff" title-size='36'
+		<u-navbar title="余额提现" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff" title-size='36'
 			height='50'></u-navbar>
 		<view class="cont">
 			<view class="top_box">
 				<view class="tip">账户余额(元)</view>
 				<view class="txt">
-					{{userinfo.balance}}
+					{{userinfo.balance == undefined ? '' : userinfo.balance}}
 				</view>
-				<view class="tip">累计提现:{{userinfo.withDrawlAmount}}</view>
+				<view class="tip">累计提现:{{userinfo.withDrawlAmount == undefined ? '' : userinfo.withDrawlAmount}}</view>
 			</view>
 			<view class="tit">
 				<view class="" style="display: flex;">
@@ -50,6 +50,18 @@
 						<span v-if="currentindex==0" style="color: #fff;"> <u-icon style="margin-top: 22rpx;" name="checkbox-mark" color="#fff" size="28"></u-icon> </span>
 					</view>
 				</view>
+				
+				<view class="type_box" @click="pay(1,'3')">
+					<view class="box_left">
+						<image style="border-radius: 50%;" src="https://api.ccttiot.com/smartmeter/img/static/umHaHtYaD540zBB7NXQ7" mode=""></image>
+						<view class="text">
+							银行卡提现
+						</view>
+					</view>
+					<view class="box_right" :class="currentindex==1?'act1':''">
+						<span v-if="currentindex==1" style="color: #fff;"> <u-icon style="margin-top: 22rpx;" name="checkbox-mark" color="#fff" size="28"></u-icon> </span>
+					</view>
+				</view>
 				<!-- <view class="type_box"   @click="pay(1,'2')">
 					<view class="box_left">
 						<image src="https://api.ccttiot.com/smartmeter/img/static/uRsKrUoCa4XXCKyIMTwb" mode=""></image>
diff --git a/pages.json b/pages.json
index 6d9277e..cea6f18 100644
--- a/pages.json
+++ b/pages.json
@@ -88,6 +88,16 @@
 						"navigationStyle": "custom"
 					}
 				},
+				{
+					"path": "skzh",
+					"style": {
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false,
+						"navigationBarBackgroundColor": "#3996FD",
+						"navigationBarTextStyle": "#FFFFFF",
+						"navigationStyle": "custom"
+					}
+				},
 				{
 					"path": "shouzhi",
 					"style": {
@@ -97,6 +107,33 @@
 						"navigationStyle": "custom"
 					}
 				},
+				{
+					"path": "mapditu/bdcard",
+					"style": {
+						"navigationBarTitleText": "",
+						"navigationBarBackgroundColor": "#4473f6",
+						"enablePullDownRefresh": false,
+						"navigationStyle": "custom"
+					}
+				},
+				{
+					"path": "mapditu/bdAlipay",
+					"style": {
+						"navigationBarTitleText": "",
+						"navigationBarBackgroundColor": "#4473f6",
+						"enablePullDownRefresh": false,
+						"navigationStyle": "custom"
+					}
+				},
+				{
+					"path": "mapditu/orderxq",
+					"style": {
+						"navigationBarTitleText": "",
+						"navigationBarBackgroundColor": "#4473f6",
+						"enablePullDownRefresh": false,
+						"navigationStyle": "custom"
+					}
+				},
 
 				{
 					"path": "order_detail",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 266e285..baf10a8 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -83,16 +83,15 @@
 
 			<swiper class="swiper" style="height: 100%;" :current='curtitidx' @change="swiperchange"
 				@touchstart="touchStart" @touchend="touchEnd">
-				<swiper-item v-for="(item,index) in groupLists" :key="index">
-					<view class="" v-if="shujuflag"
+				<swiper-item v-for="(items,index) in groupLists" :key="index">
+					<view class="" v-if="items.wateringList.length == 0"
 						style="width: 100%;height: 200rpx;margin: auto;margin-top: 230rpx;text-align: center;">
 						<image style="width: 200rpx;height: 200rpx;"
 							src="https://api.ccttiot.com/smartmeter/img/static/uZFUpcz0YZZ4f4RjvGg2" mode=""></image>
 						<view class="" style="font-size: 28rpx;color: #808080;margin-top: 30rpx;">该店铺暂无设备...</view>
 					</view>
 					<view class="swiper_item">
-						<!-- <view class="" ref="targetBox" id="targetBox"></view>  wateringList  -->
-						<view class="card_box" v-for="(item,index) in wateringList" :key="index">
+						<view class="card_box" v-for="(item,index) in items.wateringList" :key="index">
 							<view class="card">
 								<view class="card_left">
 									<view class="card_left_tit" @click="todetail(item.deviceId)">
@@ -211,7 +210,7 @@
 				storeId: '',
 				pagenum: 1,
 				wateringList: [],
-				pagesize: 10,
+				pagesize: 20,
 				isLoading: false,
 				noMoreData: false,
 				total: 0,
@@ -302,11 +301,16 @@
 						// console.log("右滑")  
 					}
 				} else if (Math.abs(deltaY) > 50 && Math.abs(deltaX) < Math.abs(deltaY)) {
-					if (deltaY < 0) {
+					if (deltaY < 100) {
 						// console.log("上滑")  
+						let sum = this.total / this.pagesize
+						// console.log(this.wateringList.length,this.total);
+						if (this.wateringList.length  < this.total) {
+							this.getlist() 
+						}
 					} else {
 						console.log(deltaY)
-						if(deltaY > 300){
+						if (deltaY > 250) {
 							this.shuaxin = true
 							this.pagenum = 1
 							setTimeout(() => {
@@ -357,7 +361,7 @@
 													if (res.code == 200) {
 														that.$u.get(
 															`/app/device/${id}/bySn`
-															).then((res) => {
+														).then((res) => {
 															if (res.code ==
 																200) {
 																uni.navigateTo({
@@ -430,9 +434,9 @@
 					storeId: e[0].value
 				}
 				this.putdevice(data)
-				setTimeout(() => {
-					this.getlist()
-				}, 1000)
+				// setTimeout(() => {
+				// 	this.getlist()
+				// }, 1000)
 			},
 			putdevice(data) {
 				this.$u.put('/app/device', data).then((res) => {
@@ -440,7 +444,7 @@
 						this.getlist()
 						uni.showToast({
 							title: '修改成功',
-							icon: 'none',
+							icon: 'success',
 							duration: 2000
 						});
 
@@ -530,7 +534,7 @@
 						this.groupList = res.data.filter(item => {
 							return item.name === '全部'
 						})
-						this.titlist = this.groupList[0].name
+						// console.log(this.groupLists);
 						this.storeId = this.groupList[0].storeId
 						this.getlist()
 					}
@@ -538,16 +542,13 @@
 			},
 			getlist() {
 				this.shujuflag = false
-				if (this.storeId == null) {
+				// if (this.storeId == null) {
 					this.$u.get(`/app/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}`).then((res) => {
 						if (res.code == 200) {
 							this.shuaxin = false
 							this.total = res.total
-							// this.wateringList = []
 							if (res.rows.length > 0) {
 								// 有数据,追加到列表  
-								// this.wateringList = this.wateringList.concat(res.rows)
-								// this.pagenum++
 								this.shujuflag = false
 								uni.hideLoading()
 							} else {
@@ -555,63 +556,129 @@
 								this.shujuflag = true
 								uni.hideLoading()
 							}
-							if (this.pagesum > 1) {
+							if (this.pagenum > 1) {
+								this.pagenum++
 								this.wateringList = this.wateringList.concat(res.rows)
 								this.shujuflag = false
+                                console.log(this.wateringList);
+								this.groupLists.forEach(groupItem => {
+								    groupItem.wateringList = []
+								})
+								this.wateringList.forEach(wateringItem => {  
+								    this.groupLists[0].wateringList.push(wateringItem);  
+								})
+								this.wateringList.forEach(wateringItem => {  
+								    this.groupLists.forEach(groupItem => {  
+								        if (groupItem.storeId !== null && wateringItem.storeId !== null && groupItem.storeId === wateringItem.storeId) {  
+								            if (!groupItem.wateringList.some(item => item.storeId === wateringItem.storeId)) {  
+								                groupItem.wateringList.push(wateringItem);  
+								            }  
+								        }  
+								    })  
+								})
+								// this.wateringList.forEach(wateringItem => {  
+								//     this.groupLists.forEach(groupItem => {  
+								//        if (groupItem.storeId !== null && wateringItem.storeId !== null && groupItem.storeId === wateringItem.storeId) {
+								//            groupItem.wateringList.push(wateringItem)
+								//        }
+								//     })
+								// }) 
+								
 							} else {
-								this.wateringList = res.rows
-							}
-							this.pagenum++
+								this.pagenum++
+								this.wateringList = res.rows  
+								// console.log(this.wateringList,'000');
+								this.groupLists.forEach(groupItem => {  
+								    groupItem.wateringList = []
+								})
+								this.wateringList.forEach(wateringItem => {  
+								    this.groupLists[0].wateringList.push(wateringItem);  
+								})
+								this.wateringList.forEach(wateringItem => {  
+								    this.groupLists.forEach(groupItem => {  
+								       if (groupItem.storeId !== null && wateringItem.storeId !== null && groupItem.storeId === wateringItem.storeId) {  
+								           groupItem.wateringList.push(wateringItem)
+								       }
+								    })
+								}) 
+								// console.log(this.groupLists)
+							} 
 							this.isLoading = false;
 						} else {
 							this.shuaxin = false
 						}
 					})
-				} else {
-					this.$u.get(
-							`/app/device/list?storeId=${this.storeId}&pageNum=${this.pagenum}&pageSize=${this.pagesize}`)
-						.then((res) => {
-							if (res.code == 200) {
-								this.shuaxin = false
-								this.total = res.total
-								// this.wateringList = []
-								if (res.rows.length > 0) {
-									// 有数据,追加到列表  
-									// this.wateringList = this.wateringList.concat(res.rows)
-									// this.pagenum++
-									this.shujuflag = false
-									uni.hideLoading()
-								} else {
-									// 没有更多数据  
-									this.shujuflag = true
-									uni.hideLoading()
-								}
-								if (this.pagesum > 1) {
-									this.wateringList = this.wateringList.concat(res.rows)
-									this.shujuflag = false
-								} else {
-									this.wateringList = res.rows
-								}
-								this.pagenum++
-								this.isLoading = false;
-							} else {
-								this.shuaxin = false
-							}
-						})
-				}
-			},
-			onReachBottom() {
-				let sum = this.total / this.pagesize
-				if (this.pagenum - 1 < sum) {
-					this.getlist(); // 上拉加载更多  
-				} else {
-					// uni.showToast({
-					// 	title: '没有更多设备了',
-					// 	icon: 'none',
-					// 	duration: 1000
-					// });
-				}
+				// } else {
+				// 	this.$u.get(
+				// 			`/app/device/list?storeId=${this.storeId}&pageNum=${this.pagenum}&pageSize=${this.pagesize}`)
+				// 		.then((res) => {
+				// 			if (res.code == 200) {
+				// 				this.shuaxin = false
+				// 				this.total = res.total
+				// 				if (res.rows.length > 0) {
+				// 					// 有数据,追加到列表  
+				// 					this.shujuflag = false
+				// 					uni.hideLoading()
+				// 				} else {
+				// 					// 没有更多数据  
+				// 					this.shujuflag = true
+				// 					uni.hideLoading()
+				// 				}
+				// 				if (this.pagenum > 1) {
+				// 					this.wateringList = this.wateringList.concat(res.rows)
+				// 					this.shujuflag = false
+									
+				// 					this.groupLists.forEach(groupItem => {
+				// 					    groupItem.wateringList = []
+				// 					})
+				// 					this.wateringList.forEach(wateringItem => {  
+				// 					    this.groupLists[0].wateringList.push(wateringItem);  
+				// 					})
+				// 					this.wateringList.forEach(wateringItem => {  
+				// 					    this.groupLists.forEach(groupItem => {  
+				// 					        if (groupItem.storeId === wateringItem.storeId) {  
+				// 					            groupItem.wateringList.push(wateringItem) 
+				// 					        }
+				// 					    })
+				// 					}) 
+									
+				// 				} else {
+				// 					this.wateringList = res.rows
+				// 					this.groupLists.forEach(groupItem => {
+				// 					    groupItem.wateringList = []
+				// 					})
+				// 					this.wateringList.forEach(wateringItem => {  
+				// 					    this.groupLists[0].wateringList.push(wateringItem);  
+				// 					})
+				// 					this.wateringList.forEach(wateringItem => {  
+				// 					    this.groupLists.forEach(groupItem => {  
+				// 					        if (groupItem.storeId === wateringItem.storeId) {  
+				// 					            groupItem.wateringList.push(wateringItem) 
+				// 					        }
+				// 					    })
+				// 					}) 
+				// 				}
+				// 				this.pagenum++
+				// 				this.isLoading = false;
+				// 			} else {
+				// 				this.shuaxin = false
+				// 			}
+				// 		})
+				// }
 			},
+			// onReachBottom() {
+			// 	console.log(11);
+			// 	let sum = this.total / this.pagesize
+			// 	if (this.pagenum - 1 < sum) {
+			// 		this.getlist(); // 上拉加载更多  
+			// 	} else {
+			// 		// uni.showToast({
+			// 		// 	title: '没有更多设备了',
+			// 		// 	icon: 'none',
+			// 		// 	duration: 1000
+			// 		// });
+			// 	}
+			// },
 			changeGp(item, index) {
 				// console.log(item);
 				this.pagenum = 1
@@ -622,7 +689,6 @@
 					if (item.storeId == null) {
 						this.pagenum = 1
 						// this.wateringList = []
-						this.titlist = item.name
 						this.$u.get(`/app/device/list?pageNum=${this.pagenum}&pageSize=${this.pagesize}`).then((res) => {
 							if (res.code == 200) {
 								this.total = res.total
@@ -637,7 +703,7 @@
 									this.shujuflag = true
 									uni.hideLoading()
 								}
-								if (this.pagesum > 1) {
+								if (this.pagenum > 1) {
 									this.wateringList = this.wateringList.concat(res.rows)
 									this.shujuflag = false
 								} else {
@@ -650,10 +716,9 @@
 					} else {
 						this.pagenum = 1
 						// this.wateringList = []
-						this.titlist = item.name
 						this.$u.get(
 							`/app/device/list?storeId=${item.storeId}&pageNum=${this.pagenum}&pageSize=${this.pagesize}`
-							).then((res) => {
+						).then((res) => {
 							if (res.code == 200) {
 								this.total = res.total
 								// if(this.pagenum > 1){
@@ -672,7 +737,7 @@
 									this.shujuflag = true
 									uni.hideLoading()
 								}
-								if (this.pagesum > 1) {
+								if (this.pagenum > 1) {
 									this.wateringList = this.wateringList.concat(res.rows)
 									this.shujuflag = false
 								} else {
@@ -1413,16 +1478,23 @@
 				color: #FFFFFF;
 			}
 		}
-         @keyframes fadeIn {
-           from { opacity: 0; }
-           to { opacity: 1; }
-         }
+
+		@keyframes fadeIn {
+			from {
+				opacity: 0;
+			}
+
+			to {
+				opacity: 1;
+			}
+		}
+
 		.fd {
 			margin-top: 20rpx;
 			padding: 0 40rpx;
 			padding-bottom: 200rpx;
 			height: 100%;
-          
+
 			.fz {
 				margin: 0 -40rpx;
 				position: fixed;
@@ -1433,9 +1505,10 @@
 				border-radius: 30rpx 30rpx 0 0;
 				z-index: 10071;
 				opacity: 0;
-				  animation-name: fadeIn;
-				  animation-duration: 1s; 
-				  animation-fill-mode: forwards;
+				animation-name: fadeIn;
+				animation-duration: 1s;
+				animation-fill-mode: forwards;
+
 				.fz_top {
 					margin: 18rpx 0 auto;
 					display: flex;
diff --git a/pages/my.vue b/pages/my.vue
index ee84d21..83d03b5 100644
--- a/pages/my.vue
+++ b/pages/my.vue
@@ -1,8 +1,7 @@
 <template>
 	<view class="page">
-		<u-navbar :is-back="false"  title="商户中心" :border-bottom="false" :background="bgc" title-color='#fff' title-size='36'
-			height='36'
-			id="navbar">
+		<u-navbar :is-back="false"  title="商户中心" :border-bottom="false" back-icon-color="#fff" :background="bgc" title-color='#fff' title-size='36'
+			height='36'	id="navbar">
 		</u-navbar>
 
 		<view class="fdpage">
@@ -38,14 +37,14 @@
 							钱包余额
 						</view>
 					</view>
-					<!-- <view class="cont" @click="topage(6)">
+					<view class="cont" @click="topage(6)">
 						<view class="top"  >
 							<image src="https://api.ccttiot.com/smartmeter/img/static/u9VRzUjhkZHj4ExkXC10" mode="" style="width: 61.83rpx;height: 46.35rpx;"></image>
 						</view>
 						<view class="bot">
 							收款账户
 						</view>
-					</view> -->
+					</view>
 					<view class="cont"  @click="topage(7)">
 						<view class="top" >
 							<image src="https://api.ccttiot.com/smartmeter/img/static/utQedWhwW39J2qbeWvn8" mode="" style="width: 45rpx;height: 55rpx;"></image>
@@ -163,12 +162,12 @@
 						url:'/page_fenbao/statulist/myshop/index'
 					})
 				}else if(num==1){
-					uni.navigateTo({
-						url:'/page_fenbao/statulist/myorder/index'
-					})
 					// uni.navigateTo({
-					// 	url:'/page_user/switchs'
+					// 	url:'/page_fenbao/statulist/myorder/index'
 					// })
+					uni.navigateTo({
+						url:'/page_user/switchs'
+					})
 				}else if(num==2){
 					uni.navigateTo({
 						url:'/page_fenbao/statulist/question/index'