From 89380e6260a75d1d3b94de687ebcc2f50d50659d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 03 Feb 2026 15:44:33 +0800
Subject: [PATCH] feat:环境变量配置调整

---
 uniapps/work-wx/src/api/user/index.js |   97 +++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 82 insertions(+), 15 deletions(-)

diff --git a/uniapps/work-wx/src/api/user/index.js b/uniapps/work-wx/src/api/user/index.js
index 7597dc1..1a417ed 100644
--- a/uniapps/work-wx/src/api/user/index.js
+++ b/uniapps/work-wx/src/api/user/index.js
@@ -26,7 +26,7 @@
 // 用户登录接口
 export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => {
   return request({
-    url: '/blade-auth/oauth/token',
+    url: '/auth/login',
     method: 'post',
     header: {
       'Tenant-Id': tenantId,
@@ -35,29 +35,31 @@
       'Captcha-Key': key,
       'Captcha-Code': code,
     },
-    params: {
+    data: {
       tenantId,
       username,
       password,
+      checkCode:'',
+      mobile: false,
       grant_type: 'password',
       scope: 'all',
       type,
     },
   })
 }
-export const getUserInfo = () => {
-  return request({
-    url: '/blade-system/user/info',
-    method: 'get',
-  });
-};
-export const updateInfo = row => {
-  return request({
-    url: '/blade-system/user/update-info',
-    method: 'post',
-    data: row,
-  });
-};
+// export const getUserInfo = () => {
+//   return request({
+//     url: '/blade-system/user/info',
+//     method: 'get',
+//   });
+// };
+// export const updateInfo = row => {
+//   return request({
+//     url: '/blade-system/user/update-info',
+//     method: 'post',
+//     data: row,
+//   });
+// };
 export const updatePassword = (oldPassword, newPassword, newPassword1) => {
   return request({
     url: '/blade-system/user/update-password',
@@ -70,6 +72,24 @@
   });
 };
 
+// 微信登录接口
+export const loginByWechat = (code) => {
+  return request({
+    url: '/blade-auth/oauth/token',
+    method: 'post',
+    header: {
+      'Tenant-Id': '000000',
+    },
+    params: {
+      tenantId: '000000',
+      code,
+      grant_type: 'wechat',
+      scope: 'all',
+      type: 'wechat',
+    },
+  });
+};
+
 // 发送通话信息
 export const sendVoiceCallApi = (data) => {
   return request({
@@ -78,3 +98,50 @@
     data
   })
 }
+
+export const getUserInfo = () => {
+  return request({
+    url: '/system/user/getInfo',
+    method: 'get',
+  });
+};
+export const updateInfo = row => {
+  return request({
+    url: '/system/user/profile/update',
+    method: 'post',
+    data: row,
+  });
+};
+
+/** 发送重置密码验证码 */
+export const sendResetCode = (phone) => {
+  return request({
+    url: `/system/verificationCode/resetCode/${phone}`,
+    method: 'get',
+  });
+};
+
+/** 根据验证码重置密码 */
+export const resetPassword = (data) => {
+  return request({
+    url: '/system/user/retrievePassword',
+    method: 'post',
+    data: data,
+  });
+};
+
+export const registerUser = (data) => {
+  return request({
+    url: `/system/user/register`,
+    method: 'post',
+    data: data,
+  });
+};
+
+// 验证码
+export const registerSendCodeApi = (phone) => {
+  return request({
+    url: `/system/verificationCode/registerSendCode/${phone}`,
+    method: 'get'
+  })
+}

--
Gitblit v1.9.3