diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js
index 02df977d3..cd987b074 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?
进入课堂
- :
已结束
:""}
+ :
已结束
:""}
)})}
diff --git a/public/react/src/modules/tpm/shixuns/shixunCss/shixunCard.css b/public/react/src/modules/tpm/shixuns/shixunCss/shixunCard.css
index 1bd948427..f3c4a30da 100644
--- a/public/react/src/modules/tpm/shixuns/shixunCss/shixunCard.css
+++ b/public/react/src/modules/tpm/shixuns/shixunCss/shixunCard.css
@@ -1,45 +1,45 @@
-.ml350 {
- margin-left: 40%;
-}
-
-.ml32 {
- margin-left: 32%;
-}
-
-.square-Item{
- min-height: 324px;
-}
-.square-img{
- min-height: 210px;
-}
-.task-hide{
- margin-bottom: 0em;
-}
-.backFAFAFA{
- background:#FAFAFA;
-}
-
-.demo {
- width: 500px;
- background-color: #0dcecb;
- text-align: center;
- padding:50px;
-}
-.next-loading {
- margin-bottom: 5px;
- width:100%;
-}
-
-.next-rating-overlay .next-icon{
- color: #FFA800!important;
-}
-
-.custom-pagination {
- display: inline-block;
- margin-left: 10px;
-}
-
-.ml425{
- margin-left:42.5%;
- margin-top:20px;
+.ml350 {
+ margin-left: 40%;
+}
+
+.ml32 {
+ margin-left: 32%;
+}
+
+.square-Item{
+ /*min-height: 324px;*/
+}
+.square-img{
+ min-height: 210px;
+}
+.task-hide{
+ margin-bottom: 0em;
+}
+.backFAFAFA{
+ background:#FAFAFA;
+}
+
+.demo {
+ width: 500px;
+ background-color: #0dcecb;
+ text-align: center;
+ padding:50px;
+}
+.next-loading {
+ margin-bottom: 5px;
+ width:100%;
+}
+
+.next-rating-overlay .next-icon{
+ color: #FFA800!important;
+}
+
+.custom-pagination {
+ display: inline-block;
+ margin-left: 10px;
+}
+
+.ml425{
+ margin-left:42.5%;
+ margin-top:20px;
}
\ No newline at end of file