Commit cc749fb4 by [username]

更新

parent 1adeeb1d
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment