From 6107a2cbf332a14d67fa823a53c95bc1587cf29f Mon Sep 17 00:00:00 2001 From: adonis Date: Sat, 11 Jul 2026 22:31:45 +0330 Subject: [PATCH] added charge for all products 2 --- components.d.ts | 3 + src/components/BasicActionSheet.vue | 25 +- .../customer/CustomerWalletBalancePanel.vue | 532 ++++++++++++++---- src/components/mobile/MobileDetailSheet.vue | 12 +- .../composables/useHorizontalTouchScroll.ts | 69 +++ src/core/assets/css/ant-override.less | 3 +- src/core/assets/css/theme.less | 160 ++++++ src/model/dashboard.ts | 8 + .../components/DashboardProfitSplit.vue | 34 +- .../components/CustomerMobileDetailSheet.vue | 235 +++++--- .../base/components/WalletChargeForm.vue | 75 ++- .../base/components/WalletChargeModalBody.vue | 24 +- src/pages/menuPages/customers/base/index.vue | 43 +- 13 files changed, 1010 insertions(+), 213 deletions(-) create mode 100644 src/components/mobile/composables/useHorizontalTouchScroll.ts diff --git a/components.d.ts b/components.d.ts index 748a68c..2b26012 100644 --- a/components.d.ts +++ b/components.d.ts @@ -10,6 +10,7 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { _index: typeof import('./src/core/components/_sample/_index.vue')['default'] + AAlert: typeof import('ant-design-vue/es')['Alert'] AAvatar: typeof import('ant-design-vue/es')['Avatar'] ABadge: typeof import('ant-design-vue/es')['Badge'] AButton: typeof import('ant-design-vue/es')['Button'] @@ -42,6 +43,7 @@ declare module '@vue/runtime-core' { APagination: typeof import('ant-design-vue/es')['Pagination'] APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] APopover: typeof import('ant-design-vue/es')['Popover'] + ARadio: typeof import('ant-design-vue/es')['Radio'] ARadioButton: typeof import('ant-design-vue/es')['RadioButton'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARow: typeof import('ant-design-vue/es')['Row'] @@ -56,6 +58,7 @@ declare module '@vue/runtime-core' { ATextarea: typeof import('ant-design-vue/es')['Textarea'] ATimePicker: typeof import('ant-design-vue/es')['TimePicker'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] + AUpload: typeof import('ant-design-vue/es')['Upload'] BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default'] BaseCard: typeof import('./src/core/components/BaseCard/index.ts')['default'] BaseCollapse: typeof import('./src/components/BaseCollapse.vue')['default'] diff --git a/src/components/BasicActionSheet.vue b/src/components/BasicActionSheet.vue index 72d12fc..01018bd 100644 --- a/src/components/BasicActionSheet.vue +++ b/src/components/BasicActionSheet.vue @@ -60,6 +60,9 @@
+
+

{{ title }}

+
@@ -167,7 +170,8 @@ function handleOk() { .basic-action-sheet { .ant-drawer-content { border-radius: 16px 16px 0 0; - overflow: hidden; + overflow-x: visible; + overflow-y: hidden; } .ant-drawer-body { @@ -185,10 +189,27 @@ function handleOk() { .basic-action-sheet__content { flex: 1; + min-width: 0; overflow-y: auto; padding: 0 16px 12px; } +.basic-action-sheet__header { + flex: 0 0 auto; + padding: 8px 16px 12px; + border-bottom: 1px solid var(--admin-border); + background: var(--admin-bg-elevated); +} + +.basic-action-sheet__title { + margin: 0; + color: var(--admin-text); + font-size: 1rem; + font-weight: 700; + line-height: 1.6; + text-align: right; +} + .basic-action-sheet--compact { .ant-drawer-content-wrapper { height: auto !important; @@ -209,7 +230,7 @@ function handleOk() { .basic-action-sheet__container--compact .basic-action-sheet__content { flex: 0 1 auto; - max-height: calc(88vh - 40px); + max-height: calc(88vh - 92px); } .basic-action-sheet__footer { diff --git a/src/components/customer/CustomerWalletBalancePanel.vue b/src/components/customer/CustomerWalletBalancePanel.vue index f2c44e0..017cddc 100644 --- a/src/components/customer/CustomerWalletBalancePanel.vue +++ b/src/components/customer/CustomerWalletBalancePanel.vue @@ -1,8 +1,14 @@ diff --git a/src/components/mobile/MobileDetailSheet.vue b/src/components/mobile/MobileDetailSheet.vue index 4a0f8a5..2667f9e 100644 --- a/src/components/mobile/MobileDetailSheet.vue +++ b/src/components/mobile/MobileDetailSheet.vue @@ -1,12 +1,12 @@