diff --git a/page_user/sbdetail.vue b/page_user/sbdetail.vue index 1bfd195..4b13574 100644 --- a/page_user/sbdetail.vue +++ b/page_user/sbdetail.vue @@ -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 上 diff --git a/page_user/setting.vue b/page_user/setting.vue index af20eae..cdece49 100644 --- a/page_user/setting.vue +++ b/page_user/setting.vue @@ -339,9 +339,9 @@ uni.navigateBack({ delta: 2 // 返回上级页面 }); - } else { + } else if(res.code == 500){ uni.showToast({ - title: '解绑失败', + title: res.msg, icon: 'none', duration: 2000 }); diff --git a/page_user/wifijoint/index.vue b/page_user/wifijoint/index.vue index f885815..466d0c5 100644 --- a/page_user/wifijoint/index.vue +++ b/page_user/wifijoint/index.vue @@ -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' })