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
4c51a740
Commit
4c51a740
authored
Jan 10, 2020
by
铭飞
Committed by
Gitee
Jan 10, 2020
Browse files
!218 上传位置
Merge pull request !218 from 小伍/5.0.0
parents
d678961a
2182bd62
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
doc/db-mcms-5.0.sql
View file @
4c51a740
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
4c51a740
...
...
@@ -96,40 +96,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
*/
@Autowired
private
IModelBiz
modelBiz
;
// 如商城就为:/mall/{key}.do
/**
* 前段会员中心所有页面都可以使用该方法 请求地址例如: /{diy}.do,例如登陆界面,与注册界面都可以使用
*
* @param key
*/
@RequestMapping
(
"/{diy}.do"
)
@ExceptionHandler
(
java
.
lang
.
NullPointerException
.
class
)
public
void
diy
(
@PathVariable
(
value
=
"diy"
)
String
diy
,
HttpServletRequest
req
,
HttpServletResponse
resp
)
{
Map
map
=
BasicUtil
.
assemblyRequestMap
();
map
.
put
(
ParserUtil
.
URL
,
BasicUtil
.
getUrl
());
//动态解析
map
.
put
(
ParserUtil
.
IS_DO
,
true
);
//设置动态请求的模块路径
map
.
put
(
ParserUtil
.
MODEL_NAME
,
"mcms"
);
//解析后的内容
String
content
=
""
;
PageEntity
page
=
new
PageEntity
();
page
.
setPageKey
(
diy
);
//根据请求路径查询模版文件
PageEntity
_page
=
(
PageEntity
)
pageBiz
.
getEntity
(
page
);
try
{
content
=
CmsParserUtil
.
generate
(
_page
.
getPagePath
(),
map
,
isMobileDevice
(
req
));
}
catch
(
TemplateNotFoundException
e
)
{
e
.
printStackTrace
();
}
catch
(
MalformedTemplateNameException
e
)
{
e
.
printStackTrace
();
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
this
.
outString
(
resp
,
content
);
}
/**
* 动态列表页
...
...
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
4c51a740
...
...
@@ -111,12 +111,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row
gutter="0"
justify="start" align="top">
<el-row gutter="0" justify="start" align="top">
<el-col span="12">
<el-form-item prop="categoryListUrl" v-if="form.categoryType == '1'">
<template slot='label'>列表模板
...
...
@@ -138,6 +133,11 @@
</el-col>
<el-col span="12">
<el-form-item label="栏目属性" prop="categoryFlag">
<template slot='label'>栏目属性
<el-popover placement="top-start" title="提示" trigger="hover" content="类型不满足可以在自定义字典菜单中新增,字段类型为“栏目属性”">
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</template>
<el-select v-model="form.categoryFlag"
:style="
{
width
:
'
100
%'
}
"
:filterable="false"
...
...
@@ -149,9 +149,6 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="栏目管理关键字" prop="categoryKeyword">
<template slot='label'>栏目关键字
...
...
@@ -203,7 +200,7 @@
:limit="1"
:on-exceed="categoryImghandleExceed"
:disabled="false"
:data="
{
uploadPath
:
'/
cms
/
category
'
,
'
isRename
'
:
true
}
"
:data="
{
uploadPath
:
'/
cms
/
category
'
,
'
isRename
'
:
true
,
'
appId
'
:
true
}
"
:on-success="categoryImgSuccess"
accept="image/
*
"
list-type="picture-card">
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
4c51a740
...
...
@@ -184,7 +184,7 @@
:limit="1"
:on-exceed="contentImghandleExceed"
:disabled="false"
:data="
{
uploadPath
:
'/
cms
/
content
'
,
'
isRename
'
:
true
}
"
:data="
{
uploadPath
:
'/
cms
/
content
'
,
'
isRename
'
:
true
,
'
appId
'
:
true
}
"
:on-success="contentImgSuccess"
accept="image/
*
"
list-type="picture-card">
...
...
src/main/webapp/templets/1/default/head.htm
View file @
4c51a740
...
...
@@ -54,8 +54,8 @@
</div>
<div
class=
"head-men-right head-menu-flex-center"
>
<div
class=
"head-menu-flex-center head-menu-right-search"
>
<form
id=
"searchDataForm"
action=
"{ms:global.host/}/cms/
1/
search.do"
method=
"post"
>
<input
type=
"text"
class=
'ms-search-input'
name=
"
basic
_title"
placeholder=
"请输入关键字"
>
<form
id=
"searchDataForm"
action=
"{ms:global.host/}/
m
cms/search.do"
method=
"post"
>
<input
type=
"text"
class=
'ms-search-input'
name=
"
content
_title"
placeholder=
"请输入关键字"
>
<!-- <i class="iconfont ms-search-click"></i> -->
<input
type=
"submit"
value=
""
class=
"ms-search-click"
>
</form>
...
...
@@ -63,8 +63,8 @@
<div
class=
"head-menu-right-content"
id=
"ms-login-vue"
>
<span
v-show=
"!isLogin"
style=
"display: none;"
>
<span>
<a
href=
'{ms:global.host/}/m
cms
/login.do'
>
登录
</a>
</span>
|
<span><a
href=
'{ms:global.host/}/m
cms
/register.do'
>
注册
</a></span>
<a
href=
'{ms:global.host/}/m
diyPage
/login.do'
>
登录
</a>
</span>
|
<span><a
href=
'{ms:global.host/}/m
diyPage
/register.do'
>
注册
</a></span>
</span>
<div
class=
"topbar-info J_userInfo loginSuccess hide-default"
v-show=
"isLogin"
style=
"display: none;"
>
<a
class=
"user-name"
href=
"{ms:global.host/}/people/center.do"
>
...
...
src/main/webapp/templets/1/default/menu-left.htm
View file @
4c51a740
<div
class=
"ms-content-left"
>
<div
class=
"ms-content-left-title"
>
走进铭飞
</div>
<ul
class=
"ms-content-left-ul"
>
<a
target=
"_blank"
href=
'{ms:global.url/}/53/index.html'
>
<li>
关于我们
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
</a>
<a
target=
"_blank"
href=
'{ms:global.url/}/53/index.html'
>
<li>
关于我们
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
</a>
<a
target=
"_blank"
href=
'{ms:global.url/}/59/index.html'
>
<li>
公司动态
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
<li>
公司动态
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
</a>
<a
target=
"_blank"
href=
'http://mingsoft.net/html/1//5527/index.html#faz'
>
<li>
发展历程
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
<li>
发展历程
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
</a>
<a
target=
"_blank"
href=
'http://mingsoft.net/html/1//5527/index.html#lianx'
>
<li>
加入我们
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
<li>
加入我们
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
</a>
<a
target=
"_blank"
href=
{ms:global.url/}/19/141/index.html
>
<li>
联系我们
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
<li>
联系我们
<span
class=
"ms-content-left-li-more"
>
>
</span></li>
</a>
</ul>
</div>
<script>
$
(
function
(){
var
r
=
location
.
href
;
if
(
r
.
match
(
"
53
"
)){
$
(
"
.ms-content-left-ul a
"
).
removeClass
(
"
ms-content-left-li-first
"
);
$
(
"
.ms-content-left-ul a
"
).
eq
(
0
).
addClass
(
"
ms-content-left-li-first
"
);
}
else
if
(
r
.
match
(
"
19
"
)){
$
(
"
.ms-content-left-ul a
"
).
removeClass
(
"
ms-content-left-li-first
"
);
$
(
"
.ms-content-left-ul a
"
).
eq
(
4
).
addClass
(
"
ms-content-left-li-first
"
);
}
else
if
(
r
.
match
(
"
59
"
)){
$
(
"
.ms-content-left-ul a
"
).
removeClass
(
"
ms-content-left-li-first
"
);
$
(
"
.ms-content-left-ul a
"
).
eq
(
1
).
addClass
(
"
ms-content-left-li-first
"
);
}
})
$
(
function
(){
var
r
=
location
.
href
;
if
(
r
.
match
(
"
53
"
)){
$
(
"
.ms-content-left-ul a
"
).
removeClass
(
"
ms-content-left-li-first
"
);
$
(
"
.ms-content-left-ul a
"
).
eq
(
0
).
addClass
(
"
ms-content-left-li-first
"
);
}
else
if
(
r
.
match
(
"
19
"
)){
$
(
"
.ms-content-left-ul a
"
).
removeClass
(
"
ms-content-left-li-first
"
);
$
(
"
.ms-content-left-ul a
"
).
eq
(
4
).
addClass
(
"
ms-content-left-li-first
"
);
}
else
if
(
r
.
match
(
"
59
"
)){
$
(
"
.ms-content-left-ul a
"
).
removeClass
(
"
ms-content-left-li-first
"
);
$
(
"
.ms-content-left-ul a
"
).
eq
(
1
).
addClass
(
"
ms-content-left-li-first
"
);
}
})
</script>
\ No newline at end of file
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