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 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 @@