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
64e44d56
Commit
64e44d56
authored
Jan 26, 2019
by
yinxr
Browse files
Signed-off-by: yinxr <2273460044@qq.com>
parent
0df5bb3d
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/include/head-file.ftl
View file @
64e44d56
...
@@ -16,6 +16,14 @@
...
@@ -16,6 +16,14 @@
<script src="http://cdn.mingsoft.net/ms/1.0/ms.js"></script>
<script src="http://cdn.mingsoft.net/ms/1.0/ms.js"></script>
<script src="http://cdn.mingsoft.net/ms/1.0/ms.http.js"></script>
<script src="http://cdn.mingsoft.net/ms/1.0/ms.http.js"></script>
<script src="http://cdn.mingsoft.net/ms/1.0/ms.util.js"></script>
<script src="http://cdn.mingsoft.net/ms/1.0/ms.util.js"></script>
<!--jquery-->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<!--百度富文本-->
<script type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/ueditor.parse.js"></script>
<script type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/lang/zh-cn/zh-cn.js"></script>
<!-- <link rel="stylesheet" href="$
{
base
}
/static/ms-admin/4.7.0/css/login.css"> -->
<!-- <link rel="stylesheet" href="$
{
base
}
/static/ms-admin/4.7.0/css/login.css"> -->
<!-- <link rel="stylesheet" href="$
{
base
}
/static/mweixin/css/custom-menu.css"> -->
<!-- <link rel="stylesheet" href="$
{
base
}
/static/mweixin/css/custom-menu.css"> -->
...
...
src/main/webapp/WEB-INF/manager/mweixin/article/index.ftl
View file @
64e44d56
...
@@ -3,52 +3,83 @@
...
@@ -3,52 +3,83 @@
<
script
src="//cdn.jsdelivr.net/npm/sortablejs@1.7.0/Sortable.min.js"></script>
<
script
src="//cdn.jsdelivr.net/npm/sortablejs@1.7.0/Sortable.min.js"></script>
<
script
src="//cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/2.17.0/vuedraggable.min.js"></script>
<
script
src="//cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/2.17.0/vuedraggable.min.js"></script>
<
link
rel="stylesheet" href="../../../../static/mweixin/css/article.css">
<
link
rel="stylesheet" href="../../../../static/mweixin/css/article.css">
<!-
-jquery--
>
<
script
src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<
script
type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/ueditor.parse.js"></script>
<
script
type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/ueditor.config.js"></script>
<
script
type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/ueditor.all.js"></script>
<
script
type="text/javascript" charset="utf-8" src="http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/lang/zh-cn/zh-cn.js"></script>
<!--
v-if="menuVue.menuActive == '新建图文'" -->
<!--
v-if="menuVue.menuActive == '新建图文'" -->
<
div
id='article' class="ms-article">
<
div
id='article' class="ms-article">
<el-container>
<el-container>
<el-aside width="280px">
<el-aside width="280px">
<div class="ms-main-article">
<div class="ms-main-article">
<img src='
https://img03.sogoucdn.com/app/a/100520091/20190125112329
'>
<img
:
src='
mainArticle.basicPic
'>
<div class="ms-main-article-mask"></div>
<div class="ms-main-article-mask"></div>
<span
>国足0-3不敌伊朗被淘汰,赛后还有一个消息
</span>
<span
v-text='mainArticle.basicTitle'>
</span>
</div>
</div>
<draggable v-model="subArticleList" :options="
{
draggable
:
'
.item
'
}
">
<draggable v-model="subArticleList" :options="
{
draggable
:
'
.
ms-article-
item
'
}
">
<div v-for="(element,index) in subArticleList" :key="index" class="ms-article-item">
<div v-for="(element,index) in subArticleList" :key="index" class="ms-article-item">
<p><span v-text='element.
t
itle'></span></p>
<p><span v-text='element.
basicT
itle'></span></p>
<img :src='element.
t
humbnail'>
<img :src='element.
basicT
humbnail
sl
'>
</div>
</div>
</draggable>
</draggable>
<el-button size='mini'>添加图文</el-button>
<div class="ms-article-footer">
<el-button size='medium' icon='el-icon-plus' @click='addArticle'>添加图文</el-button>
</div>
</el-aside>
</el-aside>
<el-main>Main</el-main>
<el-main>
<div class="ms-main-header">
<el-upload class="avatar-uploader" :show-file-list="false">
<img v-if="false" :src="false" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<el-form>
<el-form-item label="标题" prop="name">
<el-input size='mini' placeholder="请输入图文标题">
<span slot='suffix' v-text="titleWordNumber+'/64'"></span>
</el-input>
</el-form-item>
<el-form-item label="作者" prop="region">
<el-input size='mini' placeholder="请输入图文作者">
<span slot='suffix' v-text="authorWordNumber+'/8'"></span>
</el-input>
</el-form-item>
<el-form-item label="摘要" prop="region">
<el-input size='mini' type='textarea' placeholder="选填,如果不写会默认抓取正文前54个字">
</el-input>
</el-form-item>
</el-form>
</div>
<div class="ms-main-body">
<!-- 百度编辑器 -->
<script id="ueditorArticle" type="text/plain" name="articleContent"></script>
</div>
</el-main>
</el-container>
</el-container>
</
div
>
</
div
>
<
script
>
<
script
>
var articleVue = new Vue(
{
var articleVue = new Vue(
{
el
:
'#
article
'
,
el
:
'#
article
'
,
data
:
{
data
:
{
mainArticle
:
{
basicPic
:
'
https
:
//
img03
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112329
'
,
//主图
basicTitle
:
'国足
0-3
不敌伊朗被淘汰,赛后还有一个消息'
,
//标题
},
//
文章列表
//
文章列表
subArticleList
:
[
{
subArticleList
:
[
{
title
:
'硬核!年会当着老板面唱,“干活的干不过写
PPT
的……'
,
basicTitle
:
'硬核!年会当着老板面唱,“干活的干不过写
PPT
的……'
,
desc
:
'
001100
'
,
basicThumbnailsl
:
'
https
:
//
img01
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112509
'
thumbnail
:
'
https
:
//
img01
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112509
'
},
{
title
:
'个问题
grew
'
,
desc
:
'
001100
'
,
thumbnail
:
'
https
:
//
img01
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112509
'
},
{
},
{
title
:
'跟他玩过任务'
,
basicTitle
:
'知否知否,党组织犯错,处理有多严?'
,
desc
:
'
001100
'
,
basicThumbnailsl
:
'
https
:
//
img01
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112509
'
thumbnail
:
'
https
:
//
img01
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112509
'
},
{
},
{
title
:
'供热外国人'
,
basicTitle
:
'没有奇迹,国足
0-3
不敌伊朗止步八强!'
,
desc
:
'
001100
'
,
basicThumbnailsl
:
'
https
:
//
img03
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125113148
'
thumbnail
:
'
https
:
//
img01
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112509
'
}
]
,
},
{
titleWordNumber
:
''
,
//图文标题剩余字数
title
:
'天文台认为'
,
authorWordNumber
:
''
,
//图文作者剩余字数
desc
:
'
001100
'
,
editor
:
null
,
//富文本实例
thumbnail
:
'
https
:
//
img01
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125112509
'
}
]
},
},
watch
:
{
watch
:
{
subArticleList
:
function
(
n
,
o
)
{
subArticleList
:
function
(
n
,
o
)
{
...
@@ -56,8 +87,50 @@
...
@@ -56,8 +87,50 @@
}
}
},
},
methods
:
{
methods
:
{
addPeople
:
function
()
{
//
添加文章
addArticle
:
function
()
{
this
.subArticleList.push
({
basicTitle
:
'新增文章标题'
,
basicThumbnailsl
:
'
https
:
//
img03
.sogoucdn.com
/
app
/
a
/
100520091
/
20190125113148
'
})
}
},
mounted
:
function
()
{
let
that
=
this
;
//富文本加载
var
URL
=
window
.UEDITOR_HOME_URL
||
"http://mpm.mingsoft.net/static/plugins/ueditor/1.4.3.1/"
;
if
(
this
.editor
==
null
)
{
this
.editor
=
UE
.getEditor
(
'
ueditorArticle
'
,
{
toolbars
:
[
['
fullscreen
'
,
'
undo
'
,
'
redo
'
,
'|'
,
'
bold
'
,
'
italic
'
,
'
underline
'
,
'
strikethrough
'
,
'
removeformat
'
,
'
blockquote
'
,
'|'
,
'
forecolor
'
,
'
backcolor
'
,
'
insertorderedlist
'
,
'
insertunorderedlist
'
,
'|'
,
'
attachment
'
,
'
simpleupload
'
,
'
link
'
]
]
,
imageScaleEnabled
:
true
,
//
服务器统一请求接口路径
serverUrl
:
URL
+
"jsp/msController.jsp?jsonConfig=%7BvideoUrlPrefix:'http://mpm.mingsoft.net/',fileUrlPrefix:'http://mpm.mingsoft.net/',imageUrlPrefix:'http://mpm.mingsoft.net/',imagePathFormat:'/upload/pm/editor/%7Btime%7D',filePathFormat:'/upload/pm/editor/%7Btime%7D',videoPathFormat:'/upload/pm/editor/%7Btime%7D'%7D"
,
autoHeightEnabled
:
true
,
autoFloatEnabled
:
true
,
scaleEnabled
:
false
,
compressSide
:
0
,
maxImageSideLength
:
2000
,
maximumWords
:
80000
,
zIndex
:
10000
,
elementPathEnabled
:
false
,
wordCount
:
false
,
initialFrameWidth
:
600
,
initialFrameHeight
:
240
,
})
;
this
.editor.ready
(
function
()
{
var
a
=
$
(
"#ueditor_0"
)
.contents
()[
0
]
.activeElement;
$
(
a
)
.addClass
(
"ms-webkit-scrollbar"
)
.before
(
"<style>.ms-webkit-scrollbar::-webkit-scrollbar,::-webkit-scrollbar{width:10px;/*滚动条宽度*/height:1.5%;/*滚动条高度*/}/*定义滚动条轨道内阴影+圆角*/.ms-webkit-scrollbar::-webkit-scrollbar-track,::-webkit-scrollbar-track{border-radius:10px;/*滚动条的背景区域的圆角*/background-color:#eeeeee;/*滚动条的背景颜色*/}.ms-task-content::-webkit-scrollbar-track{border-radius:10px;background-color:#FFFFFF;}/*定义滑块内阴影+圆角*/.ms-webkit-scrollbar::-webkit-scrollbar-thumb,::-webkit-scrollbar-thumb{border-radius:10px;/*滚动条的圆角*/background-color:#dddddd;/*滚动条的背景颜色*/}</style>"
)
;
})
;
}
}
}
}
}
)
}
)
...
...
src/main/webapp/static/ms-admin/4.7.0/less/app.less
View file @
64e44d56
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
html,
html,
body {
body {
min-height: 100vh;
min-height: 100vh;
width: 100%;
background-color: @backgroundColor;
background-color: @backgroundColor;
margin: 0;
margin: 0;
display: flex;
display: flex;
...
...
src/main/webapp/static/mweixin/article.less
View file @
64e44d56
// 新建图文
// 新建图文
@import "../ms-admin/4.7.0/less/app.less";
@import "../ms-admin/4.7.0/less/app.less";
.ms-article{
.ms-article{
.ms-flex();
width: 100%;
.el-container{
.el-container{
// 侧边
// 侧边
.el-aside{
.el-aside{
padding:14px;
padding:14px;
background: #fff;
// 主文章
// 主文章
.ms-main-article{
.ms-main-article{
position: relative;
position: relative;
...
@@ -46,7 +49,26 @@
...
@@ -46,7 +49,26 @@
img{
img{
.ms-width-height(50px);
.ms-width-height(50px);
}
}
&:hover{
cursor: pointer;
}
}
}
// 尾部
.ms-article-footer{
background: #fff;
padding-top:20px;
.el-button{
width: 100%;
background: rgb(242, 242, 246);
i,span{
.ms-font(@auxiliarySize,@auxiliaryColor);
}
}
}
}
// 内容区域
.el-main{
flex:1
}
}
}
}
}
}
\ No newline at end of file
src/main/webapp/static/mweixin/css/app.css
0 → 100644
View file @
64e44d56
/*
*这里的值严格按照UI设计图标注值来进行设置
*/
/*
*颜色
*/
/*
*页面的边距
*/
/*
*字体
*/
/*
*头像
*/
/*
* 按钮
*/
/*
*对常见的多行样式进行了方法封装,方便调用,加快开发效率
*/
html
,
body
{
min-height
:
100vh
;
width
:
100%
;
background-color
:
#eee
;
margin
:
0
;
display
:
flex
;
font-weight
:
initial
!important
;
font-size
:
14px
!important
;
color
:
#333
!important
;
}
html
*,
body
*
{
text-decoration
:
none
!important
;
font-family
:
Verdana
,
Arial
,
Helvetica
,
sans-serif
;
box-sizing
:
border-box
;
}
.ms-ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
display
:
block
;
}
.ms-align-center
{
display
:
flex
;
align-items
:
center
;
}
input
::-webkit-input-placeholder
,
textarea
::-webkit-input-placeholder
{
font-weight
:
initial
;
font-size
:
12px
;
color
:
#999
;
resize
:
none
;
}
*
::-webkit-scrollbar
{
width
:
8px
;
height
:
8px
;
}
/*定义滚动条轨道 内阴影+圆角*/
*
::-webkit-scrollbar-track
{
border-radius
:
10px
;
/*滚动条的背景区域的圆角*/
background-color
:
#eee
;
/*滚动条的背景颜色*/
}
/*定义滑块 内阴影+圆角*/
*
::-webkit-scrollbar-thumb
{
border-radius
:
10px
;
/*滚动条的圆角*/
background-color
:
#ddd
;
/*滚动条的背景颜色*/
}
.ms-container
{
margin
:
12px
;
height
:
100%
;
padding
:
14px
14px
0
14px
;
background
:
#fff
;
}
.ms-header
{
padding
:
10px
;
margin
:
0
;
border-bottom
:
1px
solid
#ddd
;
background
:
#fff
;
height
:
50px
;
}
.ms-pagination
{
padding
:
20px
0
;
text-align
:
right
;
}
.ms-fr
{
float
:
right
;
}
.ms-tr
{
text-align
:
right
;
}
.el-button
+
.el-button
{
margin-left
:
0
;
}
src/main/webapp/static/mweixin/css/article.css
View file @
64e44d56
...
@@ -22,8 +22,10 @@
...
@@ -22,8 +22,10 @@
html
,
html
,
body
{
body
{
min-height
:
100vh
;
min-height
:
100vh
;
width
:
100%
;
background-color
:
#eee
;
background-color
:
#eee
;
margin
:
0
;
margin
:
0
;
display
:
flex
;
font-weight
:
initial
!important
;
font-weight
:
initial
!important
;
font-size
:
14px
!important
;
font-size
:
14px
!important
;
color
:
#333
!important
;
color
:
#333
!important
;
...
@@ -95,8 +97,14 @@ textarea::-webkit-input-placeholder {
...
@@ -95,8 +97,14 @@ textarea::-webkit-input-placeholder {
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
0
;
margin-left
:
0
;
}
}
.ms-article
{
display
:
flex
;
justify-content
:
space-between
;
width
:
100%
;
}
.ms-article
.el-container
.el-aside
{
.ms-article
.el-container
.el-aside
{
padding
:
14px
;
padding
:
14px
;
background
:
#fff
;
}
}
.ms-article
.el-container
.el-aside
.ms-main-article
{
.ms-article
.el-container
.el-aside
.ms-main-article
{
position
:
relative
;
position
:
relative
;
...
@@ -152,3 +160,23 @@ textarea::-webkit-input-placeholder {
...
@@ -152,3 +160,23 @@ textarea::-webkit-input-placeholder {
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
}
}
.ms-article
.el-container
.el-aside
.ms-article-item
:hover
{
cursor
:
pointer
;
}
.ms-article
.el-container
.el-aside
.ms-article-footer
{
background
:
#fff
;
padding-top
:
20px
;
}
.ms-article
.el-container
.el-aside
.ms-article-footer
.el-button
{
width
:
100%
;
background
:
#f2f2f6
;
}
.ms-article
.el-container
.el-aside
.ms-article-footer
.el-button
i
,
.ms-article
.el-container
.el-aside
.ms-article-footer
.el-button
span
{
font-weight
:
initial
;
font-size
:
12px
;
color
:
#999
;
}
.ms-article
.el-container
.el-main
{
flex
:
1
;
}
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