Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xyxBooking-weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-20 17:57:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fa4cd16fb9e4ffbf5fbd984ba7d9a6be7a06f0cf
fa4cd16f
1 parent
d4d28f98
fix(verificationResult): 修复核销结果页面重复验证问题
移除不必要的验证状态重置逻辑,仅在code变化时执行核销
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
src/pages/verificationResult/index.vue
src/pages/verificationResult/index.vue
View file @
fa4cd16
<!--
* @Date: 2026-01-08 13:01:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-20 17:
36:04
* @LastEditTime: 2026-01-20 17:
54:48
* @FilePath: /xyxBooking-weapp/src/pages/verificationResult/index.vue
* @Description: 核销结果页面
-->
...
...
@@ -155,9 +155,7 @@ const verify_ticket = async (code) => {
return
}
verify_status.value = 'fail'
console.warn(res);
msg.value = res?.msg || '核销失败'
verify_info.value = {}
} catch (e) {
verify_status.value = 'fail'
msg.value = '核销失败'
...
...
@@ -182,13 +180,9 @@ useDidShow(async () => {
}
const code = router?.params?.result || ''
if (!code) {
verify_code.value = ''
verify_status.value = 'idle'
msg.value = '请点击下方按钮进行核销'
return
if (code && verify_code.value !== code) {
await verify_ticket(code)
}
await verify_ticket(code)
})
const start_scan_and_verify = () => {
...
...
Please
register
or
login
to post a comment