Commit bee07508 by zhanghaozhe

限时免费

parent 591fea8d
...@@ -100,7 +100,7 @@ class LimitFree extends Component { ...@@ -100,7 +100,7 @@ class LimitFree extends Component {
<ul className={'courses'}> <ul className={'courses'}>
{ {
courses && courses.length && courses.map((item, index) => { courses && courses.length && courses.map((item, index) => {
if(item.category_id != key){ if (item.category_id != key) {
return null return null
} }
/* /*
...@@ -120,14 +120,26 @@ class LimitFree extends Component { ...@@ -120,14 +120,26 @@ class LimitFree extends Component {
<button>免费领取</button> <button>免费领取</button>
</div> </div>
break break
case 2: case 1:
des = <div className={'remain-time'}> des = <div className={'remain-time'}>
<i className={'iconfont iconiconfront-21'}/> <i className={'iconfont iconiconfront-21'}/>
<span>125555分后过期</span> <span>125555分后过期</span>
</div> </div>
bottom = <div className={'bottom'}>
<span className={'red'}>限时免费</span>
<span className={'origin-price'}>¥{item.price0}</span>
<button>立即学习</button>
</div>
break break
case 3: case 3:
des = <div className={'purchased'}>
<i className='iconfont iconRectangleCopy4'/>
<span>{item.play_times}人学习</span>
</div>
bottom = <div className="bottom">
<span>已购买</span>
<button>立即学习</button>
</div>
} }
const info = ( const info = (
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
.red { .red {
color: #FF2121; color: #FF2121;
font-size: 15px; font-size: 15px;
margin-right: 10px;
} }
.origin-price { .origin-price {
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
button { button {
width: 68px; width: 68px;
height: 24px; height: 24px;
float: right;
border-radius: 3px; border-radius: 3px;
background: #09f; background: #09f;
border: none; border: none;
...@@ -147,10 +148,19 @@ ...@@ -147,10 +148,19 @@
font-size: 13px; font-size: 13px;
color: #fff; color: #fff;
line-height: 24px; line-height: 24px;
-webkit-appearance: none;
} }
.bottom { .bottom {
width: 100%;
height: 24px;
align-self: flex-end; align-self: flex-end;
font-size: 0;
line-height: 24px;
span {
font-size: 12px;
}
} }
} }
......
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