|
@@ -36,8 +36,8 @@
|
|
|
<div class="top adfacjb">
|
|
|
<div class="tl">选择WiFi</div>
|
|
|
<div class="tr adfac" @tap="initWiFi">
|
|
|
- <image src="@/static/refreash.png"></image>
|
|
|
- <text>刷新</text>
|
|
|
+ <!-- <image src="@/static/refreash.png"></image>
|
|
|
+ <text>刷新</text> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="list" v-if="wifiList.length">
|
|
@@ -87,15 +87,15 @@
|
|
|
title: '设备初始化中',
|
|
|
})
|
|
|
},
|
|
|
- onUnload: function() {
|
|
|
- let that = this
|
|
|
- xBlufi.notifyConnectBle({
|
|
|
- isStart: false,
|
|
|
- deviceId: that.connectedDeviceId,
|
|
|
- name: that.name,
|
|
|
- });
|
|
|
- xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
|
|
|
- },
|
|
|
+ // onUnload: function() {
|
|
|
+ // let that = this
|
|
|
+ // xBlufi.notifyConnectBle({
|
|
|
+ // isStart: false,
|
|
|
+ // deviceId: that.connectedDeviceId,
|
|
|
+ // name: that.name,
|
|
|
+ // });
|
|
|
+ // xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent);
|
|
|
+ // },
|
|
|
methods:{
|
|
|
funListenDeviceMsgEvent: function(options) {
|
|
|
let that = this
|
|
@@ -166,10 +166,11 @@
|
|
|
this.isPwd = !this.isPwd;
|
|
|
},
|
|
|
initWiFi(){
|
|
|
- xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvent);
|
|
|
- xBlufi.notifyInitBleEsp32({
|
|
|
- deviceId: this.connectedDeviceId,
|
|
|
- })
|
|
|
+ // let that = this;
|
|
|
+ // xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvent);
|
|
|
+ // xBlufi.notifyInitBleEsp32({
|
|
|
+ // deviceId: that.connectedDeviceId
|
|
|
+ // })
|
|
|
},
|
|
|
connectWifi(){
|
|
|
let that = this;
|