智能柜开门拒绝授权

This commit is contained in:
weiwei committed 2025-04-17 14:34:42 +08:00
1 parent 3a5eae8646
commit 587858fc74
4 files changed
+92 -81

No files matched your search

+7 -6
View File
@@ -82,7 +82,8 @@
height="800rpx"
cancelText="拒绝"
confirmText="同意"
@confirm="appAuthHardDoorConfirm"
@confirm="appAuthHardDoor(1)"
@cancel="appAuthHardDoor(0)"
>
<tm-text color="#999999">{{ state.authDesc }}</tm-text>
</tm-modal>
@@ -166,16 +167,16 @@ const openDoor = async () => {
// 支付方式tab改变
const payMethodTabChange = (e: number) => {}
// 确认协议
const appAuthHardDoorConfirm = async () => {
// 确认或拒绝协议
const appAuthHardDoor = async (type: 1 | 0) => {
try {
uni.showLoading({ title: "授权中", mask: true })
uni.showLoading({ title: type ? "授权中" : "加载中", mask: true })
const res = await hardApi.appAuthHardDoor({
authId: state.authId,
authStatus: 1,
authStatus: type ? 1 : 0,
})
if (res.code == 0) {
uni.showToast({ title: "授权成功", icon: "none" })
if (type) uni.showToast({ title: "授权成功", icon: "none" })
state.show = false
}
} catch (error: any) {