aaa
This commit is contained in:
		
							parent
							
								
									6de033d8e1
								
							
						
					
					
						commit
						763b37c5a4
					
				|  | @ -17,7 +17,7 @@ | |||
| 					智能开关  | ||||
| 				</view> | ||||
| 				<view class="mac"> | ||||
| 					MAC:{{item.localName.substring(6)}} | ||||
| 					MAC:{{item.localName.substring(5)}} | ||||
| 				</view> | ||||
| 			</view> | ||||
| 			<view class="rt"> | ||||
|  |  | |||
|  | @ -145,6 +145,9 @@ | |||
| 			} | ||||
| 		}, | ||||
| 		onLoad() { | ||||
| 			 | ||||
| 		}, | ||||
| 		onShow() { | ||||
| 			this.getQiniuToken() | ||||
| 		}, | ||||
| 		methods: { | ||||
|  | @ -163,9 +166,9 @@ | |||
| 					success: function(res) { | ||||
| 						let str = JSON.parse(res.data) | ||||
| 						console.log(str.key) | ||||
| 						_this.userImgs = 'https://api.ccttiot.com/' + str.key | ||||
| 						_this.imglist = _this.userImgs | ||||
| 						_this.imgflag = false | ||||
| 							_this.userImgs = 'https://api.ccttiot.com/' + str.key | ||||
| 							_this.imglist = _this.userImgs | ||||
| 							_this.imgflag = false | ||||
| 					} | ||||
| 				}) | ||||
| 			}, | ||||
|  |  | |||
|  | @ -15,8 +15,14 @@ | |||
| 					</view> | ||||
| 				</view> | ||||
| 				<view class="mid"> | ||||
| 					<view class="mid_left" @click="btnpic"> | ||||
| 						<image :src="imglist" mode=""></image> | ||||
| 					<view class="mid_left"> | ||||
| 						<button | ||||
| 							style="border: 0;outline: none;width: 143rpx;padding-left: 0rpx;height: 143rpx;border-radius: 16rpx;" | ||||
| 							type="primary reverse" open-type="chooseAvatar" @chooseavatar="btnpic"> | ||||
| 							<image  :src="imglist" mode="" | ||||
| 								style="width: 142rpx;height: 142rpx;border-radius: 20rpx;"></image> | ||||
| 						</button> | ||||
| 						<!-- <image :src="imglist" mode=""></image> --> | ||||
| 					</view> | ||||
| 					<view class="mid_right"> | ||||
| 						<view class="mid_top"> | ||||
|  | @ -447,13 +453,14 @@ | |||
| 						url: '/page_user/cbRecord?id=' + this.id | ||||
| 					}) | ||||
| 				} else if (num == 1) { | ||||
| 					let that = this | ||||
| 					uni.showModal({ | ||||
| 						title: '提示', | ||||
| 						content: '您确定要将电表时间归零吗?', | ||||
| 						success: function(res) { | ||||
| 							if (res.confirm) { | ||||
| 							    //归零 | ||||
| 							    this.$u.put(`/app/device/${this.id}/reset`).then((res) => { | ||||
| 							    that.$u.put(`/app/device/${that.id}/reset`).then((res) => { | ||||
| 							    	if (res.code == 200) { | ||||
| 							    		console.log(res.data); | ||||
| 							    		uni.showToast({ | ||||
|  | @ -461,7 +468,7 @@ | |||
| 							    			icon: 'none', | ||||
| 							    			duration: 2000 | ||||
| 							    		}) | ||||
| 							    		this.getDevice(this.id) | ||||
| 							    		that.getDevice(that.id) | ||||
| 							    	} else if (res.msg == '设备剩余时间不足,无需归零') { | ||||
| 							    		uni.showToast({ | ||||
| 							    			title: '设备剩余时间不足,无需归零', | ||||
|  | @ -998,12 +1005,12 @@ | |||
| 								margin-left: 19rpx; | ||||
| 								// width: 38rpx; | ||||
| 								// height: 23rpx; | ||||
| 								padding: 5rpx 10rpx; | ||||
| 								padding: 0 10rpx; | ||||
| 								box-sizing: border-box; | ||||
| 								background: rgba(204, 204, 204, 0); | ||||
| 								opacity: 1; | ||||
| 								border: 2rpx solid #8883F0; | ||||
| 								border-radius: 40rpx; | ||||
| 								border-radius: 15rpx; | ||||
| 								font-size: 26rpx; | ||||
| 								font-family: HarmonyOS Sans SC, HarmonyOS Sans SC; | ||||
| 								font-weight: 400; | ||||
|  |  | |||
|  | @ -115,9 +115,9 @@ | |||
| 							content: '小程序与设备异常断开', | ||||
| 							showCancel: false, | ||||
| 							success: function(res) { | ||||
| 								// uni.navigateBack({ | ||||
| 								// 	url: '../search/search' | ||||
| 								// }); | ||||
| 								uni.navigateTo({ | ||||
| 									url:'/pages/index/index' | ||||
| 								}) | ||||
| 							} | ||||
| 						}); | ||||
| 						this.statusflag = false | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ | |||
| 		<view class="fd"> | ||||
| 			<view class="fd_top"> | ||||
| 				<view class="fd_da"> | ||||
| 					<view class="fd_lt" :style="{ transform: `translateX(${-curtitidx * 100}rpx)`}"> | ||||
| 					<view class="fd_lt" :style="{ transform: `translateX(${-curtitidx * 100 > -300 ? 0 : -curtitidx * 120}rpx)`}"> | ||||
| 						<view class="fd_tit" v-for="(item,index) in groupLists" :key="index" | ||||
| 							:class="index==curtitidx?'act1':''" @click="changeidx(index)"> | ||||
| 							{{item.name.length > 5 ? item.name.slice(0, 5) + '...' : item.name}} | ||||
|  |  | |||
|  | @ -65,8 +65,6 @@ | |||
| 					</view> | ||||
| 				</view> | ||||
| 			</view> | ||||
| 
 | ||||
| 
 | ||||
| 		</view> | ||||
| 	</view> | ||||
| </template> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user