From fe46075f59ba775f3d772ea35da41cb3475d2de1 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 13 十一月 2023 15:43:11 +0800 Subject: [PATCH] AGV扫码 --- pages/pakin/pakin.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/pakin/pakin.vue b/pages/pakin/pakin.vue index cc5ef78..1035979 100644 --- a/pages/pakin/pakin.vue +++ b/pages/pakin/pakin.vue @@ -237,9 +237,9 @@ }, }, }); - } else if (res.code == 403) { + } else if (result.code == 403) { uni.showToast({ - title: res.msg, + title: result.msg, icon: "none", position: 'top' }) @@ -250,7 +250,7 @@ }, 1000); } else { uni.showToast({ - title: res.msg, + title: result.msg, icon: "none", position: 'top' }) @@ -404,6 +404,9 @@ that.resst(); that.messageText = "缁勬墭鎴愬姛" that.messageToggle('success') + const innerAudioContext = uni.createInnerAudioContext(); + innerAudioContext.src = '/static/music/pakinOk.mp3'; + innerAudioContext.play() } else if (res.code == 403) { that.messageText = res.msg that.messageToggle('error') @@ -495,6 +498,6 @@ z-index: 9; /* border-top: 1px solid #DCDFE6; */ text-align: center; - box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.5); + box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); } </style> -- Gitblit v1.9.1