From 34ba43841bb5b1aae7aa47a9dafd0268233afbec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 22 Aug 2019 12:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=A6=E6=88=B7=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/paths/PathDetail/DetailTop.js | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js index 02df977d3..e0147917b 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.js +++ b/public/react/src/modules/paths/PathDetail/DetailTop.js @@ -205,6 +205,18 @@ class DetailTop extends Component{ } JoinnowCourse=(id)=>{ + + if(this.props.checkIfLogin()===false){ + this.props.showLoginDialog() + return + } + + if(this.props.current_user&&this.props.current_user.profile_completed===false){ + this.props.showProfileCompleteDialog() + return + } + + this.setState({ yslJointhe:true, Pathcourseid:id @@ -500,6 +512,9 @@ class DetailTop extends Component{ height: 44px !important; line-height: 44px !important; } + .pathdefault{ + cursor: default !important; + } ` } @@ -507,16 +522,16 @@ class DetailTop extends Component{ return(
- {item.course_status.status===0?
即将开课
:""} - {item.course_status.status===1?
{item.course_status.time}
:""} + {item.course_status.status===0?
即将开课
:""} + {item.course_status.status===1?
{item.course_status.time}
:""} {item.course_status.status===2? - detailInfoList.is_creator===true||detailInfoList.allow_add_member===true?
已结束
:item.course_identity<6? -
已结束
:"":""} + detailInfoList.is_creator===true||detailInfoList.allow_add_member===true?
已结束
:item.course_identity<6? +
已结束
:"":""} {item.course_status.status===0? detailInfoList.is_creator===true||detailInfoList.allow_add_member===true? 进入课堂 - :item.course_identity<6?
报名成功
+ :item.course_identity<6?
报名成功
:this.JoinnowCourse(item.course_id)}>立即报名:""} {item.course_status.status===1? @@ -531,7 +546,7 @@ class DetailTop extends Component{ 进入课堂 :item.course_identity<6? 进入课堂 - :
已结束
:""} + :
已结束
:""}
)})}