新增摸大红业务并修复后台链接按钮白字

支持分类筛选、搜索、下单支付建群与固定二维码;合并迁移种子数据;后台表格编辑/详情链接恢复主题色可见。
This commit is contained in:
yml2213
2026-07-16 18:08:18 +08:00
parent 97a34e0329
commit 6d61027318
49 changed files with 9533 additions and 20 deletions
@@ -1,5 +1,6 @@
import { showDialog, showToast } from 'vant'
import type { PaymentOrder } from '@/features/orders/api/orders'
import {
paymentPayURL,
useOrderPaymentCashier,
@@ -14,7 +15,11 @@ export { paymentPayURL as mobilePaymentPayURL }
* 并处理微信 / 支付宝内嵌浏览器的直接跳转拉起支付。对外 API 名保持不变,
* Mobile 视图无需改动。
*/
export function useMobilePaymentCashier() {
export function useMobilePaymentCashier(options?: {
queryPayment?: (orderId: number) => Promise<PaymentOrder>
paidMessage?: string
}) {
function isInAppPaymentBrowser(): boolean {
if (typeof navigator === 'undefined') return false
const ua = navigator.userAgent || ''
@@ -32,9 +37,10 @@ export function useMobilePaymentCashier() {
confirmButtonText: '知道了',
})
},
paidMessage: '支付成功,正在进入群消息',
paidMessage: options?.paidMessage || '支付成功,正在进入群消息',
pollIntervalMs: 2500,
qrWidth: 220,
queryPayment: options?.queryPayment,
openExternalURL: url => {
if (isHTTPURL(url) && isInAppPaymentBrowser()) {
window.location.href = url