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
cfe62e0e
Commit
cfe62e0e
authored
Mar 05, 2020
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
练习题数量显示问题 以及样式优化
parent
4be7157c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
src/components/video/index.js
+1
-0
src/components/video/video-catalog/index.js
+18
-1
src/components/video/video-catalog/video-catalog.scss
+6
-1
No files found.
src/components/video/index.js
View file @
cfe62e0e
...
...
@@ -851,6 +851,7 @@ class Video extends Component {
activeIndex
=
{
this
.
state
.
activeIndex
}
selectVideo
=
{
this
.
selectVideo
}
videoCatalog
=
{
videoList
}
isAist
=
{
course
.
is_aist
}
{...
props
}
/
>
);
...
...
src/components/video/video-catalog/index.js
View file @
cfe62e0e
...
...
@@ -34,7 +34,8 @@ class VideoCatalog extends Component {
)}
/
>
<
/div
>
{
(
item
.
practice
&&
item
.
practice
.
qid
)
this
.
props
.
isAist
?
(
(
item
.
practice
&&
item
.
practice
.
qid
)
?
<
Link
to
=
{{
pathname
:
item
.
practice
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
item
.
practice
.
qid
}
`
,
...
...
@@ -46,6 +47,22 @@ class VideoCatalog extends Component {
<
/div
>
<
/Link
>
:
null
)
:
(
item
.
practice_common
.
map
((
commonItem
,
index
)
=>
{
return
(
<
Link
to
=
{{
pathname
:
commonItem
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
commonItem
.
qid
}
`
,
state
:
{
from
:
`/play/video
${
window
.
location
.
search
}
`
}
}}
key
=
{
index
}
>
<
div
className
=
"exercise"
>
课后练习:
{
commonItem
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
!
item
.
video_auth
?
'iconiconfront-74'
:
commonItem
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
<
/div
>
<
/Link
>
)
})
)
}
<
/li
>
)
...
...
src/components/video/video-catalog/video-catalog.scss
View file @
cfe62e0e
...
...
@@ -33,11 +33,16 @@
}
}
a
:last-child
{
.exercise
{
margin-bottom
:
15px
;
}
}
.exercise
{
padding-left
:
15px
;
height
:
35px
;
background
:
#F5FBFF
;
margin-bottom
:
15px
;
line-height
:
35px
;
font-size
:
$font_12
;
color
:
#000
;
...
...
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