Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
f8b4b664
Commit
f8b4b664
authored
Jan 10, 2020
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板地址
parent
1f69ca99
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
45 deletions
+9
-45
MCmsAction.java
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
+1
-34
form.ftl
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
+6
-9
head.htm
src/main/webapp/templets/1/default/head.htm
+2
-2
No files found.
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
Markdown
is supported
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