模板地址
This commit is contained in:
parent
1f69ca99b5
commit
f8b4b66478
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 动态列表页
|
||||
|
|
|
@ -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'>栏目关键字
|
||||
|
|
|
@ -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/}/mcms/login.do'>登录</a>
|
||||
</span>|<span><a href='{ms:global.host/}/mcms/register.do'>注册</a></span>
|
||||
<a href='{ms:global.host/}/mdiyPage/login.do'>登录</a>
|
||||
</span>|<span><a href='{ms:global.host/}/mdiyPage/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">
|
||||
|
|
Loading…
Reference in New Issue