Commit 26dd2d75 by wangshuo

首页显示0修改

parent 1c9cd273
......@@ -142,23 +142,23 @@ class Index extends Component {
{
this.state.lives && this.state.lives.length > 0 &&
(this.state.lives && this.state.lives.length > 0) ?
<div className='lives'>
<h2 className="title">近期直播</h2>
<ScrollBox livesList={this.state.lives} liveCourse={this.liveCourse}/>
</div>
</div> : null
}
{
this.state.modules && this.state.modules.length > 0 && this.state.modules.map((item, index) => {
(this.state.modules && this.state.modules.length > 0) ? this.state.modules.map((item, index) => {
return (
<div key={index}>
<CourseList modules={item}/>
<p className="borderTop"></p>
</div>
)
})
}) : null
}
<div className="category all-course">
......
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