浇花器

This commit is contained in:
3321822538@qq.com 2024-11-08 18:02:11 +08:00
parent e22e23a04a
commit 65414517b0
5 changed files with 29 additions and 28 deletions

View File

@ -301,16 +301,16 @@
switch (options.type) { switch (options.type) {
case xBlufi.XBLUFI_TYPE.TYPE_STATUS_CONNECTED: case xBlufi.XBLUFI_TYPE.TYPE_STATUS_CONNECTED:
if (!options.result) { if (!options.result) {
uni.showModal({ // uni.showModal({
title: '很抱歉提醒你!', // title: '',
content: '小程序与设备异常断开', // content: '',
showCancel: false, // showCancel: false,
// // //
success: function(res) { // success: function(res) {
uni.hideLoading() // uni.hideLoading()
uni.removeStorage({key:'device_key'}) // uni.removeStorage({key:'device_key'})
} // }
}) // })
} }
break; break;
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA: case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA:

View File

@ -105,7 +105,7 @@
// name: that.name // name: that.name
// }) // })
} }
}, 2000) }, 5000)
}, },
methods:{ methods:{
// //
@ -135,6 +135,9 @@
icon: 'success', icon: 'success',
duration: 3000 duration: 3000
}) })
setTimeout(()=>{
uni.navigateBack()
},2000)
}else{ }else{
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
@ -172,7 +175,7 @@
} }
uni.hideLoading() uni.hideLoading()
that.flag = true that.flag = true
}, 2000) }, 5000)
}, },
// //
@ -183,15 +186,15 @@
// connected: options.result // connected: options.result
// }) // })
if (!options.result) { if (!options.result) {
uni.showModal({ // uni.showModal({
title: '很抱歉提醒你!', // title: '',
content: '小程序与设备异常断开', // content: '',
showCancel: false, // showCancel: false,
// // //
success: function(res) { // success: function(res) {
} // }
}) // })
} }
break break
case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS: case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS:

View File

@ -391,7 +391,7 @@
name: that.name name: that.name
}) })
} }
}, 2000) }, 10000)
}, },
// //
getchao(){ getchao(){
@ -901,7 +901,7 @@
name: that.name name: that.name
}) })
} }
}, 2000) }, 10000)
that.getchao() that.getchao()
}else{ }else{
uni.showToast({ uni.showToast({

View File

@ -347,7 +347,7 @@
'isStart': false 'isStart': false
}); });
this.seachflag = true this.seachflag = true
}, 2000) },5000)
// } // }
}, },
// //

View File

@ -288,11 +288,9 @@
wx.closeBLEConnection({ wx.closeBLEConnection({
deviceId: this.deviceId, deviceId: this.deviceId,
}) })
// setTimeout(()=>{ setTimeout(()=>{
// uni.navigateTo({ uni.navigateBack()
// url:'/page_user/wifijoint/index?sn=' + this.storeId },2000)
// })
// },1500)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,