Commit 92a64eae by maolipeng

fix:去掉企微直播限制

parent 0997c860
...@@ -160,20 +160,6 @@ function CreateWorkWXCourse() { ...@@ -160,20 +160,6 @@ function CreateWorkWXCourse() {
setBasicInfo(binfo) setBasicInfo(binfo)
}; };
// 修改上课信息
function handleChangeClassInfo(field, value, type, optionValue) {
const _value = value ? value.valueOf() : null;
const { teacherName, assistantNames, assistantStoreUserId } = addLiveClassInfo;
let _addLiveClassInfo = {
addLiveClassInfo,
[field]: _value,
teacherName: type === 'teacherType' ? optionValue : teacherName,
assistantNames: type === 'assistantType' ? _.pluck(optionValue, 'children') : assistantNames,
assistantStoreUserId: type === 'assistantType' ? _.pluck(optionValue, 'key') : assistantStoreUserId,
}
setAddLiveClassInfo(_addLiveClassInfo)
};
//课程信息变更回调 //课程信息变更回调
function onClassInfoChange(field, value) { function onClassInfoChange(field, value) {
let classinfo = {...classInfo} let classinfo = {...classInfo}
......
...@@ -724,18 +724,6 @@ class LiveCourseList extends React.Component { ...@@ -724,18 +724,6 @@ class LiveCourseList extends React.Component {
}; };
//进入直播间 //进入直播间
handleEnterLiveRoom = (item) => { handleEnterLiveRoom = (item) => {
if (item.startTime - Date.now() > 1800000) {
Modal.warning({
title: '你来得太早了',
okText: '我知道了',
content: '请于开始上课前30分钟来直播上课。',
icon: (
<span className='icon iconfont default-confirm-icon' style={{ color: '#FFBB54 !important' }}>
&#xe834;
</span>
),
});
} else {
if (item.thirdPartType === "WECHAT") { if (item.thirdPartType === "WECHAT") {
//进入企微直播间 //进入企微直播间
if (!isWorkWx()) { if (!isWorkWx()) {
...@@ -752,6 +740,18 @@ class LiveCourseList extends React.Component { ...@@ -752,6 +740,18 @@ class LiveCourseList extends React.Component {
}) })
return return
} }
if (item.startTime - Date.now() > 1800000) {
Modal.warning({
title: '你来得太早了',
okText: '我知道了',
content: '请于开始上课前30分钟来直播上课。',
icon: (
<span className='icon iconfont default-confirm-icon' style={{ color: '#FFBB54 !important' }}>
&#xe834;
</span>
),
});
} else {
CourseService.getLiveCloudCourseDetail({ CourseService.getLiveCloudCourseDetail({
liveCourseId: item.liveCourseId, liveCourseId: item.liveCourseId,
}).then((res) => { }).then((res) => {
......
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