diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.css b/public/react/src/modules/paths/PathDetail/DetailTop.css index 76b35177a..d29161542 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.css +++ b/public/react/src/modules/paths/PathDetail/DetailTop.css @@ -1,3 +1,18 @@ -.userbluebgfont{ - color:#fff !important; -} \ No newline at end of file +.userbluebgfont{ + color:#fff !important; +} + +.kaike{ + border-radius: 4px; + border: 1px solid rgba(255,255,255); + padding: 0px 10px; + cursor: pointer; + font-size: 14px; + display: block; + width: 120px; + text-align: center; + height: 40px; + line-height: 40px!important; + border-radius: 4px; + box-sizing: border-box; +} diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js index 701a2a3da..56c62beb1 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.js +++ b/public/react/src/modules/paths/PathDetail/DetailTop.js @@ -167,8 +167,30 @@ class DetailTop extends Component{
{detailInfoList.name} - + + {this.props.courses===undefined?"": + + 开放课程 + } {detailInfoList===undefined?"":detailInfoList.allow_statistics===true? @@ -202,34 +224,47 @@ class DetailTop extends Component{ { detailInfoList.member_count!=0 ?
  • 学习人数{detailInfoList.member_count}
  • : ""} } -
    - {detailInfoList===undefined?"":detailInfoList.allow_delete===true?删除路径:""} - - { - detailInfoList.publish_status===0&&detailInfoList.allow_add_member===true? - 申请发布:"" - } - - - { - detailInfoList.publish_status===1 && detailInfoList.allow_statistics===true? - 撤销申请:"" - } - - { - detailInfoList.publish_status===2 && detailInfoList.allow_statistics===true? - 撤销发布:"" - } -
    + {/*
    */} + {/*{detailInfoList===undefined?"":detailInfoList.allow_delete===true?删除路径:""}*/} + + {/*{*/} + {/*detailInfoList.publish_status===0&&detailInfoList.allow_add_member===true?*/} + {/*申请发布:""*/} + {/*}*/} + + + {/*{*/} + {/*detailInfoList.publish_status===1 && detailInfoList.allow_statistics===true?*/} + {/*撤销申请:""*/} + {/*}*/} + + {/*{*/} + {/*detailInfoList.publish_status===2 && detailInfoList.allow_statistics===true?*/} + {/*撤销发布:""*/} + {/*}*/} + {/*
    */} + + +
    + + 开课 + 学习统计 + +
    +
    } diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index 00594b921..3dbd27992 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -81,6 +81,7 @@ class PathDetailIndex extends Component{ cardsModalsave:this.cardsModalsave, user_id:undefined, loadtype:false, + courses:undefined, items: getItems(10) } this.onDragEnd = this.onDragEnd.bind(this); @@ -161,6 +162,7 @@ class PathDetailIndex extends Component{ if(result.data.allow_visit===true){ this.setState({ detailInfoList:result.data, + courses:result.data.courses // items: getItems(result.data.members.length), }) } @@ -364,6 +366,7 @@ class PathDetailIndex extends Component{ progress, members, tags, + courses, } = this.state console.log(this.props.checkIfLogin())