From fc9dacb7c7c97230e87dff5c67602254b54ee28b Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Fri, 29 Aug 2025 11:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/new-purchase/entry/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/new-purchase/entry/index.vue b/src/pages/new-purchase/entry/index.vue index 9175fd2..51b9a2e 100644 --- a/src/pages/new-purchase/entry/index.vue +++ b/src/pages/new-purchase/entry/index.vue @@ -147,9 +147,12 @@ const rightClick = () => { // 处理扫描成功事件 const handleScanSuccessBox = (result) => { boxCode.value = result?.data?.split('?qrcode=')[1] || result?.data || '' - if (boxCode.value === '') { + if (boxCode.value == '') { uni.showToast({ title: '扫码识别失败', icon: 'none' }) - } else { + } else if(boxCode.value == '操作已取消'){ + boxCode.value = '' + uni.showToast({ title: '操作已取消', icon: 'none' }) + }else { boxInBound() } }