From 09942f0257379c5c2dafab9d1f6bc27b8e1a8995 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Tue, 27 May 2025 18:40:02 +0800 Subject: [PATCH] feat: add cashier views --- apps/web-antd/src/views/pay/cashier/data.ts | 81 +++++++++ apps/web-antd/src/views/pay/cashier/index.vue | 172 +++++++++++++++++- .../src/views/pay/cashier/modules/form.vue | 155 ++++++++++++++++ 3 files changed, 404 insertions(+), 4 deletions(-) create mode 100644 apps/web-antd/src/views/pay/cashier/data.ts create mode 100644 apps/web-antd/src/views/pay/cashier/modules/form.vue diff --git a/apps/web-antd/src/views/pay/cashier/data.ts b/apps/web-antd/src/views/pay/cashier/data.ts new file mode 100644 index 000000000..0918a6f10 --- /dev/null +++ b/apps/web-antd/src/views/pay/cashier/data.ts @@ -0,0 +1,81 @@ +import { + SvgAlipayAppIcon, + SvgAlipayBarIcon, + SvgAlipayPcIcon, + SvgAlipayQrIcon, + SvgAlipayWapIcon, + SvgMockIcon, + SvgWalletIcon, + SvgWxAppIcon, + SvgWxBarIcon, + SvgWxLiteIcon, + SvgWxNativeIcon, + SvgWxPubIcon, +} from '@vben/icons'; + +export const channelsAlipay = [ + { + name: '支付宝 PC 网站支付', + icon: SvgAlipayPcIcon, + code: 'alipay_pc', + }, + { + name: '支付宝 Wap 网站支付', + icon: SvgAlipayWapIcon, + code: 'alipay_wap', + }, + { + name: '支付宝 App 网站支付', + icon: SvgAlipayAppIcon, + code: 'alipay_app', + }, + { + name: '支付宝扫码支付', + icon: SvgAlipayQrIcon, + code: 'alipay_qr', + }, + { + name: '支付宝条码支付', + icon: SvgAlipayBarIcon, + code: 'alipay_bar', + }, +]; +export const channelsWechat = [ + { + name: '微信公众号支付', + icon: SvgWxPubIcon, + code: 'wx_pub', + }, + { + name: '微信小程序支付', + icon: SvgWxLiteIcon, + code: 'wx_lite', + }, + { + name: '微信 App 支付', + icon: SvgWxAppIcon, + code: 'wx_app', + }, + { + name: '微信扫码支付', + icon: SvgWxNativeIcon, + code: 'wx_native', + }, + { + name: '微信条码支付', + icon: SvgWxBarIcon, + code: 'wx_bar', + }, +]; +export const channelsMock = [ + { + name: '钱包支付', + icon: SvgWalletIcon, + code: 'wallet', + }, + { + name: '模拟支付', + icon: SvgMockIcon, + code: 'mock', + }, +]; diff --git a/apps/web-antd/src/views/pay/cashier/index.vue b/apps/web-antd/src/views/pay/cashier/index.vue index fb03f41f7..df15c9e2c 100644 --- a/apps/web-antd/src/views/pay/cashier/index.vue +++ b/apps/web-antd/src/views/pay/cashier/index.vue @@ -1,7 +1,171 @@ - + diff --git a/apps/web-antd/src/views/pay/cashier/modules/form.vue b/apps/web-antd/src/views/pay/cashier/modules/form.vue new file mode 100644 index 000000000..c75ebfdcb --- /dev/null +++ b/apps/web-antd/src/views/pay/cashier/modules/form.vue @@ -0,0 +1,155 @@ + + +