From 85c5296cefff609a8a44c026a1a878bb37f630fc Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Fri, 15 Aug 2025 16:43:24 +0800
Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A2=84=E7=BA=A60.2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/personalCenter/index.js | 14 ++++++++++++++
pages/personalCenter/myAppointment.vue | 21 +++++++++++----------
2 files changed, 25 insertions(+), 10 deletions(-)
diff --git a/api/personalCenter/index.js b/api/personalCenter/index.js
index 6f909c4..a798fa7 100644
--- a/api/personalCenter/index.js
+++ b/api/personalCenter/index.js
@@ -43,6 +43,20 @@ export function getAppointmentQRCode(id) {
})
}
+/**
+ * 核销验证码
+ * @param {string} subscribeId - 预约ID
+ * @returns {Promise} 返回核销结果
+ */
+export function verifyAppointmentCode(subscribeId) {
+ return get('/app/subscribe/verifiedCode', {
+ subscribeId: subscribeId
+ }, {
+ timeout: 10000,
+ showLoading: true,
+ })
+}
+
/**
* 获取用户信息
* @returns {Promise} 返回用户信息
diff --git a/pages/personalCenter/myAppointment.vue b/pages/personalCenter/myAppointment.vue
index 1749fd4..6593a64 100644
--- a/pages/personalCenter/myAppointment.vue
+++ b/pages/personalCenter/myAppointment.vue
@@ -68,7 +68,7 @@
mode="aspectFit"
src="https://api.ccttiot.com/image-1755237410755.png"
/>
- 出示码券
+ 核销验证码