Commit df12fe0d by wangshuo

特训营返现标签添加

parent 9b966c69
...@@ -230,8 +230,11 @@ function CourseList({modules}) { ...@@ -230,8 +230,11 @@ function CourseList({modules}) {
{item.is_audition === true && {item.is_audition === true &&
<span className='audition'><i className={'iconfont iconerji'}></i>试听</span> <span className='audition'><i className={'iconfont iconerji'}></i>试听</span>
} }
{item.is_aist &&
<span className='return_bash'></span>
}
</div> </div>
) );
const bottom = ( const bottom = (
<div> <div>
......
...@@ -308,6 +308,16 @@ ...@@ -308,6 +308,16 @@
} }
} }
.return_bash {
position: absolute;
top: 0;
right: 0;
width: 31px;
height: 18px;
background: url("./image/return.icon.png") no-repeat;
background-size: 100% 100%;
}
.course-price { .course-price {
margin-top: 15px; margin-top: 15px;
......
...@@ -81,8 +81,13 @@ function ClassCourseA({data}) { ...@@ -81,8 +81,13 @@ function ClassCourseA({data}) {
{ {
data && data.length > 0 && data.map((item, index) => { data && data.length > 0 && data.map((item, index) => {
return ( return (
<Link to={`/detail?id=${item.course_id}`} key={index} className='item-banner'><img <Link to={`/detail?id=${item.course_id}`} key={index} className='item-banner'>
src={item.course_img} alt=""/></Link> <img src={item.course_img} alt=""/>
{
(item.is_aist &&
<span className='return_cash'></span>)
}
</Link>
) )
}) })
} }
......
...@@ -37,11 +37,22 @@ ...@@ -37,11 +37,22 @@
height: 76px; height: 76px;
margin-top: 10px; margin-top: 10px;
margin-right: 13px; margin-right: 13px;
position: relative;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 3px; border-radius: 3px;
} }
.return_cash {
position: absolute;
width: 31px;
height: 18px;
top: 0;
right: 0;
background: url("./image/return.icon.png") no-repeat;
background-size: 100% 100%;
}
} }
.item-label { .item-label {
......
...@@ -184,6 +184,11 @@ class Detail extends Component { ...@@ -184,6 +184,11 @@ class Detail extends Component {
<div className='cover'> <div className='cover'>
<img src={courseInfo.image_name} <img src={courseInfo.image_name}
alt=""/> alt=""/>
{
(courseInfo.is_aist &&
<span className='return_cash'></span>
)
}
</div> </div>
<div className="info"> <div className="info">
<p className='title'>{courseInfo.course_title}</p> <p className='title'>{courseInfo.course_title}</p>
......
...@@ -24,12 +24,23 @@ ...@@ -24,12 +24,23 @@
.cover { .cover {
width: 42.2%; width: 42.2%;
height: 108px; height: 108px;
position: relative;
img { img {
border-radius: 3px; border-radius: 3px;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.return_cash {
position: absolute;
top: 0;
right: 0;
width: 31px;
height: 18px;
background: url("./image/return.icon.png") no-repeat;
background-size: 100% 100%;
}
} }
.info { .info {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment