浇花器

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) {
case xBlufi.XBLUFI_TYPE.TYPE_STATUS_CONNECTED:
if (!options.result) {
uni.showModal({
title: '很抱歉提醒你!',
content: '小程序与设备异常断开',
showCancel: false,
//
success: function(res) {
uni.hideLoading()
uni.removeStorage({key:'device_key'})
}
})
// uni.showModal({
// title: '',
// content: '',
// showCancel: false,
// //
// success: function(res) {
// uni.hideLoading()
// uni.removeStorage({key:'device_key'})
// }
// })
}
break;
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA:

View File

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

View File

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

View File

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

View File

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