This commit is contained in:
Mrx
2026-06-06 17:03:19 +08:00
parent 2bf0b13891
commit bce20edd68
2 changed files with 4 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ export namespace OrderApi {
order_no: string;
platform_order_id: string;
product_name: string;
payment_platform: 'alipay' | 'appleiap' | 'wechat';
payment_platform: 'alipay' | 'appleiap' | 'wechat' | 'wechat_xpay';
payment_scene: 'app' | 'h5' | 'mini_program' | 'public_account';
amount: number;
status: 'closed' | 'failed' | 'paid' | 'pending' | 'refunded';
@@ -38,6 +38,7 @@ export namespace OrderApi {
refund_no: string;
amount: number;
}
}
/**

View File

@@ -37,6 +37,7 @@ export function useColumns<T = OrderApi.Order>(
const platformMap: Record<string, string> = {
alipay: '支付宝',
wechat: '微信支付',
wechat_xpay: '小程序虚拟支付',
appleiap: '苹果支付',
};
return platformMap[row.payment_platform] || row.payment_platform;
@@ -212,6 +213,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
options: [
{ label: '支付宝', value: 'alipay' },
{ label: '微信支付', value: 'wechat' },
{ label: '小程序虚拟支付', value: 'wechat_xpay' },
{ label: '苹果支付', value: 'appleiap' },
],
},