Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
92a64eae
Commit
92a64eae
authored
Aug 04, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:去掉企微直播限制
parent
0997c860
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
26 deletions
+12
-26
src/modules/course-manage/components/CreateWorkWXCourse.jsx
+0
-14
src/modules/course-manage/components/LiveCourseList.jsx
+12
-12
No files found.
src/modules/course-manage/components/CreateWorkWXCourse.jsx
View file @
92a64eae
...
...
@@ -160,20 +160,6 @@ function CreateWorkWXCourse() {
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
)
{
let
classinfo
=
{...
classInfo
}
...
...
src/modules/course-manage/components/LiveCourseList.jsx
View file @
92a64eae
...
...
@@ -724,18 +724,6 @@ class LiveCourseList extends React.Component {
};
//进入直播间
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'
}
}
>

</
span
>
),
});
}
else
{
if
(
item
.
thirdPartType
===
"WECHAT"
)
{
//进入企微直播间
if
(
!
isWorkWx
())
{
...
...
@@ -752,6 +740,18 @@ class LiveCourseList extends React.Component {
})
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'
}
}
>

</
span
>
),
});
}
else
{
CourseService
.
getLiveCloudCourseDetail
({
liveCourseId
:
item
.
liveCourseId
,
}).
then
((
res
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment