Commit a4c00237 by zhanghaozhe

已购课程

parent 05c71f51
...@@ -56,15 +56,23 @@ class Purchased extends Component { ...@@ -56,15 +56,23 @@ class Purchased extends Component {
</Link> </Link>
</p> </p>
<p className='contact text-overflow-2'>{item.simpledescription}</p> <p className='contact text-overflow-2'>{item.simpledescription}</p>
<div className='des'> {
QQ群:{item.course_qq} item.is_aist
</div> ? <div className='des'>助教微信:{item.assist_weixin}</div>
: <div className='des'>QQ群:{item.course_qq}</div>
}
</div> </div>
) )
const status = (
item.is_aist && <span className='status'>返现</span>
)
return ( return (
<VList key={index} img={item.image_name} <VList key={index}
img={item.image_name}
id={item.course_id} id={item.course_id}
info={Info}></VList> info={Info}
status={status}
/>
) )
}) })
} }
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
background-color: $bg_f5f5f5; background-color: $bg_f5f5f5;
.tip { .tip {
width: 100%; width: 100%;
height: 30px; height: 30px;
...@@ -15,6 +14,7 @@ ...@@ -15,6 +14,7 @@
background-color: $bg_FFF4CE; background-color: $bg_FFF4CE;
margin-bottom: 10px; margin-bottom: 10px;
} }
.purchased-body { .purchased-body {
background-color: $bg_fff; background-color: $bg_fff;
} }
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
.des { .des {
position: absolute; position: absolute;
bottom: 5px; bottom: 5px;
color: $red; color: $active;
font-size: 14px; font-size: 14px;
height: 14px; height: 14px;
line-height: 14px; line-height: 14px;
...@@ -96,4 +96,16 @@ ...@@ -96,4 +96,16 @@
line-height: 28px; line-height: 28px;
} }
} }
.status {
position: absolute;
top: 0;
right: 0;
padding: 2px 6px;
border-radius: 11px 0 0 11px;
font-size: 14px;
color: #fff;
background: linear-gradient(to bottom, #FF4000, #FD7700);
}
} }
\ No newline at end of file
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