银联支付集成和购买插件;修改首页小区更改后获取数据;对接我的信息接口

This commit is contained in:
zhouyanli
2026-06-04 17:42:29 +08:00
parent 4d0515e5fe
commit a8e3d1f875
11 changed files with 409 additions and 324 deletions

View File

@@ -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"