Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Lingyun_Winter_Vacation_project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡雅丽
Lingyun_Winter_Vacation_project
Commits
cc749fb4
Commit
cc749fb4
authored
Feb 26, 2022
by
[username]
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
1adeeb1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
登录/登录注册页面/library_login_register.js/library_login_register.js
+14
-9
No files found.
登录/登录注册页面/library_login_register.js/library_login_register.js
View file @
cc749fb4
...
...
@@ -41,7 +41,7 @@ window.onload=function(){
}
}
axios
.
defaults
.
baseURL
=
"http://
85iunn
.natappfree.cc"
axios
.
defaults
.
baseURL
=
"http://
ztjyfa
.natappfree.cc"
// let message = new Array(3)
// message[0]={
...
...
@@ -163,7 +163,7 @@ window.alert = function(msg){
// 点击登录传入数据(学号,密码)0输入错误,
1跳转使用者,2
管理者
// 点击登录传入数据(学号,密码)0输入错误,
2跳转使用者,1
管理者
$
(
'button#login_body_button_one'
).
click
(
function
login_input
(){
let
login_stnum
=
$
(
'#login_body_input_one'
).
val
();
let
login_password
=
$
(
'#login_body_input_two'
).
val
();
...
...
@@ -178,15 +178,17 @@ $('button#login_body_button_one').click(function login_input(){
console
.
log
(
response
.
data
);
console
.
log
(
response
.
status
);
console
.
log
(
response
.
returnvalue
);
console
.
log
(
response
.
user_uuid
);
let
login_num
=
response
.
returnvalue
;
let
login_uuid
=
response
.
user_uuid
;
if
(
login_num
==
0
){
alert
(
'输入错误'
);
}
else
if
(
login_num
==
1
){
localStorage
.
setItem
(
'user_uuid'
,
login_
num
);
window
.
location
.
href
=
'../../
../使用者/item/User/User
.html'
;
localStorage
.
setItem
(
'user_uuid'
,
login_
uuid
);
window
.
location
.
href
=
'../../
管理者/html/applyBook
.html'
;
}
else
{
localStorage
.
setItem
(
'user_uuid'
,
login_
num
);
window
.
location
.
href
=
'../../
../管理者/html/applyBook
.html'
;
localStorage
.
setItem
(
'user_uuid'
,
login_
uuid
);
window
.
location
.
href
=
'../../
使用者/Item/User/User
.html'
;
}
})
})
...
...
@@ -212,7 +214,7 @@ $('button#login_body_button_one').click(function login_input(){
// });
// });
//
//
记住密码
// 记住密码
// let login_input_stnum = document.getElementById('login_body_input_one');
// let login_input_pswd = document.getElementById('login_body_input_two');
// let login_input_check = document.getElementById('remember_password');
...
...
@@ -223,7 +225,7 @@ $('button#login_body_button_one').click(function login_input(){
// if (locallogin_input_stnum !== '' && locallogin_input_pswd !== '') {
// login_input_check.setAttribute('login_input_checked', '');
// }
// let justify=-1;
//
//
let justify=-1;
// $('button#login_body_button_one').click(function(){
...
...
@@ -263,7 +265,9 @@ $('button#register_body_button_one').click(()=>{
console
.
log
(
response
.
status
);
console
.
log
(
response
.
data
.
returnvalue
);
console
.
log
(
response
.
user_uuid
);
let
register_num
=
response
.
data
.
returnvalue
;
// let register_uuid=response.user_uuid;
// console.log(register_num);
switch
(
register_num
){
case
1
:
...
...
@@ -291,6 +295,7 @@ $('button#register_body_button_one').click(()=>{
// $('span.login_body').css("display","block");
// $('span.register_body').css("display","none");
// })
// localStorage.setItem('register_uuid',register_uuid)
window
.
location
.
href
=
'./library_login_register.html'
;
break
;
case
8
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment