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() } }