Commit 4ca89907 by zhanghaozhe

已购买课程不显示优惠信息

parent a5e7bba4
...@@ -172,6 +172,7 @@ class Classify extends Component { ...@@ -172,6 +172,7 @@ class Classify extends Component {
</div> </div>
) )
const status = ( const status = (
!item.is_buy &&
<div> <div>
{item.bargain_num === 0 && item.groupon_num !== 0 && {item.bargain_num === 0 && item.groupon_num !== 0 &&
<p className='course-status'>拼团减{item.groupon_num}</p> <p className='course-status'>拼团减{item.groupon_num}</p>
......
...@@ -135,6 +135,7 @@ class Preferential extends Component { ...@@ -135,6 +135,7 @@ class Preferential extends Component {
</div> </div>
) )
const status = ( const status = (
!item.is_buy &&
<div> <div>
{this.state.courseStatus === 1 && {this.state.courseStatus === 1 &&
<p className='course-status'>砍价减{item.bargain_price}</p> <p className='course-status'>砍价减{item.bargain_price}</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