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
f71e551e
Commit
f71e551e
authored
Nov 30, 2019
by
tianbj
Browse files
模板
parent
36247713
Changes
163
Show whitespace changes
Inline
Side-by-side
src/main/webapp/templets/1/default/people/password-change.htm
0 → 100644
View file @
f71e551e
<!DOCTYPE html>
<html>
<head>
<
#include
"/
head-file.htm
"
/>
</head>
<body>
<
#include
"/
head.htm
"
/>
<div
class=
"ms-content"
id=
"pa-change-vue"
>
<div
class=
"ms-content-main"
>
<div
class=
"ms-content-left"
>
<div
class=
"ms-content-left-info"
>
<el-upload
class=
"avatar-uploader"
action=
"{ms:global.host/}/file/upload.do"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
</el-upload>
<img
:src=
"'{ms:global.host/}/'+peopleInfo.puIcon"
onerror=
'this.src="http://cdn.mingsoft.net/global/images/msheader.png"'
>
<div
style=
"display: none;"
v-show=
"peopleInfo.puNickname!='' && peopleInfo.puNickname != undefined"
v-if=
"peopleInfo.puNickname!='' && peopleInfo.puNickname != undefined"
v-text=
"peopleInfo.puNickname"
></div>
<div
v-else
v-text=
"'暂无昵称'"
></div>
</div>
<div
class=
"ms-content-left-list"
>
<div
class=
"ms-content-left-list-info"
>
<a
href=
"{ms:global.host/}/people/center.do"
>
基本资料
</a>
</div>
<div
class=
"ms-content-left-list-pass"
>
<a
class=
'active'
href=
"{ms:global.host/}/people/password-change.do"
>
修改密码
</a>
</div>
</div>
</div>
<div
class=
"ms-content-right"
>
<div
class=
"ms-content-right-title"
>
修改密码
</div>
<div
class=
"ms-content-right-form"
style=
"width: 60%;padding-top: 30px;"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"form"
label-width=
"100px"
class=
"demo-form"
status-icon
style=
"margin-left: 15px;"
>
<el-form-item
label=
"当前密码"
prop=
"peopleOldPassword"
>
<el-input
v-model=
"form.peopleOldPassword"
placeholder=
"必填,6~20位字符"
@
blur=
"validate"
>
</el-input>
</el-form-item>
<el-form-item
label=
"新密码"
prop=
"peoplePassword"
>
<el-input
v-model=
"form.peoplePassword"
placeholder=
"必填,6~20位字符"
@
blur=
"validate"
>
</el-input>
</el-form-item>
<el-form-item
label=
"确认密码"
prop=
"rePeoplePassword"
>
<el-input
v-model=
"form.rePeoplePassword"
placeholder=
"请再次输入新密码"
@
blur=
"validate"
>
</el-input>
</el-form-item>
<el-form-item
label=
"验证码"
prop=
"rand_code"
style=
"position: relative;"
>
<el-input
v-model=
"form.rand_code"
placeholder=
"必填,4位字符"
@
blur=
"validate"
></el-input>
<div
id=
"code"
>
<img
:src=
"codeSrc"
class=
"login-code-img"
@
click=
"code"
/>
<div>
<span>
看不清?
</span>
<span
class=
"img-code"
@
click=
"code"
ref=
"imgCode"
>
换一张
</span>
</div>
</div>
</el-form-item>
<el-button
style=
"margin-left: 100px;"
type=
"primary"
@
click=
"changePassword('form')"
:disabled=
"flag"
v-text=
"submit"
>
</el-button>
</el-form>
</div>
</div>
</div>
</div>
<
#include
"/
footer.htm
"
/>
</body>
</html>
<script
type=
"text/javascript"
>
var
validatePass2
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
===
''
)
{
callback
(
new
Error
(
'
请再次输入密码
'
));
}
else
if
(
value
!==
V
.
form
.
peoplePassword
)
{
callback
(
new
Error
(
'
两次输入密码不一致!
'
));
}
else
{
callback
();
}
};
var
V
=
new
Vue
({
el
:
"
#pa-change-vue
"
,
data
:
{
// 用户信息
peopleInfo
:
""
,
//提交信息
form
:
{
peopleOldPassword
:
""
,
//用户旧密码
peoplePassword
:
""
,
//用户密码
rePeoplePassword
:
""
,
//确认密码
rand_code
:
""
},
flag
:
true
,
submit
:
"
确认
"
,
codeSrc
:
"
{ms:global.host/}/code
"
,
rules
:
{
peopleOldPassword
:
[{
required
:
true
,
message
:
'
请输入旧密码
'
,
trigger
:
'
blur
'
},
{
min
:
6
,
max
:
20
,
message
:
'
密码长度在 6 到 20 个字符
'
,
trigger
:
'
blur
'
}
],
peoplePassword
:
[{
required
:
true
,
message
:
'
请输入新密码
'
,
trigger
:
'
blur
'
},
{
min
:
6
,
max
:
20
,
message
:
'
密码长度在 6 到 20 个字符
'
,
trigger
:
'
blur
'
}
],
rePeoplePassword
:
[{
required
:
true
,
message
:
'
请输入新密码
'
,
trigger
:
'
blur
'
},
{
validator
:
validatePass2
,
trigger
:
'
blur
'
}
],
rand_code
:
[{
required
:
true
,
message
:
'
请输入验证码
'
,
trigger
:
'
blur
'
},
{
min
:
4
,
max
:
4
,
message
:
'
输入验证码位数错误
'
,
trigger
:
'
blur
'
}
]
},
},
methods
:
{
test
:
function
()
{
alert
(
1
);
},
//更改验证码
code
:
function
()
{
this
.
codeSrc
=
"
{ms:global.host/}/code?t=
"
+
(
new
Date
).
getTime
();
},
//修改密码
changePassword
:
function
(
formName
)
{
this
.
submitForm
(
formName
);
var
target
=
this
;
var
params
=
{
peopleOldPassword
:
this
.
form
.
peopleOldPassword
,
peoplePassword
:
this
.
form
.
peoplePassword
,
rePeoplePassword
:
this
.
form
.
rePeoplePassword
,
rand_code
:
this
.
form
.
rand_code
}
ms
.
people
.
changePassword
(
params
,
function
(
returnJson
)
{
if
(
returnJson
.
result
)
{
target
.
submit
=
"
提交中...
"
setTimeout
(
function
()
{
alert
(
"
密码修改成功,请重新登录
"
)
http
.
post
(
"
{ms:global.host/}/people/quit.do
"
)
location
.
href
=
"
{ms:global.host/}/mcms/login.do
"
;
},
500
)
}
else
if
(
returnJson
.
resultMsg
==
"
密码错误!
"
)
{
alert
(
'
原密码错误!
'
);
this
.
flag
=
true
;
}
else
if
(
returnJson
.
resultMsg
==
"
验证码错误!
"
)
{
alert
(
"
验证码错误!
"
);
target
.
$refs
.
imgCode
.
click
();
target
.
form
.
rand_code
=
""
,
this
.
flag
=
true
;
}
})
},
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
console
.
log
(
'
error submit!!
'
);
die
;
}
});
},
validate
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
flag
=
false
;
}
else
{
this
.
flag
=
true
;
}
});
},
handleAvatarSuccess
(
res
,
file
)
{
this
.
peopleInfo
.
puIcon
=
file
.
response
;
var
params
=
{
peopleMail
:
this
.
peopleInfo
.
peopleMail
,
puIcon
:
this
.
peopleInfo
.
puIcon
,
}
ms
.
people
.
user
.
update
(
params
,
function
(
returnJson
)
{
//更新用户信息
if
(
returnJson
.
result
)
{
alert
(
"
头像修改成功
"
);
location
.
reload
();
}
else
{
alert
(
returnJson
.
resultMsg
);
}
});
},
beforeAvatarUpload
(
file
)
{
const
isJPG
=
file
.
type
===
'
image/jpeg
'
;
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
;
if
(
!
isJPG
)
{
this
.
$message
.
error
(
'
上传头像图片只能是 JPG 格式!
'
);
}
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'
上传头像图片大小不能超过 2MB!
'
);
}
return
isJPG
&&
isLt2M
;
}
},
mounted
:
function
()
{
//获取个人信息
var
target
=
this
;
ms
.
people
.
user
.
info
(
function
(
returnJson
)
{
target
.
peopleInfo
=
returnJson
;
})
}
})
</script>
<style
type=
"text/css"
>
#code
{
position
:
absolute
;
right
:
-150px
;
top
:
0
;
height
:
40px
;
}
#code
>
.login-code-img
{
height
:
40px
;
}
#code
>
div
{
font-size
:
15px
;
display
:
inline-block
;
vertical-align
:
top
;
}
#code
>
div
>
span
{
display
:
block
;
line-height
:
1.4
;
}
#code
>
div
>
.img-code
{
cursor
:
pointer
;
color
:
#00A5FF
;
}
.avatar-uploader
.el-upload
{
border
:
none
!important
;
cursor
:
pointer
;
position
:
absolute
;
z-index
:
100
;
width
:
100px
;
height
:
100px
;
padding
:
0
!important
;
left
:
29%
;
top
:
calc
(
50%
-
10px
);
transform
:
translateY
(
-50%
);
}
.ms-content-left-info
{
position
:
relative
;
}
</style>
\ No newline at end of file
src/main/webapp/templets/1/default/people/register.htm
0 → 100644
View file @
f71e551e
<!DOCTYPE html>
<html>
<head>
<title>
注册
</title>
<meta
charset=
"utf-8"
>
<link
rel=
"stylesheet/less"
type=
"text/css"
href=
"{ms:global.host/}/{ms:global.style/}/less/login.less"
>
<link
rel=
"stylesheet/less"
type=
"text/css"
href=
"{ms:global.host/}/{ms:global.style/}/less/base.less"
>
<script
src=
"{ms:global.host/}/static/plugins/jquery/1.9.1/jquery-1.9.1.js"
></script>
<script
src=
"{ms:global.host/}/static/plugins/vue/2.3.3/vue.min.js"
></script>
<script
src=
"{ms:global.host/}/static/plugins/validator/5.5.0/validator.min.js"
></script>
<script
src=
"{ms:global.host/}/static/plugins/less/3.9.0/less.min.js"
></script>
</head>
<body>
<div
id=
"login"
>
<div
class=
"ms-head"
>
<a
href=
"{ms:global.host/}"
><img
src=
"{ms:global.host/}/{ms:global.style/}/images/logo.png"
/></a>
<span
class=
"ms-head-line"
></span>
<span
class=
"ms-head-welcome-login"
>
欢迎登录
</span>
</div>
<div
class=
"ms-content"
>
<div
class=
"ms-content-form"
id=
"ms-content-form-register"
:class=
"{'ms-none':show == 'weixin'}"
>
<div
class=
"ms-login-title"
>
<span
class=
"ms-login-chinese-title"
>
账号登录 /
</span>
<span
class=
"ms-login-english-title"
>
User Register
</span>
</div>
<div
class=
"ms-login-error-text"
>
<img
src=
"{ms:global.host/}/{ms:global.style/}/images/error.png"
style=
"display: none;"
v-show=
"errorText != ''"
/>
<span
v-text=
"errorText"
v-show=
"errorText != ''"
></span>
</div>
<form
id=
"ms-login-form"
>
<input
@
keyup=
"chanageBackgroundColor"
maxlength=
"20"
@
keyup.enter=
"login"
type=
"text"
class=
"ms-login-people-name"
:class=
"{'ms-error':error == 'peopleName'}"
name=
"peopleName"
v-model=
"peopleName"
placeholder=
"必填,6-20个字符"
@
blur=
"checkPeopleName"
/>
<input
@
keyup=
"chanageBackgroundColor"
maxlength=
"20"
@
keyup.enter=
"login"
type=
"password"
class=
"ms-login-people-name"
:class=
"{'ms-error':error == 'peoplePassword'}"
name=
"peoplePassword"
v-model=
"peoplePassword"
placeholder=
"必填,6-20个字符"
@
blur=
"checkPeoplePassword"
/>
<input
@
keyup=
"chanageBackgroundColor"
maxlength=
"20"
@
keyup.enter=
"login"
type=
"password"
name=
"rePassword"
class=
"ms-login-people-name"
:class=
"{'ms-error':error == 'rePeoplePassword'}"
v-model=
"rePeoplePassword"
placeholder=
"必填,6-20个字符,与密码一致"
@
blur=
"checkPeopleRePassword"
>
<div
class=
"login-code"
>
<input
@
keyup=
"chanageBackgroundColor"
maxlength=
"4"
@
keyup.enter=
"login"
type=
"text"
class=
"login-code-input ms-login-float"
name=
"rand_code"
placeholder=
"必填,4个字符"
v-model=
"peopleCode"
:class=
"{'ms-error':error == 'peopleCode'}"
@
blur=
"checkPeopleCode"
/>
<img
src=
"{ms:global.host/}/{ms:global.style/}/images/code.jpg"
class=
"login-code-img ms-login-float"
@
click=
"code"
>
<p
class=
"ms-login-float login-code-text"
>
<span
class=
"login-code-rompt"
>
看不清?
</span>
<br/>
<spna
class=
"login-code-change"
@
click=
"code"
>
换一张
</span>
</p>
</div>
<div
class=
"ms-login-button"
@
click=
"login"
:disabled=
"butState != '注册'"
:class=
"{'ms-but-disabled':butState != '注册'}"
v-text=
"butState"
>
注册
</div>
</form>
</div>
</div>
<div
class=
"ms-footer"
>
<p>
<span>
<a
href=
'{ms:global.url/}/53/index.html'
>
关于我们
</a>
</span>
<span>
|
</span>
<span>
<a
target=
"_blank"
href=
'http://mingsoft.net/html/1//5527/index.html#faz'
>
发展历程
</a>
</span>
<span>
|
</span>
<span>
<a
target=
"_blank"
href=
'{ms:global.url/}/19/index.html'
>
联系我们
</a>
</span>
</p>
<p>
版权所有 @铭飞科技有限公司2012-2018保留一切权利
</p>
</div>
</div>
</body>
<script>
new
Vue
({
el
:
'
#login
'
,
data
:
{
show
:
"
form
"
,
//切换显示的内容
errorText
:
""
,
//错误提示
error
:
""
,
//输入框错误的显示
peopleName
:
""
,
//用户名输入框
peoplePassword
:
""
,
//密码输入框
rePeoplePassword
:
""
,
//确定密码输入框
peopleCode
:
""
,
//验证码输入框
butState
:
"
注册
"
,
//注册按钮
},
watch
:
{
peopleName
:
function
()
{
var
pattern
=
/
[^\w\u
4E00-
\u
9FA5
]
/ig
;
if
(
!
validator
.
isNull
(
this
.
peopleName
)
&&
this
.
peopleName
.
indexOf
(
"
"
)
<
0
&&
validator
.
isLength
(
this
.
peopleName
,
{
min
:
6
,
max
:
20
})
&&
pattern
.
test
(
this
.
peopleName
)
==
false
&&
this
.
error
==
'
peopleName
'
)
{
this
.
errorText
=
""
;
this
.
error
=
""
;
}
},
peoplePassword
:
function
()
{
if
(
!
validator
.
isNull
(
this
.
peoplePassword
)
&&
this
.
peoplePassword
.
indexOf
(
"
"
)
<
0
&&
validator
.
isLength
(
this
.
peoplePassword
,
{
min
:
6
,
max
:
20
})
&&
this
.
error
==
'
peoplePassword
'
)
{
this
.
errorText
=
""
;
this
.
error
=
""
;
}
},
rePeoplePassword
:
function
()
{
if
(
!
validator
.
isNull
(
this
.
rePeoplePassword
)
&&
this
.
rePeoplePassword
.
indexOf
(
"
"
)
<
0
&&
validator
.
isLength
(
this
.
rePeoplePassword
,
{
min
:
6
,
max
:
20
})
&&
this
.
error
==
'
rePeoplePassword
'
&&
this
.
rePeoplePassword
==
this
.
peoplePassword
)
{
this
.
errorText
=
""
;
this
.
error
=
""
;
}
},
peopleCode
:
function
()
{
if
(
!
validator
.
isNull
(
this
.
peopleCode
)
&&
this
.
peopleCode
.
indexOf
(
"
"
)
<
0
&&
this
.
peopleCode
!=
4
&&
this
.
error
==
'
peopleCode
'
)
{
this
.
errorText
=
""
;
this
.
error
=
""
;
}
},
},
methods
:
{
errorShow
:
function
(
msg
,
type
)
{
this
.
errorText
=
msg
;
this
.
error
=
type
;
},
//判断用户名
checkPeopleName
:
function
()
{
var
pattern
=
/
[^\w\u
4E00-
\u
9FA5
]
/ig
;
if
(
validator
.
isNull
(
this
.
peopleName
))
{
this
.
errorShow
(
"
用户名不能为空
"
,
'
peopleName
'
);
return
false
;
}
else
if
(
this
.
peopleName
.
indexOf
(
"
"
)
>=
0
)
{
this
.
errorShow
(
"
用户名不能包含空格
"
,
'
peopleName
'
);
return
false
;
}
else
if
(
!
validator
.
isLength
(
this
.
peopleName
,
{
min
:
6
,
max
:
20
}))
{
this
.
errorShow
(
"
用户名为6~20个字符
"
,
'
peopleName
'
);
return
false
;
}
else
if
(
pattern
.
test
(
this
.
peopleName
))
{
this
.
errorShow
(
"
用户名不能包含特殊字符
"
,
'
peopleName
'
);
return
false
;
}
return
true
;
},
//判断密码
checkPeoplePassword
:
function
()
{
if
(
validator
.
isNull
(
this
.
peoplePassword
))
{
this
.
errorShow
(
"
密码不能为空
"
,
'
peoplePassword
'
);
return
false
;
}
else
if
(
!
validator
.
isLength
(
this
.
peoplePassword
,
{
min
:
6
,
max
:
20
}))
{
this
.
errorShow
(
"
密码长度在6~20位之间!
"
,
'
peoplePassword
'
);
return
false
;
}
else
if
(
this
.
peoplePassword
.
indexOf
(
"
"
)
>=
0
)
{
this
.
errorShow
(
"
密码是不能包含空格
"
,
'
peoplePassword
'
);
return
false
;
}
return
true
;
},
//判断确定密码
checkPeopleRePassword
:
function
()
{
if
(
validator
.
isNull
(
this
.
rePeoplePassword
))
{
this
.
errorShow
(
"
确定密码不能为空
"
,
'
rePeoplePassword
'
);
return
false
;
}
else
if
(
!
validator
.
isLength
(
this
.
rePeoplePassword
,
{
min
:
6
,
max
:
20
}))
{
this
.
errorShow
(
"
确定密码长度在6~20位之间!
"
,
'
rePeoplePassword
'
);
return
false
;
}
else
if
(
this
.
rePeoplePassword
.
indexOf
(
"
"
)
>=
0
)
{
this
.
errorShow
(
"
确定密码是不能包含空格
"
,
'
rePeoplePassword
'
);
return
false
;
}
else
if
(
this
.
rePeoplePassword
!=
this
.
peoplePassword
){
this
.
errorShow
(
"
确定密码和密码不一致
"
,
'
rePeoplePassword
'
);
return
false
;
}
return
true
;
},
//判断验证码
checkPeopleCode
:
function
()
{
if
(
validator
.
isNull
(
this
.
peopleCode
))
{
this
.
errorShow
(
"
验证码不能为空
"
,
'
peopleCode
'
);
return
false
;
}
else
if
(
this
.
peopleCode
.
length
!=
4
)
{
this
.
errorShow
(
"
验证码为4位字符
"
,
'
peopleCode
'
);
return
false
;
}
else
if
(
this
.
peopleCode
.
indexOf
(
"
"
)
>=
0
)
{
this
.
errorShow
(
"
验证码不能包括空格
"
,
'
peopleCode
'
);
return
false
;
}
return
true
;
},
//登录
login
:
function
()
{
var
target
=
this
;
if
(
this
.
checkPeoplePassword
()
&&
this
.
checkPeopleName
()
&&
this
.
checkPeopleRePassword
()
&&
this
.
checkPeopleCode
())
{
target
.
butState
=
'
注册中...
'
;
$
.
ajax
({
type
:
"
post
"
,
data
:
$
(
"
#ms-login-form
"
).
serialize
(),
url
:
"
{ms:global.host/}/register.do
"
,
success
:
function
(
msg
)
{
if
(
msg
.
result
!=
true
)
{
alert
(
msg
.
resultMsg
);
target
.
code
();
}
else
{
alert
(
"
注册成功!
"
);
$
(
"
body
"
).
append
(
"
<form action='{ms:global.host/}/mcms/login.do' id='goForm'></form>
"
);
$
(
"
#goForm
"
).
submit
();
}
target
.
butState
=
'
注册
'
;
}
})
}
},
code
:
function
()
{
$
(
"
.login-code-img
"
).
attr
(
"
src
"
,
"
{ms:global.host/}/code?t=
"
+
(
new
Date
).
getTime
())
},
chanageBackgroundColor
:
function
(){
if
(
$
(
'
input[name="peopleName"]
'
).
val
().
length
>=
6
&&
$
(
'
input[name="peoplePassword"]
'
).
val
().
length
>=
6
&&
$
(
'
input[name="rePassword"]
'
).
val
().
length
>=
6
&&
$
(
'
input[name="rand_code"]
'
).
val
().
length
==
4
){
$
(
'
.ms-login-button
'
).
css
(
"
background-color
"
,
"
#009aff
"
);
$
(
'
.ms-login-button
'
).
css
(
"
pointer-events
"
,
'
visible
'
);
$
(
'
.ms-login-button
'
).
css
(
"
color
"
,
"
#fff
"
);
}
else
{
$
(
'
.ms-login-button
'
).
css
(
"
background-color
"
,
"
#fafafa
"
);
$
(
'
.ms-login-button
'
).
css
(
'
pointer-events
'
,
"
none
"
);
$
(
'
.ms-login-button
'
).
css
(
"
color
"
,
"
#ddd
"
);
}
},
},
mounted
:
function
()
{
$
(
"
.login-code-img
"
).
attr
(
"
src
"
,
"
{ms:global.host/}/code?t=
"
+
(
new
Date
).
getTime
())
}
})
</script>
</html>
\ No newline at end of file
src/main/webapp/templets/1/default/search.htm
0 → 100644
View file @
f71e551e
<!DOCTYPE html>
<html>
<head>
<
#include
"
head-file.htm
"
/>
</head>
<body>
<
#include
"
head.htm
"
/>
<div
class=
"ms-banner"
>
<img
src=
"{ms:global.host/}/{ms:global.style/}/images/search.jpg"
>
</div>
<div
class=
"ms-content"
id=
"body"
>
<div
class=
"ms-content-main-list"
id=
"ms-content-search"
>
<div
class=
"ms-content-main-div"
>
<div
class=
"ms-content-main-div-prompt"
>
您搜索的关键字
<span>
{ms:search.basic_title/}
</span>
<!-- 共7个结果 -->
</div>
<ul
class=
"ms-content-main-ul"
>
{ms:arclist size=10 ispaging=true}
<li>
<a
href=
"{ms:global.url/}/[field.link/]"
>
[field.title/]
<span
class=
"ms-content-main-li-time"
>
[field.date?string("yyyy-MM-dd")/]
</span>
</a>
</li>
{/ms:arclist}
</ul>
</div>
<div
class=
"ms-content-main-page"
>
<a
class=
"ms-content-main-page-first"
href=
"{ms:page.index/}"
>
首页
</a>
<a
class=
"ms-content-main-page-upper"
href=
"{ms:page.pre/}"
>
上一页
</a>
<a
class=
"ms-content-main-page-next"
href=
"{ms:page.next/}"
>
下一页
</a>
<a
class=
"ms-content-main-page-last"
href=
"{ms:page.last/}"
>
末页
</a>
</div>
</div>
</div>
<
#include
"
footer.htm
"
/>
</body>
</html>
<script>
new
Vue
({
el
:
"
#body
"
,
data
:
{
title
:
''
,
list
:
[],
},
methods
:
{
//上下页
search
:
function
(
flag
){
var
pageNo
=
{
ms
:
search
.
pageNo
/
};
var
total
=
{
ms
:
page
.
total
/
};
if
(
flag
){
pageNo
=
pageNo
==
total
?
total
:
pageNo
+
1
;
//下一页
}
else
{
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
;
},
},
})
if
(
$
(
'
.ms-content-main-ul li
'
).
length
<=
0
)
{
$
(
'
.ms-content-main-page
'
).
remove
();
$
(
'
.ms-content-main-ul
'
).
before
(
"
<div class='ms-content-main-div-nothing'>没找到相关记录</div>
"
)
}
</script>
\ No newline at end of file
Prev
1
…
5
6
7
8
9
Next
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