From 2aee9c9e9706d36224020e96fe078c20184dc7ad Mon Sep 17 00:00:00 2001
From: hzj <1304805162@qq.com>
Date: Tue, 9 Sep 2025 10:36:35 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BF=94=E5=9B=9E?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E9=9D=9E=E9=80=80=E5=87=BA=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BF=AE=E5=A4=8D=E9=A6=96?=
=?UTF-8?q?=E9=A1=B5=E6=9C=AA=E8=8E=B7=E5=8F=96token=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=20feat:=20=E6=96=B0=E5=A2=9E=E5=B9=B6=E5=BC=95?=
=?UTF-8?q?=E5=85=A5=E8=8E=B7=E5=8F=96BD=E5=92=8Cagency=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=EF=BC=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/userInfo.js | 34 +++++++--
src/views/AdminCenter.vue | 149 +++++++++++++++++++++++++++-----------
2 files changed, 134 insertions(+), 49 deletions(-)
diff --git a/src/api/userInfo.js b/src/api/userInfo.js
index e1138ac..216ba4a 100644
--- a/src/api/userInfo.js
+++ b/src/api/userInfo.js
@@ -1,12 +1,12 @@
-import { get, post } from "../utils/http.js";
+import { get, post } from '../utils/http.js';
export const searchUser = async (userId) => {
try {
const response = await get(`/user/user-profile/search?account=${userId}`);
return response;
} catch (error) {
- console.error("Failed to fetch search user:", error);
- console.error("error:" + error.response.errorMsg);
+ console.error('Failed to fetch search user:', error);
+ console.error('error:' + error.response.errorMsg);
throw error;
}
};
@@ -19,8 +19,32 @@ export const searchPayRechargeUser = async (params) => {
);
return response;
} catch (error) {
- console.error("Failed to fetch search pay recharge user:", error);
- console.error("error:" + error.response.errorMsg);
+ console.error('Failed to fetch search pay recharge user:', error);
+ console.error('error:' + error.response.errorMsg);
+ throw error;
+ }
+};
+
+// 获取BD列表
+export const getBDList = async (userId) => {
+ try {
+ const response = await get(`/team/bd/page?sysOrigin=LIKEI&userId=${userId}`);
+ return response;
+ } catch (error) {
+ console.error('Failed to fetch get BD list:', error);
+ console.error('error:' + error.response.errorMsg);
+ throw error;
+ }
+};
+
+// 获取金币代理列表
+export const getAgencyList = async (data) => {
+ try {
+ const response = await post(`/wallet/freight-gold/client/pageFreight`, data);
+ return response;
+ } catch (error) {
+ console.error('Failed to fetch get agency list:', error);
+ console.error('error:' + error.response.errorMsg);
throw error;
}
};
diff --git a/src/views/AdminCenter.vue b/src/views/AdminCenter.vue
index 0c96be0..3694954 100644
--- a/src/views/AdminCenter.vue
+++ b/src/views/AdminCenter.vue
@@ -1,6 +1,6 @@
-
+
Send
@@ -88,6 +88,8 @@
+
+
@@ -158,24 +160,26 @@