diff --git a/src/main/java/net/mingsoft/cms/action/CategoryAction.java b/src/main/java/net/mingsoft/cms/action/CategoryAction.java index e19633f5..5d2a5f34 100644 --- a/src/main/java/net/mingsoft/cms/action/CategoryAction.java +++ b/src/main/java/net/mingsoft/cms/action/CategoryAction.java @@ -163,9 +163,7 @@ public class CategoryAction extends BaseAction{ if(!StringUtil.checkLength(category.getCategoryTitle()+"", 1, 100)){ return ResultData.build().error(getResString("err.length", this.getResString("category.title"), "1", "100")); } - if(!StringUtil.checkLength(category.getCategoryFlag()+"", 1, 100)){ - return ResultData.build().error(getResString("err.length", this.getResString("category.flag"), "1", "100")); - } + if(!StringUtil.checkLength(category.getCategoryPath()+"", 1, 100)){ return ResultData.build().error(getResString("err.length", this.getResString("category.path"), "1", "100")); } @@ -236,9 +234,7 @@ public class CategoryAction extends BaseAction{ if(!StringUtil.checkLength(category.getCategoryTitle()+"", 1, 100)){ return ResultData.build().error(getResString("err.length", this.getResString("category.title"), "1", "100")); } - if(!StringUtil.checkLength(category.getCategoryFlag()+"", 0, 100)){ - return ResultData.build().error(getResString("err.length", this.getResString("category.flag"), "1", "100")); - } + if(!StringUtil.checkLength(category.getCategoryPath()+"", 0, 100)){ return ResultData.build().error(getResString("err.length", this.getResString("category.path"), "1", "100")); } diff --git a/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml b/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml index ab92dc73..a5bc84f3 100644 --- a/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml +++ b/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml @@ -96,10 +96,10 @@ category_sort=#{categorySort}, category_list_url=#{categoryListUrl}, category_url=#{categoryUrl}, - category_keyword=#{categoryKeyword}, - category_descrip=#{categoryDescrip}, + category_keyword=#{categoryKeyword}, + category_descrip=#{categoryDescrip}, category_img=#{categoryImg}, - category_diy_url=#{categoryDiyUrl}, + category_diy_url=#{categoryDiyUrl}, mdiy_model_id=#{mdiyModelId}, category_datetime=#{categoryDatetime}, category_manager_id=#{categoryManagerId}, diff --git a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml index d0fd41b5..25fef61f 100644 --- a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml +++ b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml @@ -83,7 +83,7 @@ #{contentTitle}, #{contentCategoryId}, - #{contentType}, + #{contentType}, #{contentDisplay}, #{contentAuthor}, #{contentSource}, @@ -112,14 +112,14 @@ content_category_id=#{contentCategoryId}, content_type=#{contentType}, content_display=#{contentDisplay}, - content_author=#{contentAuthor}, - content_source=#{contentSource}, + content_author=#{contentAuthor}, + content_source=#{contentSource}, content_datetime=#{contentDatetime}, content_sort=#{contentSort}, content_img=#{contentImg}, - content_description=#{contentDescription}, - content_keyword=#{contentKeyword}, - content_details=#{contentDetails}, + content_description=#{contentDescription}, + content_keyword=#{contentKeyword}, + content_details=#{contentDetails}, content_url=#{contentUrl}, content_hit=#{contentHit}, app_id=#{appId}, diff --git a/src/main/java/net/mingsoft/cms/resources/resources.properties b/src/main/java/net/mingsoft/cms/resources/resources.properties index fcdcae2b..61730331 100644 --- a/src/main/java/net/mingsoft/cms/resources/resources.properties +++ b/src/main/java/net/mingsoft/cms/resources/resources.properties @@ -1,7 +1,35 @@ # -#Mon Dec 23 09:24:03 CST 2019 -content.id=\u6587\u7AE0\u7F16\u53F7 -hl.ip=\u6D4F\u89C8ip -hl.people.id=\u7528\u6237id -hl.is.mobile=\u662F\u5426\u4E3A\u79FB\u52A8\u7AEF +#Thu Nov 28 15:12:32 CST 2019 +category.img=\u7F29\u7565\u56FE +appid=\u6587\u7AE0\u7BA1\u7406\u7684\u5E94\u7528id +content.datetime=\u53D1\u5E03\u65F6\u95F4 +category.manager.id=\u53D1\u5E03\u7528\u6237id +category.title=\u680F\u76EE\u7BA1\u7406\u540D\u79F0 +category.keyword=\u680F\u76EE\u7BA1\u7406\u5173\u952E\u5B57 +content.img=\u6587\u7AE0\u7F29\u7565\u56FE +category.path=\u680F\u76EE\u8DEF\u5F84 +content.type=\u6587\u7AE0\u7C7B\u578B +category.url=\u5185\u5BB9\u6A21\u677F +dict.id=\u5B57\u5178\u5BF9\u5E94\u7F16\u53F7 +content.author=\u6587\u7AE0\u4F5C\u8005 +category.parent.id=\u7236\u7C7B\u578B\u7F16\u53F7 +category.datetime=\u7C7B\u522B\u53D1\u5E03\u65F6\u95F4 +category.flag=\u680F\u76EE\u5C5E\u6027 +content.description=\u63CF\u8FF0 +content.url=\u6587\u7AE0\u8DF3\u8F6C\u94FE\u63A5\u5730\u5740 +category.sort=\u81EA\u5B9A\u4E49\u987A\u5E8F +content.title=\u6587\u7AE0\u6807\u9898 +content.category.id=\u6240\u5C5E\u680F\u76EE id=\u7F16\u53F7 +app.id=\u5E94\u7528\u7F16\u53F7 +category.list.url=\u5217\u8868\u6A21\u677F +mdiy.model.id=\u680F\u76EE\u7BA1\u7406\u7684\u5185\u5BB9\u6A21\u578Bid +content.source=\u6587\u7AE0\u6765\u6E90 +content.display=\u662F\u5426\u663E\u793A +category.type=\u680F\u76EE\u7BA1\u7406\u5C5E\u6027 +category.descrip=\u680F\u76EE\u7BA1\u7406\u63CF\u8FF0 +content.details=\u6587\u7AE0\u5185\u5BB9 +category.id=\u6240\u5C5E\u680F\u76EE +content.sort=\u81EA\u5B9A\u4E49\u987A\u5E8F +category.diy.url=\u81EA\u5B9A\u4E49\u94FE\u63A5 +content.keyword=\u5173\u952E\u5B57 diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl index ab65da89..bddeb308 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl @@ -283,6 +283,9 @@ "required": true, "message": "请选择栏目管理名称" }, {"pattern": /^[^[!@#$%^&*()_+-/~?!@#¥%…&*()——+—?》《:“‘’]+$/, "message": "栏目管理名称格式不匹配"}], + categoryListUrl: [{"required":true,"message":"请选择列表模板"}], + // 内容模板 + categoryUrl: [{"required":true,"message":"请选择内容模板"}], }, } diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl index d5be65e5..e8335c22 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -448,6 +448,9 @@ if (res.data.contentType) { res.data.contentType = res.data.contentType.split(','); } + else { + res.data.contentType = []; + } if (res.data.contentImg) { res.data.contentImg = JSON.parse(res.data.contentImg); res.data.contentImg.forEach(function (value) { diff --git a/src/main/webapp/WEB-INF/manager/main.ftl b/src/main/webapp/WEB-INF/manager/main.ftl index 5887c228..ad1aa713 100644 --- a/src/main/webapp/WEB-INF/manager/main.ftl +++ b/src/main/webapp/WEB-INF/manager/main.ftl @@ -212,12 +212,12 @@
-
+
- 铭飞商城多商户功能现已正式上线试... + {{ msNewsLast }}
@@ -432,6 +432,8 @@ }, data: { base:ms.base, + msNewsLast: '', + msNewsPath: '' }, methods: { jumpArtcleManager(){ @@ -493,8 +495,23 @@ window.open("http://wpa.qq.com/msgrd?v=3&uin=3336073455&site=qq&menu=yes"); }, + //打开铭飞消息页面 + openMCMSNews(){ + window.open(this.msNewsPath); + }, + getNewsLast(){ + var that = this; + axios.create({ + withCredentials: true + }).get("https://ms.mingsoft.net/cms/content/list.do?contentCategoryId=202").then(function (res){ + console.log(res.data.data.rows[0]); + that.msNewsLast = res.data.data.rows[0].contentTitle.toString(); + that.msNewsPath = 'https://ms.mingsoft.net/html/1/203/202/'+res.data.data.rows[0].id+'.html' + }) + } }, created(){ + this.getNewsLast() } }) @@ -1243,6 +1260,7 @@ } .class-57 { + cursor: pointer; color:#333333; outline:none; outline-offset:-1px;