From b284b2f650dc8e069798ba9238eb6ad2d60dbdf6 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Thu, 5 Sep 2019 14:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AF=BE=E7=A8=8B=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=A0=B7=E5=BC=8F=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/paths/ShixunPathCard.js | 43 ++++--- .../src/modules/paths/ShixunPathSearch.js | 21 +-- .../react/src/modules/paths/ShixunPaths.css | 120 ++++++++++++++++++ 3 files changed, 154 insertions(+), 30 deletions(-) diff --git a/public/react/src/modules/paths/ShixunPathCard.js b/public/react/src/modules/paths/ShixunPathCard.js index 166c6415a..a5ac0b3d3 100644 --- a/public/react/src/modules/paths/ShixunPathCard.js +++ b/public/react/src/modules/paths/ShixunPathCard.js @@ -22,21 +22,21 @@ class ShixunPathCard extends Component{ pathList && pathList.map((item,key)=>{ return( -
+
- { - item.tag_name === null ? "" : + + {/* item.tag_name === null ? "" :
{item.tag_name} - {/**/} -
- } + +
*/} + { item.excellent === false ? "" : -
- 开放课程 +
+ 开放课程
} @@ -45,28 +45,29 @@ class ShixunPathCard extends Component{ className="mt80 mb25"/>

非试用内容,需要授权

- + {/*target="_blank"*/} - 详情图片 + 详情图片 -
-

- {item.name} +

+

+ {item.name} {/*target="_blank"*/}

-

+

- - {item.stages_count} - + {/* */} + {/* */} + 章节: {item.stages_count} + {/* */} {/**/} {/*{item.shixuns_count}*/} {/**/} - - - {item.members_count} - + {/* */} + {/* */} + 学习人数: {item.members_count} + {/* */}

diff --git a/public/react/src/modules/paths/ShixunPathSearch.js b/public/react/src/modules/paths/ShixunPathSearch.js index c0060a528..c88563e07 100644 --- a/public/react/src/modules/paths/ShixunPathSearch.js +++ b/public/react/src/modules/paths/ShixunPathSearch.js @@ -7,8 +7,8 @@ import Pagination from '@icedesign/base/lib/pagination'; import '@icedesign/base/lib/pagination/style.js'; import './ShixunPaths.css'; +import path from '../../images/path/path.png'; -const Search = Input.Search; class ShixunPathSearch extends Component{ constructor(props) { @@ -122,9 +122,12 @@ class ShixunPathSearch extends Component{ {this.state.updata===undefined?"":} -
-
-
+
+
+ +
+
+
  • 0 ? "" : "active"}>this.changeSelect(null)}>全部
  • { sortList && sortList.map((item,key)=>{ @@ -133,18 +136,18 @@ class ShixunPathSearch extends Component{ ) }) } -
+
-
+
{/* this.changeStatus("publish_time")}>全部*/} {/* this.changeStatus("mine")}>我的*/} - this.changeStatus("updated_at")}>最新 - this.changeStatus("myshixun_count")}>最热 + this.changeStatus("updated_at")}>最新 + this.changeStatus("myshixun_count")}>最热 {/*
*/} {/*/!*