Commit fe3fd63a by zhanghaozhe

跳转视频页

parent e07c2fe5
......@@ -533,7 +533,7 @@ function CourseBottom(props) {
// Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>
Buttons = <a href="javascript:;" onClick={() => props.toDetail(props.item.course_id)} className={'bargain'}>我要砍价</a>
} else if (props.item.bargain_status === 3) {
Buttons = <Link to={`/play?id=${props.item.course_id}`} className={'bargain'}>去学习</Link>
Buttons = <Link to={`/play/video?id=${props.item.course_id}`} className={'bargain'}>去学习</Link>
} else {
Buttons = (
<div className="btns">
......
......@@ -263,7 +263,7 @@ class BtnStatus extends Component {
<i className='iconfont iconerji' />
<span>课程咨询</span>
</a>
<Link to={`/play?id=${info.v_course_id}`} className='btn btn-m bg-09f'>开始学习</Link>
<Link to={`/play/video?id=${info.v_course_id}`} className='btn btn-m bg-09f'>开始学习</Link>
</div>
}
{/*拼团 未开团*/}
......@@ -366,7 +366,7 @@ class BtnStatus extends Component {
{
info.aist_start_time === "" ?
(
<Link to={`/play?id=${info.v_course_id}`} className='btn btn-m learn-now'>
<Link to={`/play/video?id=${info.v_course_id}`} className='btn btn-m learn-now'>
<span>开始学习</span>
</Link>
......
......@@ -110,13 +110,13 @@ class OutLine extends Component {
{
// 已购买直播结束已上传视频:正常播放按钮,点击播放课程
!introduce.is_aist && item.class_status === 2 &&
<Link to={`/play?id=${introduce.v_course_id}`} className='iconfont icondanseshixintubiao-23 icon-right-22'></Link>
<Link to={`/play/video?id=${introduce.v_course_id}`} className='iconfont icondanseshixintubiao-23 icon-right-22'></Link>
}
{
// 返现课程 是返现课程 未开课 已开课 是返现课程 未开课 已开课 已练习
introduce.is_aist && item.is_open && introduce.is_baoming === 1 &&
<Link to={`/play?id=${introduce.v_course_id}`} className='aist aist_open'></Link>
<Link to={`/play/video?id=${introduce.v_course_id}`} className='aist aist_open'></Link>
}
......
......@@ -328,7 +328,7 @@ class Single extends Component {
<i className='iconfont icondanseshixintubiao-5'></i>
<span>购买成功</span>
</div>
<Link to={`/play?id=${getParam('id')}`} className='btn btn-18B4ED'>去学习</Link>
<Link to={`/play/video?id=${getParam('id')}`} className='btn btn-18B4ED'>去学习</Link>
</div>
}
{
......
......@@ -50,7 +50,7 @@ class FreeCourse extends PureComponent {
}
handleClick = id => {
this.props.history.push(`/play?id=${id}`)
this.props.history.push(`/play/video?id=${id}`)
}
getFreeCourses = () => {
......
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