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
9df436f3
Commit
9df436f3
authored
Nov 21, 2020
by
wujj
Browse files
测试模板
parent
b2197210
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/template/1/default/news-detail.htm
0 → 100644
View file @
9df436f3
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
{ms:global.name/}
</title>
<meta
http-equiv=
"content-type"
content=
"text/html"
/>
<META
HTTP-EQUIV=
"Pragma"
CONTENT=
"no-cache"
/>
<meta
name=
"viewport"
content=
"initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
name=
"app-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"app-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<meta
name=
"keywords"
content=
"{ms:global.keyword/}"
/>
<meta
name=
"description"
content=
"{ms:global.descrip/}"
/>
<script
type=
"text/javascript"
src=
"{ms:global.host/}/static/plugins/vue/2.6.9/vue.min.js"
></script>
<link
rel=
"stylesheet"
href=
"{ms:global.host/}/static/plugins/minireset/0.0.2/minireset.min.css"
/>
<link
rel=
"stylesheet"
href=
"https://cdn.mingsoft.net/iconfont/iconfont.css"
/>
<link
rel=
"stylesheet"
href=
"{ms:global.host/}/static/plugins/animate/4.1.0/animate.min.css"
>
<script
src=
"{ms:global.host/}/static/plugins/element-ui/2.12.0/index.js"
></script>
<link
rel=
"stylesheet"
href=
"{ms:global.host/}/static/plugins/element-ui/2.12.0/index.css"
/>
<link
rel=
"stylesheet"
href=
"{ms:global.host/}/{ms:global.style/}/css/app.css"
/>
<!--网络请求框架-->
<script
src=
"{ms:global.host/}/static/plugins/axios/0.18.0/axios.min.js"
></script>
<script
src=
"{ms:global.host/}/static/plugins/qs/6.6.0/qs.min.js"
></script>
<script
src=
"{ms:global.host/}/static/plugins/ms/1.0.0/ms.js"
></script>
<script
src=
"{ms:global.host/}/static/plugins/ms/1.0.0/ms.http.js"
></script>
<script
src=
"{ms:global.host/}/static/plugins/ms/1.0.0/ms.util.js"
></script>
<script>
ms
.
base
=
""
;
</script>
<style>
[
v-cloak
]
{
display
:
none
;
}
</style>
</head>
<body>
<div
id=
"app"
v-cloak
>
<
#include
"
header.htm
"
/>
<div
class=
"content"
>
<div
class=
"ms-channel-path"
>
<span
class=
"ms-channel-path-label"
>
当前位置:
</span>
<a
href=
"/"
class=
"ms-channel-path-index"
>
首页
</a>
{ms:channel type="path"}
<i
class=
"iconfont icon-youjiantou"
></i>
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"ms-channel-path-link"
>
${field.typetitle}
</a>
{/ms:channel}
</div>
<div
class=
"detail"
>
<div
class=
"top"
>
<span
class=
"title"
>
${field.title}
</span>
<div
class=
"date"
>
<span
>
发布时间:
</span>
<span
>
${field.date?string("yyyy-MM-dd")}
</span>
<div
style=
"flex-wrap:nowrap;flex-direction:row;display:flex;width:20px;box-sizing:border-box;margin-top:0px;height:100%;"
>
</div>
<span
>
浏览次数:
</span>
<span
>
${field.hit}
</span>
</div>
</div>
<div
class=
"body"
>
<span
class=
"body-text"
>
${field.content}
</span>
</div>
</div>
<div
class=
"ms-next-pre"
>
<div
class=
"pre"
>
<span
>
上一篇:
</span>
<a
href=
"${global.url}${pre.link}"
>
${pre.title}
</a>
</div>
<div
class=
"next"
>
<span
>
下一篇:
</span>
<a
href=
"${global.url}${next.link}"
>
${next.title}
</a>
</div>
</div>
</div>
<
#include
"
footer.htm
"
/>
</div>
</body>
</html>
<script>
var
app
=
new
Vue
({
el
:
'
#app
'
,
watch
:{
},
data
:
{
},
methods
:
{
switchShow
:
function
(
arr
){
var
that
=
this
arr
.
forEach
(
function
(
x
){
let
e
=
that
.
$el
.
querySelector
(
"
#key_
"
+
x
)
if
(
e
){
e
.
style
.
display
=
e
.
style
.
display
==
'
none
'
?
'
flex
'
:
'
none
'
}
})
},
},
created
(){
}
})
</script>
<style>
body
{
background-color
:
#f5f5f5
;
box-sizing
:
border-box
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Segoe UI"
,
"Helvetica Neue"
,
"PingFang SC"
,
"Noto Sans"
,
"Noto Sans CJK SC"
,
"Microsoft YaHei"
,
微软雅黑
,
sans-serif
;
moz-box-sizing
:
border-box
;
webkit-box-sizing
:
border-box
;
}
.content
{
padding-bottom
:
0px
;
flex-wrap
:
nowrap
;
flex-direction
:
column
;
display
:
flex
;
padding-right
:
0px
;
width
:
100%
;
margin-bottom
:
0px
;
box-sizing
:
border-box
;
padding-top
:
0px
;
padding-left
:
0px
;
margin-top
:
0px
;
}
.content
.ms-channel-path
{
align-items
:
center
;
flex-direction
:
row
;
display
:
flex
;
box-sizing
:
border-box
;
justify-content
:
flex-start
;
margin-left
:
auto
;
margin-right
:
auto
;
padding-bottom
:
0px
;
flex-wrap
:
nowrap
;
width
:
1170px
;
margin-bottom
:
10px
;
padding-top
:
0px
;
margin-top
:
10px
;
height
:
30px
;
}
.content
.ms-channel-path
.ms-channel-path-label
{
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
font-size
:
14
PX
;
margin-bottom
:
0px
;
margin-top
:
0px
;
}
.content
.ms-channel-path
.ms-channel-path-index
{
cursor
:
pointer
;
color
:
#000
;
font-size
:
14
PX
;
text-decoration
:
none
;
margin-bottom
:
0px
;
margin-top
:
0px
;
}
.content
.ms-channel-path
>
i
{
}
.content
.ms-channel-path
.ms-channel-path-link
{
cursor
:
pointer
;
color
:
#000
;
font-size
:
14
PX
;
text-decoration
:
none
;
margin-bottom
:
0px
;
margin-top
:
0px
;
}
.content
.detail
{
background-color
:
#FFFFFF
;
align-items
:
center
;
flex-direction
:
column
;
display
:
flex
;
padding-right
:
0px
;
box-sizing
:
border-box
;
margin-left
:
auto
;
min-height
:
800px
;
margin-right
:
auto
;
padding-bottom
:
0px
;
flex-wrap
:
nowrap
;
width
:
1170px
;
margin-bottom
:
10px
;
padding-top
:
0px
;
position
:
relative
;
padding-left
:
0px
;
margin-top
:
0px
;
}
.content
.detail
.top
{
align-items
:
center
;
flex-direction
:
column
;
display
:
flex
;
box-sizing
:
border-box
;
justify-content
:
center
;
border-bottom-color
:
#EBEEF5
;
margin-right
:
0px
;
padding-bottom
:
32px
;
flex-wrap
:
nowrap
;
width
:
90%
;
margin-bottom
:
0px
;
border-bottom-style
:
solid
;
padding-top
:
32px
;
border-bottom-width
:
1px
;
margin-top
:
0px
;
}
.content
.detail
.top
.title
{
padding-bottom
:
0px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
font-size
:
28
PX
;
padding-top
:
0px
;
}
.content
.detail
.top
.date
{
align-items
:
center
;
flex-direction
:
row
;
display
:
flex
;
box-sizing
:
border-box
;
justify-content
:
center
;
margin-left
:
0px
;
margin-right
:
0px
;
flex-wrap
:
nowrap
;
width
:
100%
;
margin-bottom
:
0px
;
padding-top
:
0px
;
margin-top
:
10px
;
height
:
100%
;
}
.content
.detail
.top
.date
span
{
margin-right
:
0px
;
color
:
#929292
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
font-size
:
16
PX
;
margin-top
:
0px
;
margin-left
:
0px
;
}
.content
.detail
.body
{
align-items
:
center
;
flex-wrap
:
nowrap
;
flex-direction
:
column
;
display
:
flex
;
width
:
90%
;
margin-bottom
:
0px
;
box-sizing
:
border-box
;
padding-top
:
32px
;
justify-content
:
center
;
margin-top
:
0px
;
}
.content
.detail
.body
.body-text
{
margin-right
:
auto
;
padding-bottom
:
0px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
font-size
:
18
PX
;
line-height
:
32px
;
margin-bottom
:
0px
;
padding-top
:
0px
;
margin-top
:
0px
;
margin-left
:
0px
;
}
.content
.ms-next-pre
{
flex-direction
:
row
;
display
:
flex
;
padding-right
:
10px
;
box-sizing
:
border-box
;
margin-left
:
auto
;
margin-right
:
auto
;
padding-bottom
:
0px
;
flex-wrap
:
nowrap
;
width
:
1170px
;
margin-bottom
:
0px
;
padding-top
:
0px
;
padding-left
:
10px
;
margin-top
:
0px
;
height
:
60px
;
}
.content
.ms-next-pre
.pre
{
align-items
:
center
;
flex-wrap
:
nowrap
;
flex-direction
:
row
;
display
:
flex
;
width
:
50%
;
box-sizing
:
border-box
;
margin-bottom
:
0px
;
justify-content
:
flex-start
;
margin-top
:
0px
;
height
:
100%
;
}
.content
.ms-next-pre
.pre
span
{
font-size
:
14px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
}
.content
.ms-next-pre
.pre
a
{
cursor
:
pointer
;
font-size
:
14px
;
text-decoration
:
none
;
color
:
#000
;
}
.content
.ms-next-pre
.next
{
align-items
:
center
;
flex-wrap
:
nowrap
;
flex-direction
:
row
;
display
:
flex
;
padding-right
:
0px
;
width
:
50%
;
box-sizing
:
border-box
;
padding-left
:
0px
;
justify-content
:
flex-start
;
height
:
100%
;
}
.content
.ms-next-pre
.next
span
{
font-size
:
14px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
}
.content
.ms-next-pre
.next
a
{
cursor
:
pointer
;
padding-bottom
:
0px
;
color
:
#000
;
font-size
:
14px
;
text-decoration
:
none
;
margin-bottom
:
0px
;
padding-top
:
0px
;
margin-top
:
0px
;
}
@media
(
max-width
:
768px
){
.content
{
flex-wrap
:
nowrap
;
flex-direction
:
column
;
display
:
flex
;
padding-right
:
0px
;
width
:
100%
;
margin-bottom
:
0px
;
box-sizing
:
border-box
;
padding-top
:
0px
;
padding-left
:
0px
;
margin-top
:
0px
;
height
:
unset
;
}
.content
.ms-channel-path
{
margin-right
:
auto
;
align-items
:
center
;
flex-wrap
:
nowrap
;
flex-direction
:
row
;
display
:
flex
;
width
:
100%
;
margin-bottom
:
10px
;
box-sizing
:
border-box
;
margin-top
:
10px
;
height
:
30px
;
margin-left
:
auto
;
}
.content
.ms-channel-path
.ms-channel-path-label
{
font-size
:
14
PX
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
}
.content
.ms-channel-path
.ms-channel-path-index
{
cursor
:
pointer
;
color
:
#000
;
font-size
:
14
PX
;
text-decoration
:
none
;
margin-bottom
:
0px
;
margin-top
:
0px
;
}
.content
.ms-channel-path
.ms-channel-path-link
{
cursor
:
pointer
;
color
:
#000
;
font-size
:
14
PX
;
text-decoration
:
none
;
margin-bottom
:
0px
;
margin-top
:
0px
;
}
.content
.detail
{
background-color
:
#FFFFFF
;
align-items
:
center
;
flex-direction
:
column
;
display
:
flex
;
box-sizing
:
border-box
;
margin-left
:
auto
;
min-height
:
800px
;
margin-right
:
auto
;
padding-bottom
:
0px
;
flex-wrap
:
nowrap
;
width
:
100%
;
margin-bottom
:
10px
;
padding-top
:
0px
;
position
:
relative
;
padding-left
:
0px
;
margin-top
:
10px
;
height
:
300px
;
}
.content
.detail
.top
{
align-items
:
center
;
flex-direction
:
column
;
display
:
flex
;
box-sizing
:
border-box
;
justify-content
:
center
;
border-bottom-color
:
#EBEEF5
;
padding-bottom
:
32px
;
flex-wrap
:
nowrap
;
width
:
90%
;
margin-bottom
:
0px
;
border-bottom-style
:
solid
;
padding-top
:
32px
;
border-bottom-width
:
1px
;
margin-top
:
0px
;
}
.content
.detail
.top
.title
{
margin-right
:
0px
;
padding-bottom
:
0px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
font-size
:
28
PX
;
padding-top
:
0px
;
}
.content
.detail
.top
.date
{
align-items
:
center
;
flex-direction
:
row
;
display
:
flex
;
padding-right
:
0px
;
box-sizing
:
border-box
;
justify-content
:
center
;
margin-left
:
0px
;
margin-right
:
0px
;
padding-bottom
:
0px
;
flex-wrap
:
nowrap
;
width
:
100%
;
margin-bottom
:
0px
;
padding-top
:
0px
;
padding-left
:
0px
;
margin-top
:
0px
;
height
:
100%
;
}
.content
.detail
.top
.date
span
{
font-size
:
16
PX
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
margin-left
:
0px
;
}
.content
.detail
.body
{
align-items
:
center
;
flex-wrap
:
nowrap
;
flex-direction
:
column
;
display
:
flex
;
width
:
90%
;
margin-bottom
:
0px
;
box-sizing
:
border-box
;
padding-top
:
32px
;
justify-content
:
center
;
margin-top
:
0px
;
}
.content
.detail
.body
.body-text
{
margin-right
:
auto
;
padding-bottom
:
0px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
font-size
:
18
PX
;
line-height
:
32px
;
margin-bottom
:
0px
;
padding-top
:
0px
;
margin-top
:
0px
;
margin-left
:
0px
;
}
.content
.ms-next-pre
{
flex-direction
:
column
;
display
:
flex
;
padding-right
:
10px
;
box-sizing
:
border-box
;
margin-left
:
auto
;
margin-right
:
auto
;
flex-wrap
:
nowrap
;
width
:
100%
;
margin-bottom
:
0px
;
padding-left
:
10px
;
margin-top
:
0px
;
height
:
60px
;
}
.content
.ms-next-pre
.pre
{
align-items
:
center
;
flex-wrap
:
nowrap
;
flex-direction
:
row
;
display
:
flex
;
width
:
50%
;
box-sizing
:
border-box
;
margin-bottom
:
0px
;
justify-content
:
flex-start
;
margin-top
:
0px
;
height
:
100%
;
}
.content
.ms-next-pre
.pre
span
{
font-size
:
14px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
}
.content
.ms-next-pre
.pre
a
{
cursor
:
pointer
;
font-size
:
14px
;
text-decoration
:
none
;
color
:
#000
;
}
.content
.ms-next-pre
.next
{
align-items
:
center
;
flex-wrap
:
nowrap
;
flex-direction
:
row
;
display
:
flex
;
width
:
50%
;
box-sizing
:
border-box
;
padding-left
:
0px
;
justify-content
:
flex-start
;
height
:
100%
;
}
.content
.ms-next-pre
.next
span
{
font-size
:
14px
;
flex-direction
:
row
;
word-wrap
:
break-word
;
display
:
inline-block
;
}
.content
.ms-next-pre
.next
a
{
cursor
:
pointer
;
padding-bottom
:
0px
;
color
:
#000
;
font-size
:
14px
;
text-decoration
:
none
;
padding-top
:
0px
;
}
}
</style>
\ No newline at end of file
src/main/webapp/template/1/default/news-list.htm
0 → 100644
View file @
9df436f3
This diff is collapsed.
Click to expand it.
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