From b0473d99960d9ef07248a8ba41338524ff4ae61e Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 26 Jan 2026 20:38:32 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=B8=8A=E5=88=86=E7=BB=84=E4=BB=B6=E5=8F=8A?= =?UTF-8?q?=E5=85=B6=E5=9C=A8=E7=94=A8=E6=88=B7=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pnpm-lock.yaml | 12 +- src/components/upload/index.vue | 47 +++--- src/service/api/client.ts | 1 - src/typings/components.d.ts | 8 + .../components/adjust-wallet-with-file.vue | 150 ++++++++++++++++++ src/views/user/index.vue | 18 ++- 7 files changed, 202 insertions(+), 36 deletions(-) create mode 100644 src/views/user/components/adjust-wallet-with-file.vue diff --git a/package.json b/package.json index 2c7a65c..0e0358d 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@better-scroll/core": "2.5.1", "@elysiajs/eden": "^1.4.5", "@iconify/vue": "5.0.0", - "@riwa/api-types": "http://192.168.1.2:9538/api/capp-eden-0.0.43.tgz", + "@riwa/api-types": "http://192.168.1.2:9538/api/capp-eden-0.0.44.tgz", "@sa/axios": "workspace:*", "@sa/color": "workspace:*", "@sa/hooks": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3db1d45..97980fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: 5.0.0 version: 5.0.0(vue@3.5.25(typescript@5.9.3)) '@riwa/api-types': - specifier: http://192.168.1.2:9538/api/capp-eden-0.0.43.tgz - version: '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.43.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))' + specifier: http://192.168.1.2:9538/api/capp-eden-0.0.44.tgz + version: '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.44.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))' '@sa/axios': specifier: workspace:* version: link:packages/axios @@ -496,9 +496,9 @@ packages: '@borewit/text-codec@0.1.1': resolution: {integrity: sha512-5L/uBxmjaCIX5h8Z+uu+kA9BQLkc/Wl06UGR5ajNRxu+/XjonB5i8JpgFMrPj3LXTCPA0pv8yxUvbUi+QthGGA==} - '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.43.tgz': - resolution: {tarball: http://192.168.1.2:9538/api/capp-eden-0.0.43.tgz} - version: 0.0.43 + '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.44.tgz': + resolution: {tarball: http://192.168.1.2:9538/api/capp-eden-0.0.44.tgz} + version: 0.0.44 peerDependencies: '@elysiajs/eden': ^1.4.6 @@ -4871,7 +4871,7 @@ snapshots: '@borewit/text-codec@0.1.1': {} - '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.43.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': + '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.44.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': dependencies: '@elysiajs/eden': 1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)) diff --git a/src/components/upload/index.vue b/src/components/upload/index.vue index 1fa1f1a..06c606c 100644 --- a/src/components/upload/index.vue +++ b/src/components/upload/index.vue @@ -1,14 +1,12 @@ + + + + diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 625edf9..8f47730 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -15,6 +15,7 @@ import Ledger from './components/ledger.vue'; import Deposit from './components/deposit.vue'; import Subscription from './components/subscription.vue'; import AdjustWallet from './components/adjust-wallet.vue'; +import AdjustWalletWithFile from './components/adjust-wallet-with-file.vue'; const dialog = useDialog(); const message = useMessage(); @@ -294,6 +295,20 @@ function handleAdjustWallet() { }) }); } + +function handleAdjustWalletWithFile() { + const d = dialog.create({ + title: '文件导入上分', + showIcon: false, + style: { width: '600px' }, + content: () => + h(AdjustWalletWithFile, { + onClose: () => { + d.destroy(); + } + }) + }); +}