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
64c4f679
Commit
64c4f679
authored
May 15, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:初始化
parent
c5711a3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
+5
-2
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
+2
-1
No files found.
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
View file @
64c4f679
...
@@ -653,7 +653,7 @@ class AddOfflineCourse extends React.Component {
...
@@ -653,7 +653,7 @@ class AddOfflineCourse extends React.Component {
}
}
whetherVisitorsJoinChange
=
()
=>
{
whetherVisitorsJoinChange
=
()
=>
{
if
(
this
.
props
.
data
.
whetherVisitorsJoin
===
"NO"
){
if
(
this
.
state
.
whetherVisitorsJoin
===
"NO"
){
this
.
setState
({
whetherVisitorsJoin
:
'YES'
});
this
.
setState
({
whetherVisitorsJoin
:
'YES'
});
}
else
{
}
else
{
this
.
setState
({
whetherVisitorsJoin
:
'NO'
});
this
.
setState
({
whetherVisitorsJoin
:
'NO'
});
...
@@ -842,7 +842,10 @@ class AddOfflineCourse extends React.Component {
...
@@ -842,7 +842,10 @@ class AddOfflineCourse extends React.Component {
<
span
className=
"label"
>
观看设置:
</
span
>
<
span
className=
"label"
>
观看设置:
</
span
>
<
div
className=
"content"
>
<
div
className=
"content"
>
<
div
>
<
div
>
<
Switch
checked=
{
whetherVisitorsJoin
===
"YES"
?
true
:
false
}
onChange=
{
this
.
whetherVisitorsJoinChange
}
/>
<
Switch
checked=
{
whetherVisitorsJoin
===
"YES"
?
true
:
false
}
onChange=
{
this
.
whetherVisitorsJoinChange
}
/>
</
div
>
</
div
>
<
div
>
<
div
>
<
div
className=
"desc"
>
<
div
className=
"desc"
>
...
...
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
View file @
64c4f679
...
@@ -67,7 +67,8 @@ class OfflineCourseList extends React.Component {
...
@@ -67,7 +67,8 @@ class OfflineCourseList extends React.Component {
width
:
321
,
width
:
321
,
fixed
:
'left'
,
fixed
:
'left'
,
render
:
(
val
,
record
)
=>
{
render
:
(
val
,
record
)
=>
{
const
{
coverUrl
,
courseName
,
offlinePlace
,
calendarTime
,
startTime
,
endTime
}
=
record
;
const
{
courseMediaVOS
,
courseName
,
offlinePlace
,
calendarTime
,
startTime
,
endTime
}
=
record
;
const
coverUrl
=
(
_
.
find
(
courseMediaVOS
,
data
=>
data
.
contentType
===
'COVER'
)
||
{}).
mediaUrl
;
return
(
return
(
<
div
className=
"record__item"
>
<
div
className=
"record__item"
>
<
img
className=
"course-cover"
src=
{
coverUrl
||
defaultCoverUrl
}
/>
<
img
className=
"course-cover"
src=
{
coverUrl
||
defaultCoverUrl
}
/>
...
...
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