Commit 03c68369 by FE

pull pre and slove conflict

parents a0443b45 3d5db90a
...@@ -109,10 +109,10 @@ class Index extends Component { ...@@ -109,10 +109,10 @@ class Index extends Component {
} }
toCourseDetail = (id) => { toCourseDetail = (id) => {
const { dispatch, history } = this.props; const {dispatch, history} = this.props;
// dispatch(getCourses(id, () => { // dispatch(getCourses(id, () => {
history.push(`/detail?id=${id}`); history.push(`/detail?id=${id}`);
return false; return false;
// })); // }));
} }
...@@ -138,7 +138,7 @@ class Index extends Component { ...@@ -138,7 +138,7 @@ class Index extends Component {
<div className='index-swiper'> <div className='index-swiper'>
{ {
this.state.banner && this.state.banner.length > 0 && this.state.banner && this.state.banner.length > 0 &&
<TopSwiper bannerList={this.state.banner} /> <TopSwiper bannerList={this.state.banner}/>
} }
</div> </div>
...@@ -148,10 +148,10 @@ class Index extends Component { ...@@ -148,10 +148,10 @@ class Index extends Component {
this.state.tabdata.map((item, index) => { this.state.tabdata.map((item, index) => {
return ( return (
<li key={index}> <li key={index}>
<Link to={item.href}> <a href={item.href}>
<img src={item.src} alt="" /> <img src={item.src} alt=""/>
<span>{item.name}</span> <span>{item.name}</span>
</Link> </a>
</li> </li>
) )
}) })
...@@ -159,7 +159,7 @@ class Index extends Component { ...@@ -159,7 +159,7 @@ class Index extends Component {
</ul> </ul>
</div> </div>
<p className="borderTop" /> <p className="borderTop"/>
{ {
...@@ -181,7 +181,7 @@ class Index extends Component { ...@@ -181,7 +181,7 @@ class Index extends Component {
modules={item} modules={item}
toDetail={this.toCourseDetail} toDetail={this.toCourseDetail}
/> />
<p className="borderTop" /> <p className="borderTop"/>
</div> </div>
) )
}) : null }) : null
...@@ -366,7 +366,7 @@ function ScrollBox(props) { ...@@ -366,7 +366,7 @@ function ScrollBox(props) {
{/*公开课需预约、付费课不需要预约*/} {/*公开课需预约、付费课不需要预约*/}
{ {
( item.is_prepare || item.is_free === 0) && item.live_status === 0 && (item.is_prepare || item.is_free === 0) && item.live_status === 0 &&
<p className="item-time">时间:{item.live_start_time}</p> <p className="item-time">时间:{item.live_start_time}</p>
} }
{ {
......
...@@ -579,8 +579,12 @@ class Detail extends Component { ...@@ -579,8 +579,12 @@ class Detail extends Component {
<ShareRank courseInfo={course_info}/> <ShareRank courseInfo={course_info}/>
} }
<<<<<<< HEAD
{ {
/** /**
=======
{/**
>>>>>>> 3d5db90ae5dc465dc6afedc3741fb67d7d7e3f0b
* 拼团 * 拼团
* is_aist: 是否AI特训营 * is_aist: 是否AI特训营
* group_status: 团状态,3:课程有小团 用户没参加小团;4:用户参加了小团 * group_status: 团状态,3:课程有小团 用户没参加小团;4:用户参加了小团
...@@ -595,9 +599,12 @@ class Detail extends Component { ...@@ -595,9 +599,12 @@ class Detail extends Component {
invitedFriends={this.invitedFriends} invitedFriends={this.invitedFriends}
/> />
} }
<<<<<<< HEAD
=======
>>>>>>> 3d5db90ae5dc465dc6afedc3741fb67d7d7e3f0b
{/*砍价*/} {/*砍价*/}
{ {
......
...@@ -167,7 +167,7 @@ class MyCourses extends Component { ...@@ -167,7 +167,7 @@ class MyCourses extends Component {
: :
<div className="empty"> <div className="empty">
<p><i className='iconfont iconfish'/></p> <p><i className='iconfont iconfish'/></p>
<p className='empty-prompt'>还是咸鱼一条,快去翻身~</p> <p className='empty-prompt'>您还没有课程哦,赶快去选课吧~</p>
<p> <p>
<Link className='select-course' to='/classify'>去选课</Link> <Link className='select-course' to='/classify'>去选课</Link>
</p> </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