Commit 5f71017f by zhujian

fix

parent 0da99e24
...@@ -126,8 +126,8 @@ class VideoCourseList extends React.Component { ...@@ -126,8 +126,8 @@ class VideoCourseList extends React.Component {
className: "chapterNum", className: "chapterNum",
width: 100, width: 100,
align: 'right', align: 'right',
render: (val,item) => { render: (val, item) => {
return <div onClick={()=>this.handleLinkToCourseDetail(item.id)}>{val || 1}</div> return <div onClick={() => this.handleLinkToCourseDetail(item.id)}>{val || 1}</div>
} }
}, },
{ {
...@@ -360,8 +360,8 @@ class VideoCourseList extends React.Component { ...@@ -360,8 +360,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