Commit c54c38d9 by zhanghaozhe

Merge branch 'limit-free' into pre

parents 6df53996 4ff9966e
...@@ -357,15 +357,20 @@ function LimitFree({course}) { ...@@ -357,15 +357,20 @@ function LimitFree({course}) {
} }
//课程底部 //课程底部
function Bottom({course}){ function Bottom({course}) {
if(course.is_buy){ if (course.is_buy) {
if(course.is_limit_free && course.limit_free_status === 1){ if (course.is_limit_free && course.limit_free_status === 1) {
return <div class={'isbuy'}>已领取</div> return <div class={'isbuy'}>已领取</div>
}else { } else {
return <div className={'isbuy'}>已购买</div> return <div className={'isbuy'}>已购买</div>
} }
}else { } else {
return <LimitFree course={course}/> return course.is_limit_free
? <LimitFree course={course}/>
: <p className="course-price">
<span className="new">¥{course.discounts_price}</span>
<span className="old">¥{course.price}</span>
</p>
} }
} }
......
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