dev_oauth
杨树明 6 years ago
parent 8cd8843736
commit 790fa4e6ac

@ -115,7 +115,7 @@ em.vertical-line{display: inline-block;width: 2px;background: #999;height: 10px}
.tag-green{ .tag-green{
position: absolute; position: absolute;
left: 10px; left: 10px;
bottom: 95px;} bottom: 90px;}
.tag-green .tag-name{display: block;width: auto; .tag-green .tag-name{display: block;width: auto;
/*background-image: url("/images/educoder/tag1.png");*/ /*background-image: url("/images/educoder/tag1.png");*/
background: #000000; background: #000000;
@ -123,7 +123,7 @@ em.vertical-line{display: inline-block;width: 2px;background: #999;height: 10px}
border-radius: 3px; border-radius: 3px;
font-size: 14px; font-size: 14px;
background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;} background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;}
.tag-orange{position: absolute;right: 0px;top:20px;} .tag-orange{position: absolute;right: 0px;top:12px;}
.tag-orange .tag-name{display: block;width: auto;background-color:#FF6800; .tag-orange .tag-name{display: block;width: auto;background-color:#FF6800;
background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left; background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;
height: 28px; height: 28px;

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

@ -117,7 +117,7 @@ em.vertical-line{display: inline-block;width: 2px;background: #999;height: 10px}
.tag-green{ .tag-green{
position: absolute; position: absolute;
left: 10px; left: 10px;
bottom: 95px;} bottom: 90px;}
.tag-green .tag-name{display: block;width: auto; .tag-green .tag-name{display: block;width: auto;
/*background-image: url("/images/educoder/tag1.png");*/ /*background-image: url("/images/educoder/tag1.png");*/
background: #000000; background: #000000;
@ -125,7 +125,7 @@ em.vertical-line{display: inline-block;width: 2px;background: #999;height: 10px}
border-radius: 3px; border-radius: 3px;
font-size: 14px; font-size: 14px;
background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;} background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;}
.tag-orange{position: absolute;right: 0px;top:20px;} .tag-orange{position: absolute;right: 0px;top:12px;}
.tag-orange .tag-name{display: block;width: auto;background-color:#FF6800; .tag-orange .tag-name{display: block;width: auto;background-color:#FF6800;
background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left; background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;
height: 28px; height: 28px;

Loading…
Cancel
Save