银联支付集成和购买插件;修改首页小区更改后获取数据;对接我的信息接口
This commit is contained in:
@@ -124,13 +124,22 @@ const openDoorClick = () => {
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
getAccessOpenData()
|
||||
uni.showToast({
|
||||
title: '正在对接硬件中...',
|
||||
icon: 'none'
|
||||
})
|
||||
// getAccessOpenData()
|
||||
}
|
||||
// 开门接口
|
||||
const getAccessOpenData = async () =>{
|
||||
uni.showLoading({
|
||||
title: '开门中...',
|
||||
mask: true
|
||||
})
|
||||
try{
|
||||
let params = {deviceId:selectedDoor.value}
|
||||
const res = await getAccessOpen(params)
|
||||
uni.hideLoading()
|
||||
if(res.code === 200){
|
||||
uni.showToast({
|
||||
title:'开门成功',
|
||||
@@ -141,8 +150,9 @@ const getAccessOpenData = async () =>{
|
||||
title:'开门失败',
|
||||
icon:"error"
|
||||
})
|
||||
}
|
||||
}
|
||||
}catch(err){
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: err.msg || '开门失败',
|
||||
icon:"none"
|
||||
|
||||
Reference in New Issue
Block a user