From 5b6fc219e3f732d328573fc962108901d6920caf Mon Sep 17 00:00:00 2001 From: zhujunjieit Date: Tue, 22 Jan 2019 23:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/web/res/images/icon-1.png | Bin 0 -> 3321 bytes .../ruoyi/cms/controller/CmsController.java | 42 +++++++++++++++--- .../main/resources/templates/web/index.html | 34 +++++++++++++- 3 files changed, 68 insertions(+), 8 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/static/web/res/images/icon-1.png diff --git a/ruoyi-admin/src/main/resources/static/web/res/images/icon-1.png b/ruoyi-admin/src/main/resources/static/web/res/images/icon-1.png new file mode 100644 index 0000000000000000000000000000000000000000..9b998522d1407db3412bf638b77ce850101f17e5 GIT binary patch literal 3321 zcmVKLZ*U+5Lu!Sk^o_Z5E4Meg@_7P6crJiNL9pw)e1;Xm069{HJUZAPk55R%$-RIA z6-eL&AQ0xu!e<4=008gy@A0LT~suv4>S3ILP<0Bm`DLLvaF4FK%)Nj?Pt*r}7;7Xa9z9H|HZjR63e zC`Tj$K)V27Re@400>HumpsYY5E(E}?0f1SyGDiY{y#)Yvj#!WnKwtoXnL;eg03bL5 z07D)V%>y7z1E4U{zu>7~aD})?0RX_umCct+(lZpemCzb@^6=o|A>zVpu|i=NDG+7} zl4`aK{0#b-!z=TL9Wt0BGO&T{GJWpjryhdijfaIQ&2!o}p04JRKYg3k&Tf zVxhe-O!X z{f;To;xw^bEES6JSc$k$B2CA6xl)ltA<32E66t?3@gJ7`36pmX0IY^jz)rRYwaaY4 ze(nJRiw;=Qb^t(r^DT@T3y}a2XEZW-_W%Hszxj_qD**t_m!#tW0KDiJT&R>6OvVTR z07RgHDzHHZ48atvzz&?j9lXF70$~P3Knx_nJP<+#`N z#-MZ2bTkiLfR>_b(HgWKJ%F~Nr_oF3b#wrIijHG|(J>B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(u02P7 zaQ)#(uUl{HW%tYNS3ItC^iAtK(eKlL`f9+{bJzISE?u8_z3;~C8@FyI-5j_jy7l;W z_U#vU3hqqYU3!mrul&B+{ptt$59)uk{;_4iZQ%G|z+lhASr6|H35TBkl>gI*;nGLU zN7W-nBaM%pA0HbH8olyl&XeJ%vZoWz%6?Y=dFykl=imL}`%BMQ{Mhgd`HRoLu6e2R za__6DuR6yg#~-}Tc|Gx_{H@O0eebyMy5GmWADJlpK>kqk(fVV@r_fLLKIeS?{4e)} z^ZO;zpECde03c&XQcVB=dL;k=fP(-4`Tqa_faw4Lbua(`>RI+y?e7jKeZ#YO-C z0wzgBK~#9!#Fx!$6G0e@1ciCrtzu9@;QL>m7!i+nw zL3{u8iYDxMG6Ukr3<0ow4v?530G6h~{|O>y!~y|OngwZsQZYib_lVyZs)l_CfYMCN zO0;9;JOs_&8HpYuXu#7Oy|$?6AtW$k^60Q~q0%{r`I`wN89FnJYD7hv*AuUaA7 z62SLwP@eCDm?}bk1CC|EO~UbMD7=L;MN8H+p}7xh*UkE6t0Wvg2`}$Lqux#Q(lGY` zzI=dpkHQCWJiq}rfs()%$`_!q|7W6?gj+9Q`K%p9v+*?l$`0L=Wy=P+^E)-MCj zSm09I8=hDH472ymu%<_Pe0WOg2)w!nyHz^~iA$ zFVzQ-HuKwMdjLvK+k+T81i1>T)95N~KAawh z+9v~q*aPrV!tHeh;Qm%%b}G@-kOK!HS5an>D&hjxj$9Q)b?Q^}5QWXw>7ZjO<%Lbt z)busJI$D4r#`Z4%rUjsSRp>mpk?ny2HrQ7pkud;4>&`KxQM0GS%_;;wDEFT?FxRRD z$Vjbf_;%zsx*K0HQo|e`gp+`Ubx= list = trainCourseService.selectTrainCoursePage( trainCourse ); + public String index(String parentIds, ModelMap map) { + TrainCourseVO trainCourseVO = new TrainCourseVO(); + //三级分类列表根据parentIds判断 + TrainCourseCategory courseCategory = new TrainCourseCategory(); + courseCategory.setParentId( (long) 100 ); + List courseCategories1 = trainCourseCategoryService.selectCategoryList( courseCategory ); + List courseCategories2 = new ArrayList<>(); + List courseCategories3 = new ArrayList<>(); + if (StrUtil.isNotBlank( parentIds ) && parentIds.split( "," ).length >= 3) {//二级分类 + Long parentId = new Long( parentIds.split( "," )[2] ); + courseCategory.setParentId( parentId ); + courseCategories2 = trainCourseCategoryService.selectCategoryList( courseCategory ); + } + if (StrUtil.isNotBlank( parentIds ) && parentIds.split( "," ).length >= 4) {//三级分类 + Long parentId = new Long( parentIds.split( "," )[3] ); + courseCategory.setParentId( parentId ); + courseCategories3 = trainCourseCategoryService.selectCategoryList( courseCategory ); + } + if (StrUtil.isNotBlank( parentIds )) { + trainCourseVO.setTrainCourseCategoryId( new Integer( parentIds.split( "," )[parentIds.split( "," ).length - 1] ) ); + //当前选中的分类id + map.put( "selectCategoryId", parentIds.split( "," )[parentIds.split( "," ).length - 1] ); + } + List list = trainCourseService.selectTrainCoursePage( trainCourseVO ); map.put( "trainCourse", list ); map.put( "user", ShiroUtils.getSysUser() ); + //三级分类列表 + map.put( "courseCategories1", courseCategories1 ); + map.put( "courseCategories2", courseCategories2 ); + map.put( "courseCategories3", courseCategories3 ); return prefix + "/index"; } @@ -77,10 +104,11 @@ public class CmsController { map.put( "user", ShiroUtils.getSysUser() ); return prefix + "/course/courseInfo"; } + @RequestMapping("/course/courseSections.html/{id}") @GetMapping() public String courseSections(@PathVariable("id") Integer id, ModelMap map) { - TrainCourseSection tcs= trainCourseSectionService.selectById( id ); + TrainCourseSection tcs = trainCourseSectionService.selectById( id ); TrainCourseSection trainCourseSection = new TrainCourseSection(); trainCourseSection.setTrainCourseId( tcs.getTrainCourseId() ); List trainCourseSections = trainCourseSectionService.selectTrainCourseSectionList( trainCourseSection ); diff --git a/ruoyi-cms/src/main/resources/templates/web/index.html b/ruoyi-cms/src/main/resources/templates/web/index.html index 2b3c2e25f..7017419e3 100644 --- a/ruoyi-cms/src/main/resources/templates/web/index.html +++ b/ruoyi-cms/src/main/resources/templates/web/index.html @@ -135,6 +135,17 @@ border-radius: 30px; overflow: hidden; } + .filterbox{/*! border:1px solid #ebebeb; */border-radius:4px;background: #fff;margin-top: 40px} + .filterbox ul{ background-color:white; text-indent:20px;border-radius:3px;} + .filterbox li{ position: relative;border-top:1px dashed #ebebeb;padding: 15px 15px 15px 0;margin-left: 140px;} + .filterbox li:first-child{border-top:0px;} + .filterbox li span{width: 140px;font-size: 16px;line-height:34px;position: absolute;left:-150px;top:15px; color:#fff;background:url(web/res/images/icon-1.png) #ff9f37 no-repeat right center;} + .filterbox li a{float: left;margin:0px 15px 0px 0;font-size: 14px;color: #828282;line-height: 34px;} + .filterbox li a.curr, + .filterbox li a:hover{color:#0288d1;} + .filterbox li:after{content:".";display:block;height:0;clear:both;visibility:hidden} + .filterbox .path-now{font-size: 16px;color: #333;margin-bottom:20px;} +
@@ -187,6 +198,27 @@
+
+ +
所有课程 @@ -200,7 +232,7 @@

- 安全测试基础课程 +