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
a5e7bba4
Commit
a5e7bba4
authored
Sep 04, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击课程整个区域都可进详情页
parent
04a31d85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/common/VList/index.js
+4
-7
No files found.
src/common/VList/index.js
View file @
a5e7bba4
import
React
from
'react'
;
import
'./index.scss'
import
{
Link
}
from
'react-router-dom'
const
VList
=
(
props
)
=>
{
return
(
<
li
className
=
'v-list-item'
>
<
li
className
=
'v-list-item'
onClick
=
{()
=>
props
.
toDetail
(
props
.
id
)}
>
<
div
className
=
"content"
>
<
div
className
=
"cover"
>
{
props
.
status
}
{
/* <Link to={`/detail?id=${props.id}`}> */
}
{
props
.
toDetail
?(
<
img
src
=
{
props
.
img
}
alt
=
""
onClick
=
{()
=>
props
.
toDetail
(
props
.
id
)}
/>
)
:(
<
img
src
=
{
props
.
img
}
alt
=
""
/>
)
{
props
.
toDetail
?
(
<
img
src
=
{
props
.
img
}
alt
=
""
/>
)
:
(
<
img
src
=
{
props
.
img
}
alt
=
""
/>
)
}
{
/* </Link> */
}
<
/div
>
{
props
.
info
}
<
/div
>
...
...
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