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
fb7e2973
Commit
fb7e2973
authored
Mar 05, 2020
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
习题权限判断
parent
0dc80fe3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
src/components/video/video-catalog/index.js
+20
-2
No files found.
src/components/video/video-catalog/index.js
View file @
fb7e2973
...
...
@@ -35,6 +35,7 @@ class VideoCatalog extends Component {
<
/div
>
{
this
.
props
.
isAist
?
(
item
.
video_auth
?
(
(
item
.
practice
&&
item
.
practice
.
qid
)
?
<
Link
to
=
{{
pathname
:
item
.
practice
.
is_tested
?
'/campResolve'
:
'/campTest'
,
...
...
@@ -43,13 +44,22 @@ class VideoCatalog extends Component {
}}
>
<
div
className
=
"exercise"
>
课后练习:
{
item
.
practice
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
!
item
.
video_auth
?
'iconiconfront-74'
:
item
.
practice
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
<
i
className
=
{
classnames
(
'iconfont'
,
item
.
practice
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
<
/div
>
<
/Link
>
:
null
)
:
(
<
a
href
=
"javascript:void(0)"
>
<
div
className
=
"exercise"
>
课后练习:
{
item
.
practice
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
'iconiconfront-74'
)}
/
>
<
/div
>
<
/a
>
)
)
:
(
item
.
practice_common
.
map
((
commonItem
,
index
)
=>
{
return
(
item
.
video_auth
?
(
<
Link
to
=
{{
pathname
:
commonItem
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
commonItem
.
qid
}
`
,
...
...
@@ -57,9 +67,17 @@ class VideoCatalog extends Component {
}}
key
=
{
index
}
>
<
div
className
=
"exercise"
>
课后练习:
{
commonItem
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
!
item
.
video_auth
?
'iconiconfront-74'
:
commonItem
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
<
i
className
=
{
classnames
(
'iconfont'
,
commonItem
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
<
/div
>
<
/Link
>
)
:
(
<
a
href
=
"javascript:void(0)"
>
<
div
className
=
"exercise"
>
课后练习:
{
commonItem
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
'iconiconfront-74'
)}
/
>
<
/div
>
<
/a
>
)
)
})
)
...
...
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