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