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
f8b4b664
Commit
f8b4b664
authored
Jan 10, 2020
by
wujj
Browse files
模板地址
parent
1f69ca99
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
f8b4b664
...
...
@@ -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 @
f8b4b664
...
...
@@ -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'>栏目关键字
...
...
src/main/webapp/templets/1/default/head.htm
View file @
f8b4b664
...
...
@@ -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"
>
...
...
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