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
ef92ec1e
Commit
ef92ec1e
authored
Dec 27, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的课程页面开始学习跳转小课页面
parent
dee252cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/common/v-list-base/index.js
+1
-1
src/components/study/myCourses/index.js
+9
-2
No files found.
src/common/v-list-base/index.js
View file @
ef92ec1e
...
...
@@ -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
}
...
...
src/components/study/myCourses/index.js
View file @
ef92ec1e
...
...
@@ -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'
]}
/
>
)
...
...
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