hookehuyr

feat(api): 添加取消未支付预约单接口

新增 BILL_CANCEL_UNPAID API 端点及对应的 billCancelUnpaidAPI 函数,用于支持前端取消未支付预约单的功能。
1 /* 1 /*
2 * @Date: 2023-08-24 09:42:27 2 * @Date: 2023-08-24 09:42:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2026-01-22 09:41:23 4 + * @LastEditTime: 2026-01-30 17:04:48
5 * @FilePath: /xyxBooking-weapp/src/api/index.js 5 * @FilePath: /xyxBooking-weapp/src/api/index.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -26,6 +26,7 @@ const Api = { ...@@ -26,6 +26,7 @@ const Api = {
26 QRCODE_STATUS: '/srv/?a=api&t=qrcode_status', 26 QRCODE_STATUS: '/srv/?a=api&t=qrcode_status',
27 BILL_LIST: '/srv/?a=api&t=bill_list', 27 BILL_LIST: '/srv/?a=api&t=bill_list',
28 BILL_OFFLINE_ALL: '/srv/?a=api&t=bill_all_info', 28 BILL_OFFLINE_ALL: '/srv/?a=api&t=bill_all_info',
29 + BILL_CANCEL_UNPAID: '/srv/?a=api&t=bill_cancel_unpaid',
29 ICBC_REFUND: '/srv/?a=icbc_refund', 30 ICBC_REFUND: '/srv/?a=icbc_refund',
30 BILL_PREPARE: '/srv/?a=api&t=bill_person', 31 BILL_PREPARE: '/srv/?a=api&t=bill_person',
31 // BILL_PAY_STATUS: '/srv/?a=api&t=bill_pay_status', 32 // BILL_PAY_STATUS: '/srv/?a=api&t=bill_pay_status',
...@@ -159,6 +160,13 @@ export const billOfflineAllAPI = params => fn(fetch.get(Api.BILL_OFFLINE_ALL, pa ...@@ -159,6 +160,13 @@ export const billOfflineAllAPI = params => fn(fetch.get(Api.BILL_OFFLINE_ALL, pa
159 export const icbcRefundAPI = params => fn(fetch.post(Api.ICBC_REFUND, params)) 160 export const icbcRefundAPI = params => fn(fetch.post(Api.ICBC_REFUND, params))
160 161
161 /** 162 /**
163 + * @description: 取消未支付预约单
164 + * @param {String} pay_id 预约单ID
165 + * @returns {String}
166 + */
167 +export const billCancelUnpaidAPI = params => fn(fetch.post(Api.BILL_CANCEL_UNPAID, params))
168 +
169 +/**
162 * @description: 预约单的参观者列表 170 * @description: 预约单的参观者列表
163 * @param {String} 171 * @param {String}
164 * @returns {String} 172 * @returns {String}
......