From e6847080408955a099979e25cddd4ed1744a5858 Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期一, 22 十二月 2025 15:43:26 +0800
Subject: [PATCH] 海川开心-本地推送
---
src/api/login.js | 39 ++++++++++++++++-----------------------
1 files changed, 16 insertions(+), 23 deletions(-)
diff --git a/src/api/login.js b/src/api/login.js
index 649f59c..12d9518 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -1,27 +1,14 @@
import request from '@/utils/request'
// 鐧诲綍鏂规硶
-export function login(username, password, code, uuid) {
+export function loginCheckFactory(username, password, factoryId) {
const data = {
username,
password,
- code,
- uuid
+ factoryId
}
return request({
- url: '/login',
- headers: {
- isToken: false
- },
- method: 'post',
- data: data
- })
-}
-
-// 娉ㄥ唽鏂规硶
-export function register(data) {
- return request({
- url: '/register',
+ url: '/loginCheckFactory',
headers: {
isToken: false
},
@@ -46,14 +33,20 @@
})
}
-// 鑾峰彇楠岃瘉鐮�
-export function getCodeImg() {
+// 鑾峰彇鍏徃鍒楄〃
+export function userLoginFacotryList(params) {
return request({
- url: '/captchaImage',
- headers: {
- isToken: false
- },
+ url: '/userLoginFacotryList',
method: 'get',
- timeout: 20000
+ params: params
+ })
+}
+
+// 鑾峰彇鏈繃鏈熷叕鍛婃暟閲�
+export function noticesCount(params) {
+ return request({
+ url: '/home/noticesCount',
+ method: 'get',
+ params: params
})
}
\ No newline at end of file
--
Gitblit v1.9.3