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
d33bb7e2
Commit
d33bb7e2
authored
Jul 14, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
272f23a4
5b5c23ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
+21
-7
No files found.
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
View file @
d33bb7e2
...
...
@@ -340,9 +340,16 @@ class AddOfflineCourse extends React.Component {
handleSelectCover
=
(
file
)
=>
{
this
.
setState
({
visible
:
true
,
<
<<<<<<
HEAD
imageFile
:
file
,
});
};
=======
imageFile
:
file
});
}
>
>>>>>>
feature/wufan/20210701/course-B-reform
//获取resourceId
getSignature = (blob, fileName) =
>
{
...
...
@@ -653,6 +660,11 @@ class AddOfflineCourse extends React.Component {
}
;
whetherVisitorsJoinChange = () =
>
{
const
{
whetherSetApply
,
whetherVisitorsJoin
}
=
this
.
state
;
if
(
whetherSetApply
==
'NO'
){
message
.
warning
(
'关闭报名无法获取手机号!'
)
return
}
if
(
this
.
state
.
whetherVisitorsJoin
===
'NO'
)
{
this
.
setState
({
whetherVisitorsJoin
:
'YES'
});
}
else
{
...
...
@@ -847,13 +859,7 @@ class AddOfflineCourse extends React.Component {
})
}
</
Select
>
</
div
>
<
div
className=
'allow-tourist-join'
>
<
span
className=
'label'
>
观看设置:
</
span
>
<
div
className=
'content'
>
<
Switch
checked=
{
whetherVisitorsJoin
===
'NO'
?
true
:
false
}
onChange=
{
this
.
whetherVisitorsJoinChange
}
/>
<
div
className=
'desc'
>
{
whetherVisitorsJoin
===
'NO'
?
'已开启,学员需绑定手机号才可观看'
:
'已关闭,学员无需绑定手机号即可观看'
}
</
div
>
</
div
>
</
div
>
<
div
className=
'introduce'
>
<
span
className=
'label'
>
课程简介:
</
span
>
<
div
className=
'content'
>
...
...
@@ -957,6 +963,7 @@ class AddOfflineCourse extends React.Component {
startTimeApply
:
undefined
,
endTimeApply
:
undefined
,
quota
:
null
,
whetherVisitorsJoin
:
whetherSetApply
!==
'YES'
?
whetherVisitorsJoin
:
false
});
}
}
/>
...
...
@@ -1068,6 +1075,13 @@ class AddOfflineCourse extends React.Component {
)
}
</
div
>
</
div
>
<
div
className=
'allow-tourist-join'
>
<
span
className=
'label'
>
观看设置:
</
span
>
<
div
className=
'content'
>
<
Switch
checked=
{
whetherVisitorsJoin
===
'NO'
?
true
:
false
}
onChange=
{
this
.
whetherVisitorsJoinChange
}
/>
<
div
className=
'desc'
>
{
whetherVisitorsJoin
===
'NO'
?
'已开启,仅限绑定了手机号的学员报名线下课'
:
'已关闭,允许未绑定手机号的学员报名线下课'
}
</
div
>
</
div
>
</
div
>
<
div
className=
'course-catalog'
>
<
span
className=
'label'
>
考勤签到:
</
span
>
<
div
className=
'switch-box'
>
...
...
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