新增摸大红业务并修复后台链接按钮白字
支持分类筛选、搜索、下单支付建群与固定二维码;合并迁移种子数据;后台表格编辑/详情链接恢复主题色可见。
This commit is contained in:
@@ -41,6 +41,11 @@ export interface UseOrderPaymentCashierOptions {
|
||||
*/
|
||||
openExternalURL?: (url: string) => boolean
|
||||
/** 弹窗显隐控制方式。PC 用 el-dialog(v-model 一个 ref),Mobile 用 van-popup。返回 true 表示用 ref,false 表示 composable 内部 ref。 */
|
||||
/**
|
||||
* 自定义支付状态查询。默认走租号订单 `/orders/:id/query-payment`。
|
||||
* 摸大红等独立业务可注入自己的查询函数。
|
||||
*/
|
||||
queryPayment?: (orderId: number) => Promise<PaymentOrder>
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -131,7 +136,8 @@ export function useOrderPaymentCashier(options: UseOrderPaymentCashierOptions) {
|
||||
checkingPayment.value = true
|
||||
const previousPayURL = payURL.value
|
||||
try {
|
||||
const payment = await queryOrderPayment(activePayment.value.order_id)
|
||||
const query = options.queryPayment || queryOrderPayment
|
||||
const payment = await query(activePayment.value.order_id)
|
||||
activePayment.value = payment
|
||||
if (payment.paid) {
|
||||
await handlePaid()
|
||||
|
||||
Reference in New Issue
Block a user