Commit b3bbdbd8 by zhujian

fix:优化视频课跳转

parents 7e5808ef 5f71017f
...@@ -126,8 +126,13 @@ class VideoCourseList extends React.Component { ...@@ -126,8 +126,13 @@ class VideoCourseList extends React.Component {
width: 100, width: 100,
align: 'right', align: 'right',
render: (val, item) => { render: (val, item) => {
<<<<<<< HEAD
return <div onClick={() => this.handleLinkToCourseDetail(item.id)}>{val || 1}</div>; return <div onClick={() => this.handleLinkToCourseDetail(item.id)}>{val || 1}</div>;
}, },
=======
return <div onClick={() => this.handleLinkToCourseDetail(item.id)}>{val || 1}</div>
}
>>>>>>> feature/wufan/20210701/course-B-reform
}, },
{ {
title: ( title: (
...@@ -364,8 +369,8 @@ class VideoCourseList extends React.Component { ...@@ -364,8 +369,8 @@ class VideoCourseList extends React.Component {
// 显示分享弹窗 // 显示分享弹窗
handleShowShareModal = (record, needStr = false) => { handleShowShareModal = (record, needStr = false) => {
const { type } = this.props; const { type } = this.props;
const { id, scheduleVideoUrl } = record; const { id, scheduleVideoUrl, chapterNum } = record;
const htmlUrl = `${LIVE_SHARE}video_detail/${id}?id=${User.getStoreId()}`; const htmlUrl = chapterNum > 1 ? `${LIVE_SHARE}course_detail/${id}?id=${User.getStoreId()}` : `${LIVE_SHARE}video_detail/${id}?id=${User.getStoreId()}`;
const longUrl = htmlUrl; const longUrl = htmlUrl;
const { coverUrl, courseName } = record; const { coverUrl, courseName } = record;
const shareData = { const shareData = {
......
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