Commit 4b1e510f by xuzhenghua

大颗模块二

parent c40cd6c4
...@@ -125,8 +125,8 @@ class YearCourse extends Component { ...@@ -125,8 +125,8 @@ class YearCourse extends Component {
if (code === 200) { if (code === 200) {
this.setState({ this.setState({
bigcourse: Object.assign({}, bigcourse, { bigcourse: Object.assign({}, bigcourse, {
isMore: data.length > 4 ? true : false, isMore: false,
course: data.length > 4 ? data.filter((item, index) => index < 4) : data, course: data,
courseList: data, courseList: data,
}) })
}) })
...@@ -493,7 +493,7 @@ class YearCourse extends Component { ...@@ -493,7 +493,7 @@ class YearCourse extends Component {
{ {
item.is_buy == 0 && item.is_buy == 0 &&
<a onClick={() => this.toQQque()} <a onClick={() => this.toQQque()}
className="btn big-course">速抢拼团名额</a> className="btn big-course">免费试听</a>
} }
</div> </div>
...@@ -501,12 +501,12 @@ class YearCourse extends Component { ...@@ -501,12 +501,12 @@ class YearCourse extends Component {
)) ))
} }
</div> </div>
{ {/*{*/}
(bigcourse.courseList && bigcourse.courseList.length > 4) && {/*(bigcourse.courseList && bigcourse.courseList.length > 4) &&*/}
<button className="more-button" onClick={() => this.handleToMore('bigcourse')}> {/*<button className="more-button" onClick={() => this.handleToMore('bigcourse')}>*/}
{bigcourse.isMore ? '查看更多' : '收起'} {/*{bigcourse.isMore ? '查看更多' : '收起'}*/}
</button> {/*</button>*/}
} {/*}*/}
</> </>
} }
</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