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
1b47e872
Commit
1b47e872
authored
Feb 26, 2022
by
tzn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSG
parent
b3467f86
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
82 additions
and
136 deletions
+82
-136
管理者/css/history.css
+7
-7
管理者/css/timeoutHint.css
+10
-21
管理者/html/applyBook.html
+2
-2
管理者/html/history.html
+5
-3
管理者/html/lookBook.html
+2
-2
管理者/html/returnBook.html
+2
-2
管理者/html/timeputHInt.html
+5
-2
管理者/js/applyBook.js
+2
-2
管理者/js/history.js
+34
-32
管理者/js/lookBook.js
+5
-25
管理者/js/returnBook.js
+2
-2
管理者/js/timeoutHint.js
+6
-36
No files found.
管理者/css/history.css
View file @
1b47e872
...
...
@@ -233,10 +233,10 @@ nav ul li ul li:hover
.book_id
{
float
:
left
;
width
:
8
0px
;
width
:
12
0px
;
height
:
36px
;
line-height
:
43px
;
padding
:
0
30
px
0
5px
;
padding
:
0
5
px
0
5px
;
transition
:
all
0.5s
;
}
.book_id
:hover
...
...
@@ -250,7 +250,7 @@ nav ul li ul li:hover
width
:
150px
;
height
:
36px
;
line-height
:
43px
;
padding
:
0
20px
0
3
5px
;
padding
:
0
20px
0
2
5px
;
transition
:
all
0.5s
;
}
.borrow_time
:hover
...
...
@@ -264,7 +264,7 @@ nav ul li ul li:hover
width
:
81px
;
height
:
36px
;
line-height
:
43px
;
padding
:
0
0
0
7
0px
;
padding
:
0
0
0
5
0px
;
transition
:
all
0.5s
;
}
.user_name
:hover
...
...
@@ -275,10 +275,10 @@ nav ul li ul li:hover
.return_time
{
float
:
left
;
width
:
1
5
0px
;
width
:
1
8
0px
;
height
:
36px
;
line-height
:
43px
;
padding
:
0
20px
0
4
5px
;
padding
:
0
15px
0
3
5px
;
transition
:
all
0.5s
;
}
...
...
管理者/css/timeoutHint.css
View file @
1b47e872
...
...
@@ -214,6 +214,7 @@ nav ul li ul li:hover
/* 按钮 */
.hint
{
...
...
@@ -246,10 +247,10 @@ nav ul li ul li:hover
/* 主体部分 */
#main
{
overflow-y
:
scroll
;
width
:
1050px
;
height
:
812px
;
margin-left
:
430px
;
overflow-y
:
scroll
;
}
.item
{
...
...
@@ -258,6 +259,7 @@ nav ul li ul li:hover
font-size
:
27px
;
color
:
#fff
;
margin
:
30px
0
55px
0
;
}
.part
{
...
...
@@ -271,7 +273,7 @@ nav ul li ul li:hover
.book_name
{
float
:
left
;
width
:
2
50px
;
width
:
3
50px
;
text-align
:
center
;
height
:
36px
;
text-overflow
:
ellipsis
;
...
...
@@ -289,10 +291,10 @@ nav ul li ul li:hover
.book_id
{
float
:
left
;
width
:
8
0px
;
width
:
10
0px
;
height
:
36px
;
line-height
:
43px
;
padding
:
0
30px
0
35
px
;
padding
:
0
30px
0
57
px
;
transition
:
all
0.5s
;
}
.book_id
:hover
...
...
@@ -300,21 +302,8 @@ nav ul li ul li:hover
transform
:
translateY
(
-5px
);
box-shadow
:
0
20px
80px
rgba
(
48
,
49
,
51
,
0.15
);
}
.borrow_time
{
float
:
left
;
width
:
150px
;
height
:
36px
;
line-height
:
43px
;
padding
:
0
20px
0
20px
;
transition
:
all
0.5s
;
}
.borrow_time
:hover
{
transform
:
translateY
(
-5px
);
box-shadow
:
0
20px
80px
rgba
(
48
,
49
,
51
,
0.15
);
}
.user_name
#user_name
{
float
:
left
;
width
:
81px
;
...
...
@@ -323,7 +312,7 @@ nav ul li ul li:hover
padding
:
0
0
0
50px
;
transition
:
all
0.5s
;
}
.
user_name
:hover
#
user_name
:hover
{
transform
:
translateY
(
-5px
);
box-shadow
:
0
20px
80px
rgba
(
48
,
49
,
51
,
0.15
);
...
...
管理者/html/applyBook.html
View file @
1b47e872
<!DOC
TYPE html>
<!DOC
TYPE html>
...
...
@@ -24,7 +24,7 @@
<ul>
<li><a
href=
"../html/applyBook.html"
>
申请管理
</a></li>
<li><a
href=
"../html/returnBook.html"
>
还书管理
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
提示
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
情况
</a></li>
</ul>
</li>
<li
class=
"nav-li"
><a
href=
"../html/lookBook.html"
>
浏览书籍
</a></li>
...
...
管理者/html/history.html
View file @
1b47e872
<!DOC
TYPE html>
<!DOC
TYPE html>
...
...
@@ -24,7 +24,7 @@
<ul>
<li
class=
"menu-item"
><a
href=
"../html/applyBook.html"
>
申请管理
</a></li>
<li
class=
"menu-item"
><a
href=
"../html/returnBook.html"
>
还书管理
</a></li>
<li
class=
"menu-item"
><a
href=
"../html/timeputHInt.html"
>
超时
提示
</a></li>
<li
class=
"menu-item"
><a
href=
"../html/timeputHInt.html"
>
超时
情况
</a></li>
</ul>
</li>
<li
class=
"nav-li"
><a
href=
"../html/lookBook.html"
>
浏览书籍
</a></li>
...
...
@@ -49,6 +49,7 @@
</div>
</body>
<script
src=
"https://unpkg.com/axios/dist/axios.min.js"
></script>
<script
type=
"text/javascript"
src=
"http://cdn.staticfile.org/jquery/3.4.0/jquery.js"
></script>
<script
src=
"../js/history.js"
></script>
</html>
\ No newline at end of file
管理者/html/lookBook.html
View file @
1b47e872
<!DOC
TYPE html>
<!DOC
TYPE html>
...
...
@@ -24,7 +24,7 @@
<ul>
<li><a
href=
"../html/applyBook.html"
>
申请管理
</a></li>
<li><a
href=
"../html/returnBook.html"
>
还书管理
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
提示
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
情况
</a></li>
</ul>
</li>
<li
class=
"nav-li"
><a
href=
"../html/lookBook.html"
>
浏览书籍
</a></li>
...
...
管理者/html/returnBook.html
View file @
1b47e872
<!DOC
TYPE html>
<!DOC
TYPE html>
...
...
@@ -24,7 +24,7 @@
<ul>
<li><a
href=
"../html/applyBook.html"
>
申请管理
</a></li>
<li><a
href=
"../html/returnBook.html"
>
还书管理
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
提示
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
情况
</a></li>
</ul>
</li>
<li
class=
"nav-li"
><a
href=
"../html/lookBook.html"
>
浏览书籍
</a></li>
...
...
管理者/html/timeputHInt.html
View file @
1b47e872
<!DOC
TYPE html>
<!DOC
TYPE html>
...
...
@@ -24,7 +24,7 @@
<ul>
<li><a
href=
"../html/applyBook.html"
>
申请管理
</a></li>
<li><a
href=
"../html/returnBook.html"
>
还书管理
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
提示
</a></li>
<li><a
href=
"../html/timeputHInt.html"
>
超时
情况
</a></li>
</ul>
</li>
<li
class=
"nav-li"
><a
href=
"../html/lookBook.html"
>
浏览书籍
</a></li>
...
...
@@ -44,5 +44,7 @@
<div
id=
"main"
>
</div>
</body>
<script
src=
"https://unpkg.com/axios/dist/axios.min.js"
></script>
<script
type=
"text/javascript"
src=
"http://cdn.staticfile.org/jquery/3.4.0/jquery.js"
></script>
<script
src=
"../js/timeoutHint.js"
></script>
</html>
\ No newline at end of file
管理者/js/applyBook.js
View file @
1b47e872
windo
w
.
onload
=
function
()
windo
w
.
onload
=
function
()
window
.
onload
=
function
()
{
axios
.
defaults
.
baseURL
=
"http://
xsvxnp
.natappfree.cc"
axios
.
defaults
.
baseURL
=
"http://
fx86f6
.natappfree.cc"
function
render
()
{
axios
({
method
:
'post'
,
...
...
管理者/js/history.js
View file @
1b47e872
windo
w
.
onload
=
function
()
windo
w
.
onload
=
function
()
window
.
onload
=
function
()
{
//axios.defaults.baseURL = "http://3hy8a3
.natappfree.cc"
axios
.
defaults
.
baseURL
=
"http://fx86f6
.natappfree.cc"
function
render
()
{
let
res
=
[{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
return_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'张三哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
remark
:
'You'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},
{
user_name
:
'李四哥'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《Java语言程序设计》'
,
user_id
:
2
},{
user_name
:
'王五姐'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C++语言程序设计》'
,
user_id
:
3
}]
let
outer
=
document
.
getElementById
(
"main"
);
let
buf
=
''
;
axios
({
method
:
'post'
,
url
:
'javaProject2_war_exploded/PrintBorrowedServlet'
,
data
:
{
click
:
1
}
}).
then
(
res
=>
{
console
.
log
(
res
.
data
)
console
.
log
(
res
.
data
[
0
].
book_name
)
let
outer
=
document
.
getElementById
(
"main"
);
let
buf
=
''
;
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
buf
+=
`
<div class="item">
<div class='part'>
<div class='book_name'>
${
res
.
data
[
i
].
book_name
}
</div>
<div class='book_id'>
${
res
.
data
[
i
].
jdid
}
-
${
res
.
data
[
i
].
bookshelf_id
}
-
${
res
.
data
[
i
].
book_same_id
}
</div>
<div class='borrow_time'>
${
res
.
data
[
i
].
borrow_time
}
</div>
<div class='return_time'>
${
res
.
data
[
i
].
return_time
}
</div>
<div id='user_name'>
${
res
.
data
[
i
].
user_name
}
</div>
</div>
</div>
`
}
outer
.
innerHTML
=
buf
;
})
}
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
buf
+=
`
<div class="item">
<div class='part'>
<div class='book_name'>
${
res
[
i
].
book_name
}
</div>
<div class='book_id'>
${
res
[
i
].
book_id
}
</div>
<div class='borrow_time'>
${
res
[
i
].
borrow_time
}
</div>
<div class='return_time'>
${
res
[
i
].
return_time
}
</div>
<div id='user_name'>
${
res
[
i
].
user_name
}
</div>
</div>
</div>
`
}
outer
.
innerHTML
=
buf
;
}
render
();
axios
({
method
:
'post'
,
url
:
'javaProject2_war_exploded/PrintBorrowedServlet'
,
data
:
{
borrow_id
:
1
}
}).
then
(
res
=>
{
console
.
log
(
res
);
});
}
管理者/js/lookBook.js
View file @
1b47e872
windo
w
.
onload
=
function
()
windo
w
.
onload
=
function
()
window
.
onload
=
function
()
{
axios
.
defaults
.
baseURL
=
"http://fx86f6.natappfree.cc"
// axios.get('').then(res=>{
let
res
=
[{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
},{
user_name
:
'王晓红'
,
book_id
:
12
,
borrow_time
:
'2022-2-19'
,
book_name
:
'《C语言程序设计》'
,
user_id
:
1
}];
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
console
.
log
(
'a'
)
...
...
@@ -17,7 +14,7 @@ window.onload = function ()
$
(
"<button class='book-introduce-Sbutton'>查看书籍</button>"
).
appendTo
(
$
(
'.book-introduce'
))
$
(
"<button class='book-introduce-Abutton'>添加</button>"
).
appendTo
(
$
(
'.book-introduce'
))
$
(
"<button class='book-introduce-Dbutton'>删除</button>"
).
appendTo
(
$
(
'.book-introduce'
))
// })
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
...
...
@@ -39,9 +36,7 @@ window.onload = function ()
})
})
}
}
document
.
getElementsByClassName
(
'book-introduce-Abutton'
)[
0
].
addEventListener
(
'click'
,()
=>
{
...
...
@@ -79,22 +74,7 @@ document.getElementsByClassName('alert-see-fix-button')[1].addEventListener('cli
$
(
'.alert-see-sure'
).
hide
();
})
axios
({
method
:
'post'
,
url
:
'javaProject2_war_exploded/AddBookServlet'
,
data
:
{
jdid
:
1
,
bookshelf_id
:
2
,
book_name
:
3
,
category
:
4
,
author
:
5
,
publisher
:
6
,
image
:
7
}
}).
then
(
res
=>
{
console
.
log
(
res
);
});
...
...
管理者/js/returnBook.js
View file @
1b47e872
windo
w
.
onload
=
function
()
windo
w
.
onload
=
function
()
window
.
onload
=
function
()
{
axios
.
defaults
.
baseURL
=
"http://
xsvxnp
.natappfree.cc"
axios
.
defaults
.
baseURL
=
"http://
fx86f6
.natappfree.cc"
function
render
()
{
axios
({
method
:
'post'
,
...
...
管理者/js/timeoutHint.js
View file @
1b47e872
windo
w
.
onload
=
function
()
windo
w
.
onload
=
function
()
window
.
onload
=
function
()
{
axios
.
defaults
.
baseURL
=
"http://
xsvxnp.natappfree.cc"
axios
.
defaults
.
baseURL
=
"http://
fx86f6.natappfree.cc"
function
render
()
{
axios
({
method
:
'post'
,
url
:
'javaProject2_war_exploded/
PrintApply
Servlet'
,
url
:
'javaProject2_war_exploded/
AllTimeOut
Servlet'
,
data
:
{
click
:
1
}
...
...
@@ -24,42 +24,12 @@ window.onload = function ()
<div class='book_id'>
${
res
.
data
[
i
].
jdid
}
-
${
res
.
data
[
i
].
bookshelf_id
}
-
${
res
.
data
[
i
].
book_same_id
}
</div>
<div id='user_name'>
${
res
.
data
[
i
].
user_name
}
</div>
</div>
<div class='reject' '>拒绝</div>
<div class='agree' '>同意</div>
<div class='hint'>已超时</div>
</div>
`
document
.
getElementById
(
'main'
).
addEventListener
(
'click'
,
(
e
)
=>
{
let
id
=
null
;
if
(
e
.
target
.
innerHTML
==
'同意'
)
{
e
.
target
.
innerHTML
=
'已同意'
;
id
=
e
.
target
.
getAttribute
(
'desc'
);
axios
({
method
:
'post'
,
url
:
'javaProject2_war_exploded/AgreeBorrowServlet'
,
data
:
{
borrow_id
:
res
.
data
[
i
].
borrow_id
}
}).
then
(
agree
=>
{
});
}
else
if
(
e
.
target
.
innerHTML
==
'拒绝'
)
{
e
.
target
.
innerHTML
=
'已拒绝'
;
axios
({
method
:
'post'
,
url
:
'javaProject2_war_exploded/RefuseBorrowServlet'
,
data
:
{
borrow_id
:
res
.
data
[
i
].
borrow_id
}
}).
then
(
res
=>
{
});
}
})
}
outer
.
innerHTML
=
buf
;
...
...
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