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" /> - 出示码券 + 核销验证码