登录加cid;注掉记住密码
This commit is contained in:
@@ -107,7 +107,15 @@ const openDoor = () => {
|
||||
const device = doorList.value[selectedDoor.value]
|
||||
if (!device) return
|
||||
|
||||
uni.showLoading({ title: '开门中...' })
|
||||
uni.showToast({
|
||||
title: '正在对接硬件中...',
|
||||
icon: 'none'
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
function getSwitchOpen(){
|
||||
uni.showLoading({ title: '开门中...',mask:true })
|
||||
switchOpenDoor({ deviceId: device.id }).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.code === 200) {
|
||||
@@ -119,6 +127,7 @@ const openDoor = () => {
|
||||
uni.hideLoading()
|
||||
uni.showToast({ title: err.msg || '开门失败', icon: 'none' })
|
||||
})
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user