Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
95b7bbab
Commit
95b7bbab
authored
Dec 27, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pythonClass' into dev
parents
5c14834e
ef92ec1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/common/v-list-base/index.js
+2
-3
src/components/study/myCourses/index.js
+10
-4
No files found.
src/common/v-list-base/index.js
View file @
95b7bbab
...
...
@@ -3,7 +3,7 @@ import './index.scss'
const
VList
=
(
props
)
=>
{
return
(
<
li
className
=
'v-list-base-item'
onClick
=
{
props
.
handleClick
.
bind
(
this
,
props
.
id
)}
>
<
li
className
=
'v-list-base-item'
onClick
=
{
props
.
handleClick
.
bind
(
this
,
props
.
id
,
props
.
item
)}
>
<
div
className
=
"content"
>
<
div
className
=
"cover"
>
{
props
.
status
}
...
...
@@ -16,4 +16,4 @@ const VList = (props) => {
);
};
export
default
VList
;
\ No newline at end of file
export
default
VList
;
src/components/study/myCourses/index.js
View file @
95b7bbab
...
...
@@ -76,8 +76,14 @@ class MyCourses extends Component {
isLoading
:
true
}
handleClick
=
id
=>
{
this
.
props
.
history
.
push
(
`/play/video?id=
${
id
}
`
)
handleClick
=
(
id
,
item
)
=>
{
const
{
history
}
=
this
.
props
const
{
mode
,
course_id
}
=
item
if
(
mode
&&
mode
==
6
){
history
.
push
(
`/python?id=
${
course_id
}
`
)
return
}
history
.
push
(
`/play/video?id=
${
id
}
`
)
}
addCourseClick
=
()
=>
{
this
.
props
.
history
.
push
(
'/classify'
)
...
...
@@ -164,6 +170,7 @@ class MyCourses extends Component {
info
=
{
Info
}
status
=
{
status
}
courseExpire
=
{
courseExpire
}
item
=
{
item
}
id
=
{
item
[
'v_course_id'
]}
/
>
)
...
...
@@ -200,4 +207,4 @@ export default connect(
{
fetchCoursesListIfNeeded
,
switchTab
})(
MyCourses
)
\ No newline at end of file
})(
MyCourses
)
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