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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
22 deletions
+40
-22
src/components/video/video-catalog/index.js
+40
-22
No files found.
src/components/video/video-catalog/index.js
View file @
fb7e2973
...
...
@@ -35,31 +35,49 @@ class VideoCatalog extends Component {
<
/div
>
{
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
}
`
,
state
:
{
from
:
`/play/video
${
window
.
location
.
search
}
`
}
}}
>
<
div
className
=
"exercise"
>
课后练习:
{
item
.
practice
.
title
}
<
i
className
=
{
classnames
(
'iconfont'
,
!
item
.
video_auth
?
'iconiconfront-74'
:
item
.
practice
.
is_tested
?
'iconiconfront-3'
:
''
)}
/
>
<
/div
>
<
/Link
>
:
null
item
.
video_auth
?
(
(
item
.
practice
&&
item
.
practice
.
qid
)
?
<
Link
to
=
{{
pathname
:
item
.
practice
.
is_tested
?
'/campResolve'
:
'/campTest'
,
search
:
`?keshi_id=
${
item
.
id
}
&qid=
${
item
.
practice
.
qid
}
`
,
state
:
{
from
:
`/play/video
${
window
.
location
.
search
}
`
}
}}
>
<
div
className
=
"exercise"
>
课后练习:
{
item
.
practice
.
title
}
<
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
(
<
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
>
item
.
video_auth
?
(
<
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'
,
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