床垫
This commit is contained in:
		
							parent
							
								
									0888b7e412
								
							
						
					
					
						commit
						4ad464a51c
					
				|  | @ -19,8 +19,8 @@ const install = (Vue, vm) => { | |||
| 	// 	},
 | ||||
| 	// }); 
 | ||||
| 	Vue.prototype.$u.http.setConfig({ | ||||
| 			// baseUrl: 'http://192.168.2.81:3302',
 | ||||
| 			baseUrl: 'https://kang.chuangtewl.com/prod-api', | ||||
| 			baseUrl: 'http://192.168.2.106:3302', | ||||
| 			// baseUrl: 'https://kang.chuangtewl.com/prod-api',
 | ||||
| 			loadingText: '努力加载中~', | ||||
| 			loadingTime: 800, | ||||
| 			// 设置自定义头部content-type
 | ||||
|  |  | |||
|  | @ -218,7 +218,12 @@ | |||
|              	this.$u.get(`/app/device/${this.id}`).then(res =>{ | ||||
|              		if(res.code == 200){ | ||||
|              			this.obj = res.data | ||||
| 						this.imgflag = res.data.isUsing | ||||
| 						// this.imgflag = res.data.isUsing | ||||
| 						if(res.data.powerStatus == 1){ | ||||
| 							this.imgflag = true | ||||
| 						}else{ | ||||
| 							this.imgflag = false | ||||
| 						} | ||||
| 						this.qrResult = res.data.mac | ||||
|              		} | ||||
|              	}) | ||||
|  |  | |||
|  | @ -262,6 +262,16 @@ | |||
| 								}) | ||||
| 							} | ||||
| 						}) | ||||
| 					}else if(res.code == 401){ | ||||
| 						uni.navigateTo({ | ||||
| 							url: '/pages/login/login?ids=' + 2 | ||||
| 						}) | ||||
| 					}else{ | ||||
| 						uni.showToast({ | ||||
| 							title: res.msg, | ||||
| 							icon: 'none', | ||||
| 							duration: 1500 | ||||
| 						}) | ||||
| 					} | ||||
| 				}) | ||||
| 			}, | ||||
|  | @ -315,8 +325,6 @@ | |||
| 										uni.navigateTo({ | ||||
| 											url: '/pages/login/login?ids=' + 2 | ||||
| 										}) | ||||
| 									} else if (res.cancel) { | ||||
| 
 | ||||
| 									} | ||||
| 								} | ||||
| 							}) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user