完善页面
This commit is contained in:
49
src/utils/pay.ts
Normal file
49
src/utils/pay.ts
Normal 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
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user