From 720aad8a3a3b55d3a30455e9d65c18350269dc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 20 Aug 2019 12:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/paths/PathDetail/DetailTop.js | 21 +++++++++---------- .../paths/PathDetail/PathDetailIndex.js | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js index 14342aff6..7a1e74856 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.js +++ b/public/react/src/modules/paths/PathDetail/DetailTop.js @@ -321,7 +321,13 @@ class DetailTop extends Component{ { detailInfoList.allow_send === true?this.props.courses===undefined? :"":"" } - +
+ {this.props.courses===undefined?"":detailInfoList.is_creator===true?this.OpenCoursefun()}>开课:""} + {detailInfoList===undefined?"":detailInfoList.allow_statistics===true?this.props.courses===undefined?"": + 学习统计 + :"" + } +
{ @@ -335,11 +341,11 @@ class DetailTop extends Component{ { detailInfoList.member_count!=0 ?
  • 学习人数{detailInfoList.member_count}
  • : ""} } - {this.props.courses===undefined?
    +
    {detailInfoList===undefined?"":detailInfoList.allow_delete===true?删除路径:""} + >删除课程:""} { detailInfoList.publish_status===0&&detailInfoList.allow_add_member===true? @@ -356,16 +362,9 @@ class DetailTop extends Component{ detailInfoList.publish_status===2 && detailInfoList.allow_statistics===true? 撤销发布:"" } -
    :""} +
    - {this.props.courses===undefined?"":detailInfoList.is_creator===true?
    - this.OpenCoursefun()}>开课 - - 学习统计 - -
    :""} -
    {this.props.courses===undefined||this.props.courses.length===0?"":
    diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index d64763980..c576a3515 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -542,7 +542,7 @@ class PathDetailIndex extends Component{ { detailInfoList===undefined?"":detailInfoList.allow_add_member===true?
    {key!=0?
    this.moveup(item)}>
    :""} - {key+1!= members&&members.length?
    this.movedown(item)}>
    :""} + {key+1== members.length?"":
    this.movedown(item)}>
    }
    :"" }