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
e27cce6e
Commit
e27cce6e
authored
Feb 25, 2022
by
郑国强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
css
parent
134429b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
前端/搜索页面/js/search.js
+12
-12
No files found.
前端/搜索页面/js/search.js
View file @
e27cce6e
class
navigation
{
class
navigation
{
...
...
@@ -168,24 +168,24 @@ class searchResult {
let
index
=
$
(
"[class*='detail_borrow']"
).
index
(
e
.
target
);
let
borrowInfor
=
{
username
:
''
,
bookname
:
''
,
borrow_date
:
''
,
Borrowing_time
:
''
,
userId
:
''
username
:
''
,
//用户名
bookname
:
''
,
//书名
borrow_date
:
''
,
//借阅日期
Borrowing_time
:
''
,
//借阅事件
}
let
fliter
=
/
[\D]
/
;
let
duration
=
/
[\d]{1,2}
/
;
borrowInfor
.
book
N
ame
=
this
.
obj
[
index
].
bookName
borrowInfor
.
book
n
ame
=
this
.
obj
[
index
].
bookName
borrowInfor
.
dat
e
=
$
(
'.detail_duration'
)[
index
].
value
;
if
(
fliter
.
test
(
borrowInfor
.
dat
e
)
===
'null'
)
{
borrowInfor
.
Borrowing_tim
e
=
$
(
'.detail_duration'
)[
index
].
value
;
if
(
fliter
.
test
(
borrowInfor
.
Borrowing_tim
e
)
===
'null'
)
{
return
alert
(
'请输入正确借阅天数'
)
}
else
if
(
borrowInfor
.
dat
e
.
match
(
duration
)[
0
]){
borrowInfor
.
date
=
borrowInfor
.
dat
e
.
match
(
duration
)[
0
];
}
else
if
(
borrowInfor
.
Borrowing_tim
e
.
match
(
duration
)[
0
]){
borrowInfor
.
Borrowing_time
=
borrowInfor
.
Borrowing_tim
e
.
match
(
duration
)[
0
];
}
borrowInfor
.
tim
e
=
getDate
();
borrowInfor
.
borrow_dat
e
=
getDate
();
borrowInfor
.
userId
=
'不知道'
;
this
.
obj
[
index
].
axiospost
({
...
...
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