feat(escort): 微信支付入口与取消状态展示

- 下单改为提交预约后弹窗选择支付方式,默认微信支付
- 预约详情支持发起微信支付、查单确认与待支付期间切换支付方式
- 预约列表展示支付渠道、待支付/超时状态并提供去支付入口
- 取消状态与 status 解耦,展示状态优先取 cancelStatus
- 详情页医院选择回传字段同步移除 manual
This commit is contained in:
lik
2026-11-05 18:55:18 +08:00
parent f70a8f8b72
commit 8eb7bc9e7a
11 changed files with 627 additions and 90 deletions
+3
View File
@@ -25,6 +25,9 @@ const API = {
updateRecord: (id, data) => request.put(`/health/escort-record/${id}`, data),
updateStatus: (id, data) => request.patch(`/health/escort-record/${id}/status`, data),
deleteRecord: (id) => request.delete(`/health/escort-record/${id}`),
// 微信支付:发起支付返回调起收银台参数;支付结果以后端查单为准
payOrder: (id) => request.post(`/health/escort-record/${id}/pay`),
getPayStatus: (id) => request.get(`/health/escort-record/${id}/pay/status`),
// 陪诊师公示列表(公开接口,后端已做脱敏)
getAttendants: (params) => request.get('/health/attendant', params),
// 单个陪诊师详情,同一份白名单数据