浇花器
This commit is contained in:
parent
e22e23a04a
commit
65414517b0
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -391,7 +391,7 @@
|
|||
name: that.name
|
||||
})
|
||||
}
|
||||
}, 2000)
|
||||
}, 10000)
|
||||
},
|
||||
// 连接超时提示
|
||||
getchao(){
|
||||
|
@ -901,7 +901,7 @@
|
|||
name: that.name
|
||||
})
|
||||
}
|
||||
}, 2000)
|
||||
}, 10000)
|
||||
that.getchao()
|
||||
}else{
|
||||
uni.showToast({
|
||||
|
|
|
@ -347,7 +347,7 @@
|
|||
'isStart': false
|
||||
});
|
||||
this.seachflag = true
|
||||
}, 2000)
|
||||
},5000)
|
||||
// }
|
||||
},
|
||||
// 点击隐藏没有设备提示
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user