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
430f3cb4
Commit
430f3cb4
authored
Aug 26, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu
parents
ac52a747
3cbeb4ae
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
7 deletions
+16
-7
src/components/detail/outline/index.js
+10
-2
src/components/study/myCourses/index.js
+2
-2
src/components/video/camp/campResolve.js
+1
-1
src/components/video/camp/campTest.js
+1
-1
src/components/video/video-catalog/index.js
+2
-1
No files found.
src/components/detail/outline/index.js
View file @
430f3cb4
...
...
@@ -168,13 +168,21 @@ class OutLine extends Component {
}
{
introduce
.
is_aist
&&
item
.
practice
.
title
!==
""
&&
item
.
is_open
&&
introduce
.
is_baoming
===
1
&&
!
item
.
practice
.
is_tested
&&
<
Link
to
=
{
`/campTest?keshi_id=
${
item
.
video_id
}
&qid=
${
item
.
practice
.
qid
}
`
}
className
=
'camp camp_test'
key
=
{
index
}
>
<
Link
to
=
{{
pathname
:
`/campTest`
,
search
:
`?keshi_id=
${
item
.
video_id
}
&qid=
${
item
.
practice
.
qid
}
`
,
state
:
{
from
:
`/detail
${
window
.
location
.
search
}
`
}
}}
className
=
'camp camp_test'
key
=
{
index
}
>
<
span
>
课后练习:
{
item
.
practice
.
title
}
<
/span
>
<
/Link
>
}
{
introduce
.
is_aist
&&
item
.
practice
.
title
!==
""
&&
item
.
is_open
&&
introduce
.
is_baoming
===
1
&&
item
.
practice
.
is_tested
&&
<
Link
to
=
{
`/campResolve?keshi_id=
${
item
.
video_id
}
&qid=
${
item
.
practice
.
qid
}
`
}
className
=
'camp camp_test'
key
=
{
index
}
>
<
Link
to
=
{{
pathname
:
`/campResolve`
,
search
:
`?keshi_id=
${
item
.
video_id
}
&qid=
${
item
.
practice
.
qid
}
`
,
state
:
{
from
:
`/detail
${
window
.
location
.
search
}
`
}
}}
className
=
'camp camp_test'
key
=
{
index
}
>
<
span
>
课后练习:
{
item
.
practice
.
title
}
<
/span
>
<
i
className
=
'exam exam_open'
/>
<
/Link
>
...
...
src/components/study/myCourses/index.js
View file @
430f3cb4
import
React
,
{
Pure
Component
}
from
"react"
import
React
,
{
Component
}
from
"react"
import
VList
from
'@/common/v-list-base'
import
'./my-courses.scss'
import
{
isToday
,
format
}
from
"date-fns"
...
...
@@ -68,7 +68,7 @@ const Bottom = React.memo(({item}) => {
)
})
class
MyCourses
extends
Pure
Component
{
class
MyCourses
extends
Component
{
list
...
...
src/components/video/camp/campResolve.js
View file @
430f3cb4
...
...
@@ -35,7 +35,7 @@ class CampResolve extends Component {
this
.
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
this
.
body
.
style
.
position
=
'static'
;
}
else
{
this
.
props
.
history
.
push
(
`
/detail?id=
${
this
.
course_id
}
`
,{
href
:
'/purchased'
})
this
.
props
.
history
.
push
(
`
${
this
.
props
.
location
.
state
.
from
}
`
,{
href
:
'/purchased'
})
}
};
componentDidMount
()
{
...
...
src/components/video/camp/campTest.js
View file @
430f3cb4
...
...
@@ -71,7 +71,7 @@ class CampTest extends Component {
this
.
body
=
document
.
getElementsByTagName
(
'body'
)[
0
];
this
.
body
.
style
.
position
=
'static'
;
}
else
{
this
.
props
.
history
.
push
(
`
/detail?id=
${
this
.
course_id
}
`
,{
href
:
'/classify'
})
this
.
props
.
history
.
push
(
`
${
this
.
props
.
location
.
state
.
from
}
`
,{
href
:
'/classify'
})
}
};
// 选择答案
...
...
src/components/video/video-catalog/index.js
View file @
430f3cb4
...
...
@@ -37,7 +37,8 @@ class VideoCatalog extends Component {
(
item
.
practice
&&
item
.
practice
.
qid
)
?
<
Link
to
=
{{
pathname
:
item
.
practice
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
item
.
practice
.
qid
}
`
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
item
.
practice
.
qid
}
`
,
state
:
{
from
:
`/play/video
${
window
.
location
.
search
}
`
}
}}
>
<
div
className
=
"exercise"
>
课后练习:
{
item
.
practice
.
title
}
...
...
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