From 1b661b67f1076bc580f38604a5d3af6486f68fa5 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Mon, 17 Feb 2025 15:31:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev-local | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .env.dev-local diff --git a/.env.dev-local b/.env.dev-local new file mode 100644 index 0000000..d3add9f --- /dev/null +++ b/.env.dev-local @@ -0,0 +1,20 @@ +# port 端口号 +VITE_PORT = 8888 + +#浏览器自动打开 +VITE_OPEN = true + +# 本地环境 +ENV = 'local' + + +# ADMIN 服务地址 +VITE_ADMIN_PROXY_PATH = http://localhost:9999/ + + +# 图片访问基础地址 +VITE_IMAGE_BASE_PATH = http://localhost:9999 + + +# 代码生成服务地址 +VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 From 0d907a7e0d73cd1a833e2cb65120ed6157746864 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Mon, 17 Feb 2025 16:11:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=E9=92=B1=E5=8C=85=E5=BC=80=E5=8D=A1?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=BB=91=E5=AE=9A=E3=80=81=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet/wallet-active.ts | 16 +++++++ .../wallet/wallet-active/bind-user-form.vue | 2 +- src/views/wallet/wallet-active/index.vue | 47 +++++++++++++++++-- 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/src/api/wallet/wallet-active.ts b/src/api/wallet/wallet-active.ts index e99b093..451d0ac 100644 --- a/src/api/wallet/wallet-active.ts +++ b/src/api/wallet/wallet-active.ts @@ -1,5 +1,21 @@ import request from "/@/utils/request" +export function adminBindCard(data?: Object) { + return request({ + url: "/wallet/wallet-active/bind-card", + method: "post", + data, + }) +} + +export function cancelAdminBindCard(data?: Object) { + return request({ + url: "/wallet/wallet-active/cancel-bind-card", + method: "post", + params: data, + }) +} + export function refreshAvatar(query?: Object) { return request({ url: "/wallet/wallet-active/refresh-avatar", diff --git a/src/views/wallet/wallet-active/bind-user-form.vue b/src/views/wallet/wallet-active/bind-user-form.vue index a993ceb..d937c2a 100644 --- a/src/views/wallet/wallet-active/bind-user-form.vue +++ b/src/views/wallet/wallet-active/bind-user-form.vue @@ -65,7 +65,7 @@ const onSubmit = async () => { if (!valid) return false try { loading.value = true - // fastCreateCard(form) + await walletActiveApi.adminBindCard(form) useMessage().success("绑定成功") visible.value = false emit("refresh") diff --git a/src/views/wallet/wallet-active/index.vue b/src/views/wallet/wallet-active/index.vue index 581a0f9..5b8c764 100644 --- a/src/views/wallet/wallet-active/index.vue +++ b/src/views/wallet/wallet-active/index.vue @@ -74,10 +74,33 @@