Commit bbd583c0 by wangshuo

未拆数量为0不显示浮框

parent d294372d
......@@ -608,14 +608,16 @@ class YearCourse extends Component {
const { stage,treasureStage } = this.props
return (
<div className={'year-index-course'}>
<div className='nav-right-wish nav-right'>
<span onClick={this.toBoxList} className='nav-right__link'>未开宝箱
{
removable > 0 &&
<i className="nav-right__number">{removable}</i>
}
</span>
</div>
{
removable > 0 && (
<div className='nav-right-wish nav-right'>
<span onClick={this.toBoxList} className='nav-right__link'>未开宝箱
<i className="nav-right__number">{removable}</i>
</span>
</div>
)
}
</div>
)
}
......
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