|
|
|
@ -31,6 +31,7 @@ class DetailTop extends Component{
|
|
|
|
|
}
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
let courseslist=[]
|
|
|
|
|
debugger
|
|
|
|
|
if(this.props.courses!=undefined&&this.props.courses.length!=0){
|
|
|
|
|
this.props.courses.map((item,key)=>{
|
|
|
|
|
if(1===key+1){
|
|
|
|
@ -260,7 +261,7 @@ class DetailTop extends Component{
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.tag-orange .tag-name{
|
|
|
|
|
.pathoranges .tag-name{
|
|
|
|
|
display: block;
|
|
|
|
|
width: auto;
|
|
|
|
|
background-color: #FF6800;
|
|
|
|
@ -277,7 +278,7 @@ class DetailTop extends Component{
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{this.props.courses===undefined?"":
|
|
|
|
|
<span className="tag-orange">
|
|
|
|
|
<span className="pathoranges">
|
|
|
|
|
<span className="tag-name mt6 ml10">开放课程</span>
|
|
|
|
|
</span>}
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?
|
|
|
|
|