From ea55fc721eae712a4e7d103ba9cc569518f096f1 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Fri, 14 Jun 2024 09:35:14 +0800
Subject: [PATCH] bug修改
---
src/api/login.js | 43 ++++++++++++++++++++++++++++++++++++++-----
1 files changed, 38 insertions(+), 5 deletions(-)
diff --git a/src/api/login.js b/src/api/login.js
index 85e37b4..eb9601a 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -1,15 +1,16 @@
import request from '@/utils/request'
// 登录方法
-export function login(username, password, code, uuid) {
+export function login(username, password, code, uuid,identity) {
const data = {
username,
password,
code,
- uuid
+ uuid,
+ identity
}
return request({
- url: '/account/login',
+ url: '/system/account/login',
headers: {
isToken: false,
repeatSubmit: false
@@ -30,6 +31,14 @@
data: data
})
}
+// 编辑机构
+export function editAgency(data) {
+ return request({
+ url: `/system/user/editAgency`,
+ method: 'put',
+ data: data
+ })
+}
// 获取用户详细信息
export function getInfo() {
@@ -42,7 +51,7 @@
// 退出方法
export function logout() {
return request({
- url: '/account/logout',
+ url: '/system/account/logout',
method: 'post'
})
}
@@ -82,4 +91,28 @@
params: path,
timeout: 20000
})
-}
\ No newline at end of file
+}
+
+// 校验用户名
+export function checkUserName(data) {
+ return request({
+ url: '/system/user/checkUserNameUnique',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ data: data
+ })
+}
+
+// 校验手机号
+export function checkPhone(data) {
+ return request({
+ url: '/system/user/checkPhoneUnique',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ data: data
+ })
+}
--
Gitblit v1.9.2