Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_hs
SylorHuang 5 years ago
commit bc3c51292a

@ -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;
}
`
}
</style>
@ -507,16 +522,16 @@ class DetailTop extends Component{
return(
<div key={key}>
{item.course_status.status===0?<div className="mr51 shixun_detail pointer fl user-colorgrey-green">即将开课</div>:""}
{item.course_status.status===1?<div className="mr51 shixun_detail pointer fl color-orange">{item.course_status.time}</div>:""}
{item.course_status.status===0?<div className="mr51 shixun_detail pointer fl user-colorgrey-green pathdefault">即将开课</div>:""}
{item.course_status.status===1?<div className="mr51 shixun_detail pointer fl color-orange pathdefault">{item.course_status.time}</div>:""}
{item.course_status.status===2?
detailInfoList.is_creator===true||detailInfoList.allow_add_member===true?<div className="mr51 shixun_detail pointer fl user-colorgrey-9b">已结束</div>:item.course_identity<6?
<div className="mr51 shixun_detail pointer fl user-colorgrey-9b">已结束</div>:"":""}
detailInfoList.is_creator===true||detailInfoList.allow_add_member===true?<div className="mr51 shixun_detail pointer fl user-colorgrey-9b pathdefault">已结束</div>:item.course_identity<6?
<div className="mr51 shixun_detail pointer fl user-colorgrey-9b pathdefault">已结束</div>:"":""}
{item.course_status.status===0?
detailInfoList.is_creator===true||detailInfoList.allow_add_member===true?<a className="fr user_default_btn task-btn-orange font-18 mt28 pathbtens" href={item.first_category_url} target="_blank">
进入课堂
</a>:item.course_identity<6?<div className="fr user_default_btn background191 font-18 mt28 pathbtens"></div>
</a>:item.course_identity<6?<div className="fr user_default_btn background191 font-18 mt28 pathbtens pathdefault"></div>
:<a className="fr user_default_btn task-btn-orange font-18 mt28 pathbtens" onClick={()=>this.JoinnowCourse(item.course_id)}>立即报名</a>:""}
{item.course_status.status===1?
@ -531,7 +546,7 @@ class DetailTop extends Component{
进入课堂
</a>:item.course_identity<6?<a className="fr user_default_btn task-btn-orange font-18 mt28 pathbtens" href={item.first_category_url} target="_blank">
进入课堂
</a>:<div className="fr user_default_btn background191 font-18 mt28 pathbtens"></div>:""}
</a>:<div className="fr user_default_btn background191 font-18 mt28 pathbtens pathdefault"></div>:""}
</div>
)})}

@ -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;
}
Loading…
Cancel
Save