Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YunQi-Front-end
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
王家齐
YunQi-Front-end
Commits
1b55e33c
Commit
1b55e33c
authored
Feb 26, 2022
by
郑国强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
382986ca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
31 deletions
+39
-31
前端/搜索页面/css/public.css
+2
-2
前端/搜索页面/css/search.css
+7
-5
前端/搜索页面/js/search.js
+17
-11
前端/搜索页面/search.html
+13
-13
No files found.
前端/搜索页面/css/public.css
View file @
1b55e33c
body
{
body
{
...
@@ -36,7 +36,7 @@ header {
...
@@ -36,7 +36,7 @@ header {
color
:
#fff
;
color
:
#fff
;
}
}
.nav_user
:hover
{
.nav_user
:hover
{
color
:
rgb
(
49
,
68
,
94
);
/* color: rgb(49, 68, 94); */
}
}
.nav_main
{
.nav_main
{
...
...
前端/搜索页面/css/search.css
View file @
1b55e33c
.sear
ch_logo
,
.sear
ch_logo
,
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
margin-top
:
10px
;
margin-top
:
10px
;
width
:
845px
;
width
:
845px
;
height
:
66px
;
height
:
66px
;
border-radius
:
20px
;
/*
border-radius: 20px;
border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
border-top-left-radius
:
0
;
border-top-left-radius: 0;
*/
font-size
:
30px
;
font-size
:
30px
;
line-height
:
66px
;
line-height
:
66px
;
padding
:
10px
;
padding
:
10px
;
...
@@ -50,9 +50,11 @@
...
@@ -50,9 +50,11 @@
position
:
absolute
;
position
:
absolute
;
left
:
85%
;
left
:
85%
;
top
:
77%
;
top
:
77%
;
width
:
1
54
px
;
width
:
1
00
px
;
height
:
66px
;
height
:
66px
;
border-radius
:
20px
;
border-radius
:
15px
;
border-top-left-radius
:
0px
;
border-bottom-left-radius
:
0px
;
background-image
:
url(../image/search_logo.png)
;
background-image
:
url(../image/search_logo.png)
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-color
:
#4072b8
;
background-color
:
#4072b8
;
...
...
前端/搜索页面/js/search.js
View file @
1b55e33c
class
navigation
{
class
navigation
{
...
@@ -77,7 +77,7 @@ checkMenu(e,bool){
...
@@ -77,7 +77,7 @@ checkMenu(e,bool){
let
axiosget
=
axios
.
create
({
let
axiosget
=
axios
.
create
({
baseURL
:
'http://nhtdfz.natappfree.cc/test//sendborrowapplication'
,
baseURL
:
'http://nhtdfz.natappfree.cc/test//sendborrowapplication'
,
timeout
:
3000
,
timeout
:
3000
,
method
:
'
ge
t'
method
:
'
pos
t'
});
});
// new navigation(obj);
// new navigation(obj);
let
obj
=
[
let
obj
=
[
...
@@ -122,7 +122,7 @@ new navigation(obj);
...
@@ -122,7 +122,7 @@ new navigation(obj);
function
getDate
(){
function
getDate
(){
let
time
=
new
Date
();
let
time
=
new
Date
();
return
`
${
time
.
getFullYear
()}
-
${
time
.
getMonth
()}
-
${
time
.
getDate
()}
${
time
.
getHours
()}
:
${
time
.
getMinutes
()}
:
${
time
.
getSeconds
()}
`
return
`
${
time
.
getFullYear
()}
-
${
time
.
getMonth
()}
-
${
time
.
getDate
()}
${
time
.
getHours
()}
:
${
time
.
getMinutes
()}
:
${
time
.
getSeconds
()}
`
}
}
...
@@ -170,8 +170,8 @@ class searchResult {
...
@@ -170,8 +170,8 @@ class searchResult {
let
index
=
$
(
"[class*='detail_btn']"
).
index
(
e
.
target
);
let
index
=
$
(
"[class*='detail_btn']"
).
index
(
e
.
target
);
let
borrowInfor
=
{
let
borrowInfor
=
{
username
:
'
张三
'
,
//用户名
username
:
'
zhangshuai2021005731
'
,
//用户名
bookid
:
''
,
bookid
:
'
1
'
,
// bookname:'', //书名
// bookname:'', //书名
borrow_date
:
''
,
//借阅日期
borrow_date
:
''
,
//借阅日期
time
:
''
//借阅时间
time
:
''
//借阅时间
...
@@ -193,7 +193,8 @@ class searchResult {
...
@@ -193,7 +193,8 @@ class searchResult {
let
number
=
borrowInfor
.
time
.
match
(
duration
)[
0
];
let
number
=
borrowInfor
.
time
.
match
(
duration
)[
0
];
if
(
number
>
0
&&
number
<
30
){
if
(
number
>
0
&&
number
<
30
){
borrowInfor
.
time
=
number
;
borrowInfor
.
time
=
number
;
// console.log(borrowInfor.time);
// console.log(10);
}
else
{
}
else
{
alert
(
'请输入有效借阅时长'
);
alert
(
'请输入有效借阅时长'
);
return
;
return
;
...
@@ -201,16 +202,20 @@ class searchResult {
...
@@ -201,16 +202,20 @@ class searchResult {
}
}
borrowInfor
.
borrow_date
=
getDate
();
borrowInfor
.
borrow_date
=
getDate
();
borrowInfor
.
bookid
=
this
.
obj
[
index
].
id
;
borrowInfor
.
bookid
=
this
.
obj
[
index
].
id
;
borrowInfor
.
bookid
=
"1"
;
console
.
log
(
borrowInfor
)
// console.log(borrowInfor.bookid)
axiosget
({
axiosget
({
// menthod:'get',
menthod
:
'get'
,
data
:
borrowInfor
data
:
borrowInfor
}).
then
(
response
=>
{
}).
then
(
response
=>
{
alert
(
'申请成功!请等待管理员同意后取书'
)
console
.
log
(
response
);
alert
(
response
.
data
.
message
)
},
reason
=>
{
},
reason
=>
{
alert
(
"拒绝"
);
alert
(
reason
.
data
.
message
)
})
})
})
})
...
@@ -374,6 +379,7 @@ let axiospost = axios.create({
...
@@ -374,6 +379,7 @@ let axiospost = axios.create({
result.remove();
result.remove();
}
}
let obj2 = response.data;
let obj2 = response.data;
console.log(obj2);
result = new searchResult(obj2);
result = new searchResult(obj2);
},reason=>{
},reason=>{
...
...
前端/搜索页面/search.html
View file @
1b55e33c
<!DOC
TYPE html>
<!DOC
TYPE html>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<nav
class=
"nav"
>
<nav
class=
"nav"
>
<div
class=
"nav_left"
>
<div
class=
"nav_left"
>
<img
class=
'little-logo'
src=
"image/little-logo.png"
alt=
"little-logo"
>
<img
class=
'little-logo'
src=
"image/little-logo.png"
alt=
"little-logo"
>
<span
class=
"nav_user"
>
欢迎进入,
云顶书库
</span>
<span
class=
"nav_user"
>
欢迎进入,
xxx
</span>
</div>
</div>
...
@@ -48,24 +48,24 @@
...
@@ -48,24 +48,24 @@
<span>
联系电话:0106868088
</span>
<span>
联系电话:0106868088
</span>
<ul>
<ul>
<li><a
href=
""
>
云顶书院官网
</a></li>
<li><a
href=
""
>
云顶书院官网
</a></li>
<li><a
href=
""
>
云顶书院官网
</a></li>
<li><a
href=
""
>
关于我们
</a></li>
<li><a
href=
""
>
云顶
</a></li>
<li><a
href=
""
>
联系我们
</a></li>
<li><a
href=
""
>
云顶书院
</a></li>
<li><a
href=
""
>
版权声明
</a></li>
<li><a
href=
""
>
云顶书院
</a></li>
<li><a
href=
""
>
投诉举报
</a></li>
</ul>
</ul>
</div>
</div>
<div
class=
"footer-item"
>
<div
class=
"footer-item"
>
<span>
联系电话:0106868088
</span>
<span>
官方邮箱:0s_beyond_clouds@163.com
</span>
<ul>
<ul>
<li><a
href=
""
>
云顶书院官网
</a></li>
<li><a
href=
""
>
代码托管平台
</a></li>
<li><a
href=
""
>
云顶书院官网
</a></li>
<li><a
href=
""
>
加入我们
</a></li>
<li><a
href=
""
>
云顶
</a></li>
<li><a
href=
""
>
商务合作
</a></li>
<li><a
href=
""
>
云顶书院
</a></li>
<li><a
href=
""
>
用户协议
</a></li>
<li><a
href=
""
>
云顶书院
</a></li>
<li><a
href=
""
>
意见反馈
</a></li>
</ul>
</ul>
</div>
</div>
<div
class=
"footer-item"
>
<div
class=
"footer-item"
>
<span>
联系电话:0106868088
</span>
<span>
Copyright ◎2019云开源社区All Rights Reserved · 晋ICP备 18010660号-2
</span>
<ul>
<ul>
<li><a
href=
""
>
营业执照
</a></li>
<li><a
href=
""
>
营业执照
</a></li>
<li><a
href=
""
>
网络文化经营许可证
</a></li>
<li><a
href=
""
>
网络文化经营许可证
</a></li>
...
...
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