Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
081504ef
Commit
081504ef
authored
Mar 01, 2019
by
sunxin
Browse files
搜索注释
parent
e868564d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/templets/1/default/search.htm
View file @
081504ef
...
...
@@ -45,17 +45,19 @@ new Vue({
list
:
[],
},
methods
:
{
//上下页
search
:
function
(
flag
){
var
pageNo
=
{
ms
:
search
.
pageNo
/
};
var
total
=
{
ms
:
page
.
total
/
};
if
(
flag
){
pageNo
=
pageNo
==
total
?
total
:
pageNo
+
1
;
pageNo
=
pageNo
==
total
?
total
:
pageNo
+
1
;
//下一页
}
else
{
pageNo
=
pageNo
-
1
==
0
?
1
:
pageNo
-
1
;
pageNo
=
pageNo
-
1
==
0
?
1
:
pageNo
-
1
;
//上一页
}
window
.
location
.
href
=
"
{ms:global.host/}/cms/1/search.do?basic_title={ms:search.basic_title/}&pageNo=
"
+
pageNo
;
window
.
event
.
returnValue
=
false
;
},
//首页和尾页
indexAndLast
:
function
(
pageNo
){
window
.
location
.
href
=
"
{ms:global.host/}/cms/1/search.do?basic_title={ms:search.basic_title/}&pageNo=
"
+
pageNo
;
window
.
event
.
returnValue
=
false
;
...
...
Write
Preview
Supports
Markdown
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