完善页面

This commit is contained in:
wangxiaowei
2025-09-18 17:30:41 +08:00
parent e9f804b373
commit 864c40aa3a
26 changed files with 1357 additions and 81 deletions

49
src/utils/pay.ts Normal file
View File

@ -0,0 +1,49 @@
interface PayMethod {
id: number
name: string
icon: string
balance: number
value: number,
type: string
}
// 支付方式分类
export enum PayCategory {
PlatformBalance = 'PlatformBalance', // 平台余额
StoreBalance = 'StoreBalance', // 门店余额
WeChatPay = 'WeChatPay', // 微信支付
}
export enum PayValue {
PlatformBalance = 1, // 平台余额
StoreBalance = 2, // 门店余额
WeChatPay = 3, // 微信支付
}
// 支付方式列表
export const PayList: PayMethod[] = [
{
id: 1,
name: '平台余额',
icon: 'icon/icon_platform_balance.png',
balance: 0,
value: PayValue.PlatformBalance,
type: PayCategory.PlatformBalance
},
{
id: 2,
name: '门店余额',
icon: 'icon/icon_store_balance.png',
balance: 0,
value: PayValue.StoreBalance,
type: PayCategory.StoreBalance
},
{
id: 3,
name: '微信支付',
icon: 'icon/icon_weichat.png',
balance: 0,
value: PayValue.WeChatPay,
type: PayCategory.WeChatPay
}
]