Commit ea6675dd by maolipeng

fix:进入企微直播间

parent 77b56557
...@@ -771,13 +771,27 @@ class LiveCourseList extends React.Component { ...@@ -771,13 +771,27 @@ class LiveCourseList extends React.Component {
}) })
return return
} }
WechatApi.enterLiveRoom(item.livingId).then((res)=> { CourseService.getWorkWXLiveCourseDetail({
console.log(res) liveCourseId: item.liveCourseId,
}).catch((err)=> { }).then((res) => {
Modal.warning({ const {
title:"提示", courseState
content: err } = res.result;
}) if (courseState === "FINISH") {
Modal.warning({
title:"刷新页面",
content:"该课程已结束,请查看回放"
})
} else {
WechatApi.enterLiveRoom(item.livingId).then((res)=> {
console.log(res)
}).catch((err)=> {
Modal.warning({
title:"提示",
content: err
})
})
}
}) })
return return
} }
......
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