111
This commit is contained in:
		
							parent
							
								
									2a6fb252f8
								
							
						
					
					
						commit
						eded78b18e
					
				|  | @ -16,7 +16,6 @@ const install = (Vue, vm) => { | |||
| 	// 	// 配置请求头信息 
 | ||||
| 	// 	header: {   
 | ||||
| 	// 		'content-type': 'application/json;charset=UTF-8',
 | ||||
| 			 | ||||
| 	// 	},
 | ||||
| 	// }); 
 | ||||
| 	Vue.prototype.$u.http.setConfig({  | ||||
|  |  | |||
|  | @ -294,6 +294,7 @@ | |||
| 			 | ||||
| 		}, | ||||
| 		onShow() { | ||||
| 			this.wateringList = [] | ||||
| 			this.setMode == null | ||||
| 			this.taocan = '' | ||||
| 			this.getQiniuToken() | ||||
|  |  | |||
|  | @ -33,8 +33,14 @@ | |||
| 						</view> | ||||
| 					</view> | ||||
| 					<view class="gzlist"> | ||||
| 						<view class="jfgz"> | ||||
| 							<text>审核状态:</text> {{item.status == 1 ? '正常' : '审核中'}} | ||||
| 						<view class="jfgz" v-if="item.status == 2"> | ||||
| 							<text>审核状态:</text> 审核中 | ||||
| 						</view> | ||||
| 						<view class="jfgz" v-if="item.status == 1"> | ||||
| 							<text>审核状态:</text> 正常 | ||||
| 						</view> | ||||
| 						<view class="jfgz" style="margin-top: 16rpx;"> | ||||
| 							<text>是否生效:</text> {{item.enabled == false ? '未生效' : '生效'}} | ||||
| 						</view> | ||||
| 						<view class="jfgz" style="margin-top: 16rpx;"> | ||||
| 							<text>绑定人员:</text>{{item.contactName}} | ||||
|  | @ -47,13 +53,11 @@ | |||
| 						<text>已运营{{item.daysDifference + 1}}天</text> <text>{{item.createTime}}</text> | ||||
| 					</view> | ||||
| 				</view> | ||||
| 
 | ||||
| 				<view class="" v-if="showflag" style="width: 100%;height: 200rpx;margin: auto;margin-top: 170rpx;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> | ||||
| 		</view> | ||||
| 	</view> | ||||
|  | @ -107,8 +111,7 @@ | |||
| 				// 	return; | ||||
| 				// } | ||||
| 				this.isLoading = true; | ||||
| 				this.$u.get("/app/store/list?pageNum=" + this.pagenum + '&pageSize=' + this.pagesize + '&keyword=' + this | ||||
| 					.keyword).then(res => { | ||||
| 				this.$u.get("/app/store/list?pageNum=" + this.pagenum + '&pageSize=' + this.pagesize + '&keyword=' + this.keyword).then(res => { | ||||
| 					if (res.code == 200) { | ||||
| 						this.total = res.total | ||||
| 						if (this.total > 0) { | ||||
|  | @ -123,28 +126,26 @@ | |||
| 
 | ||||
| 							// 计算创建到现在运行了多少天 | ||||
| 							this.wateringList.forEach((item, index) => { | ||||
| 								var dateTime = new Date(item.createTime); | ||||
| 								var dateTime = new Date(item.createTime) | ||||
| 								if (isNaN(dateTime.getTime())) { | ||||
| 									console.error(`无法解析日期时间字符串: ${item.createTime}`); | ||||
| 									return; | ||||
| 									console.error(`无法解析日期时间字符串: ${item.createTime}`) | ||||
| 									return | ||||
| 								} | ||||
| 								var now = new Date().getTime(); | ||||
| 								var now = new Date().getTime() | ||||
| 								var differenceInMilliseconds = now - dateTime.getTime(); | ||||
| 								var differenceInDays = Math.floor(differenceInMilliseconds / (1000 * 60 * | ||||
| 									60 * 24)); | ||||
| 								var differenceInDays = Math.floor(differenceInMilliseconds / (1000 * 60 * 60 * 24)) | ||||
| 								// 直接修改原数组中的对象,添加daysDifference属性   | ||||
| 								item.daysDifference = differenceInDays; | ||||
| 							}); | ||||
| 
 | ||||
| 								item.daysDifference = differenceInDays | ||||
| 							}) | ||||
| 						} else { | ||||
| 							// 没有更多数据   | ||||
| 							this.noMoreData = true; | ||||
| 							this.noMoreData = true | ||||
| 						} | ||||
| 						this.isLoading = false; | ||||
| 						this.isLoading = false | ||||
| 					} | ||||
| 				}).catch(error => { | ||||
| 					console.error('获取店铺失败:', error); | ||||
| 					this.isLoading = false; // 加载失败也标记为完成   | ||||
| 					console.error('获取店铺失败:', error) | ||||
| 					this.isLoading = false // 加载失败也标记为完成   | ||||
| 				}) | ||||
| 			}, | ||||
| 
 | ||||
|  | @ -156,7 +157,7 @@ | |||
| 			onReachBottom() { | ||||
| 				let sum = this.total / this.pagesize | ||||
| 				if (this.pagenum - 1 < sum) { | ||||
| 					this.getlist(); // 上拉加载更多   | ||||
| 					this.getlist() // 上拉加载更多   | ||||
| 				} else { | ||||
| 					uni.showToast({ | ||||
| 						title: '没有更多店铺了', | ||||
|  | @ -195,21 +196,14 @@ | |||
| 
 | ||||
| 	.page { | ||||
| 		width: 750rpx; | ||||
| 		// position: fixed; | ||||
| 		// top: 0; | ||||
| 		// left: 0; | ||||
| 		height: 100vh; | ||||
| 
 | ||||
| 		.box { | ||||
| 			width: 750rpx; | ||||
| 			// height: 100%; | ||||
| 			// background: #F4F5F7; | ||||
| 			border-radius: 0rpx 0rpx 0rpx 0rpx; | ||||
| 			padding-top: 150rpx; | ||||
| 
 | ||||
| 			.list { | ||||
| 				// overflow-y: scroll; | ||||
| 				// height: 100vh; | ||||
| 				padding-bottom: 400rpx; | ||||
| 				margin-top: 26rpx; | ||||
| 
 | ||||
|  | @ -218,7 +212,7 @@ | |||
| 					padding: 12rpx 38rpx; | ||||
| 					box-sizing: border-box; | ||||
| 					width: 680rpx; | ||||
| 					height: 490rpx; | ||||
| 					height: 540rpx; | ||||
| 					background: #FFFFFF; | ||||
| 					border-radius: 38rpx 38rpx 38rpx 38rpx; | ||||
| 					margin: auto; | ||||
|  | @ -271,7 +265,6 @@ | |||
| 
 | ||||
| 					.rishou { | ||||
| 						margin-top: 26rpx; | ||||
| 						// padding: 0 28rpx; | ||||
| 						box-sizing: border-box; | ||||
| 
 | ||||
| 						.rishouwz { | ||||
|  | @ -324,7 +317,6 @@ | |||
| 							font-weight: 600; | ||||
| 							font-size: 30rpx; | ||||
| 							color: #3D3D3D; | ||||
| 							// padding: 10rpx 12rpx; | ||||
| 							box-sizing: border-box; | ||||
| 						} | ||||
| 
 | ||||
|  |  | |||
|  | @ -101,7 +101,7 @@ | |||
| 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||
| 			xBlufi.notifyStartDiscoverBle({ | ||||
| 				'isStart': false | ||||
| 			}); | ||||
| 			}) | ||||
| 		}, | ||||
| 		onHide() { | ||||
| 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||
|  | @ -134,7 +134,7 @@ | |||
| 		methods: { | ||||
| 			btnsh(){ | ||||
| 				uni.navigateTo({ | ||||
| 					url:'/page_fenbao/editshenhe?obj=' + JSON.stringify(this.listobj) | ||||
| 					url:'/page_fenbao/editshenhe?storeId=' + this.storeId | ||||
| 				}) | ||||
| 			}, | ||||
| 			getdetail() { | ||||
|  | @ -191,7 +191,7 @@ | |||
| 									} | ||||
| 								}) | ||||
| 							} else if (res.cancel) { | ||||
| 								console.log('用户点击了取消'); | ||||
| 								console.log('用户点击了取消') | ||||
| 							} | ||||
| 						} | ||||
| 					}) | ||||
|  | @ -267,7 +267,7 @@ | |||
| 					  								url: '/page_fenbao/zhuce?sn=' + id | ||||
| 					  							}) | ||||
| 					  						} else if (res.cancel) { | ||||
| 					   | ||||
| 																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																					 | ||||
| 					  						} | ||||
| 					  					} | ||||
| 					  				}) | ||||
|  | @ -298,7 +298,7 @@ | |||
| 									this.mac = device.name.substring(5) | ||||
| 									this.devicesList = uniqueDevicesList; | ||||
| 								} | ||||
| 
 | ||||
| 																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																	 | ||||
| 							}) | ||||
| 						} else { | ||||
| 							uni.showToast({ | ||||
|  |  | |||
|  | @ -166,13 +166,13 @@ | |||
| 				uni.chooseImage({ | ||||
| 					count: 1, | ||||
| 					success: (rst) => { | ||||
| 						this.url = rst.tempFilePaths[0]; | ||||
| 						this.url = rst.tempFilePaths[0] | ||||
| 					} | ||||
| 				}) | ||||
| 			}, | ||||
| 			onok(ev) { | ||||
| 				this.url = ""; | ||||
| 				this.path = ev.path; | ||||
| 				this.url = "" | ||||
| 				this.path = ev.path | ||||
| 				let _this = this | ||||
| 				let math = 'static/' + _this.$u.guid(20) | ||||
| 				wx.uploadFile({ | ||||
|  | @ -337,8 +337,8 @@ | |||
| 			btnjwd() { | ||||
| 				uni.chooseLocation({ | ||||
| 					success: (res) => { | ||||
| 						this.latitude = res.latitude; | ||||
| 						this.longitude = res.longitude; | ||||
| 						this.latitude = res.latitude | ||||
| 						this.longitude = res.longitude | ||||
| 						this.xqdz = res.name | ||||
| 					}, | ||||
| 					fail: function(err) { | ||||
|  | @ -349,7 +349,7 @@ | |||
| 								icon: 'none' | ||||
| 							}); | ||||
| 						} else { | ||||
| 							console.log('选择位置失败', err); | ||||
| 							console.log('选择位置失败', err) | ||||
| 							// 处理其他失败情况   | ||||
| 						} | ||||
| 					}, | ||||
|  |  | |||
|  | @ -47,6 +47,7 @@ | |||
| 					</view> | ||||
| 				</view> | ||||
| 				<view class="bot"> | ||||
| 					<!-- 设备租期到期时间: {{deviceInfo.rentTime}} --> | ||||
| 				</view> | ||||
| 			</view> | ||||
| 			<view class="card2"> | ||||
|  | @ -1225,7 +1226,7 @@ | |||
| 			.card1 { | ||||
| 				padding: 34rpx 0 0 40rpx; | ||||
| 				width: 670rpx; | ||||
| 				height: 320rpx; | ||||
| 				height: 300rpx; | ||||
| 				background: #FFFFFF; | ||||
| 				box-shadow: 0rpx 14rpx 35rpx 0rpx rgba(53, 140, 255, 0.1); | ||||
| 				border-radius: 28rpx 28rpx 28rpx 28rpx; | ||||
|  | @ -1315,7 +1316,7 @@ | |||
| 				} | ||||
| 
 | ||||
| 				.bot { | ||||
| 					margin-top: 53rpx; | ||||
| 					margin-top: 20rpx; | ||||
| 					display: flex; | ||||
| 					flex-wrap: nowrap; | ||||
| 					align-items: center; | ||||
|  |  | |||
|  | @ -135,7 +135,7 @@ | |||
| 		}, | ||||
| 		onShow() { | ||||
| 			this.gettxlist() | ||||
| 			this.getfuwu() | ||||
| 			// this.getfuwu() | ||||
| 			this.getinfo() | ||||
| 			this.getuserinfo() | ||||
| 		}, | ||||
|  | @ -207,6 +207,7 @@ | |||
| 			}, | ||||
| 			pay(index,id){ | ||||
| 				this.channelId = id | ||||
| 				this.getfuwu() | ||||
| 				this.currentindex=index | ||||
| 			}, | ||||
| 			all(){ | ||||
|  | @ -222,7 +223,7 @@ | |||
| 			}, | ||||
| 			// 获取提现服务费 | ||||
| 			getfuwu(){ | ||||
| 				this.$u.get('/app/bill/getWithdrawService?channelId=1').then((res) => { | ||||
| 				this.$u.get(`/app/bill/getWithdrawService?channelId=${this.channelId}`).then((res) => { | ||||
| 					if (res.code == 200) { | ||||
| 						this.serviceType = res.data.serviceType | ||||
| 						this.serviceRate = res.data.serviceRate | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user