aaa
This commit is contained in:
		
							parent
							
								
									4fb815849f
								
							
						
					
					
						commit
						8846de03b9
					
				|  | @ -550,7 +550,7 @@ | |||
| 								if (res.code == 200) { | ||||
| 									uni.showToast({ | ||||
| 										title: '绑定成功', | ||||
| 										icon: 'none', | ||||
| 										icon: 'success', | ||||
| 										duration: 2000 | ||||
| 									}) | ||||
| 									uni.hideLoading(); | ||||
|  | @ -649,7 +649,7 @@ | |||
| 					}else if(res.code == 500){ | ||||
| 						uni.showToast({ | ||||
| 							title: res.msg, | ||||
| 							icon: 'success', | ||||
| 							icon: 'none', | ||||
| 							duration: 2000 | ||||
| 						})  | ||||
| 						// let vm = this; // 将外部的 this 绑定到 vm 上 | ||||
|  |  | |||
|  | @ -339,9 +339,9 @@ | |||
| 				                    uni.navigateBack({   | ||||
| 				                        delta: 2 // 返回上级页面   | ||||
| 				                    });   | ||||
| 				                } else {   | ||||
| 				                } else if(res.code == 500){   | ||||
| 				                    uni.showToast({   | ||||
| 				                        title: '解绑失败',   | ||||
| 				                        title: res.msg,   | ||||
| 				                        icon: 'none',   | ||||
| 				                        duration: 2000   | ||||
| 				                    });   | ||||
|  |  | |||
|  | @ -70,9 +70,9 @@ | |||
| 		onReady() {}, | ||||
| 		onUnload() { | ||||
| 			xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent); | ||||
| 			wx.closeBLEConnection({ | ||||
| 				deviceId: this.objlist.deviceId, | ||||
| 			}) | ||||
| 			// wx.closeBLEConnection({ | ||||
| 			// 	deviceId: this.objlist.deviceId, | ||||
| 			// }) | ||||
| 		}, | ||||
| 		methods: { | ||||
| 			content_wf() { | ||||
|  | @ -146,6 +146,9 @@ | |||
| 									showCancel: false, | ||||
| 									success: function(res) { | ||||
| 										// let ids = that.$store.state.user.deviceId | ||||
| 										wx.closeBLEConnection({ | ||||
| 											deviceId: this.objlist.deviceId, | ||||
| 										}) | ||||
| 										uni.switchTab({ | ||||
| 											url: '/pages/index/index' | ||||
| 										}) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user