htc 1 day ago
parent
commit
b00beedbba
2 changed files with 1 additions and 6 deletions
  1. 1 1
      components/deviceBox/index.vue
  2. 0 5
      pagesMy/wifiSearch.vue

+ 1 - 1
components/deviceBox/index.vue

@@ -62,7 +62,7 @@
 			},
 			changeWifi(item){
 				uni.navigateTo({
-					url:'/pagesMy/wifi'
+					url:'/pagesMy/wifiSearch'
 				})
 			},
 			unbindDevice(item){

+ 0 - 5
pagesMy/wifiSearch.vue

@@ -134,22 +134,17 @@
 			connectWiFi(){
 				if(!this.flag) return
 				this.flag = false;
-				uni.showLoading({
-					title:'热点连接中'
-				})
 				let that = this;
 				wx.connectWifi({
 					SSID: this.deviceWifi.SSID,
 					password: '',
 					success: (res) => {
-						uni.hideLoading();
 						that.flag = true;
 						uni.navigateTo({
 							url:'/pagesMy/wifiSet'
 						})
 					},
 					fail: (err) => {
-						uni.hideLoading();
 						that.flag = true;
 						that.$showModal("connectWifi:err:"+JSON.stringify(err))
 					}