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
8c55c8bc
Commit
8c55c8bc
authored
Apr 22, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大小写
parent
3102358e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
.idea/workspace.xml
+0
-0
src/common/Topscroll/index.js
+0
-1
src/components/classify/courselist.js
+2
-2
src/components/classify/courselist.scss
+9
-1
No files found.
.idea/workspace.xml
View file @
8c55c8bc
This diff is collapsed.
Click to expand it.
src/common/Topscroll/index.js
View file @
8c55c8bc
...
...
@@ -21,7 +21,6 @@ class Topscroll extends Component {
background
:
'#fff'
,
borderRadius
:
'4px'
,
}}
beforeChange
=
{(
from
,
to
)
=>
console
.
log
(
`slide from
${
from
}
to
${
to
}
`
)}
afterChange
=
{
index
=>
this
.
setState
({
slideIndex
:
index
})}
>
{
this
.
props
.
data
.
map
((
val
,
index
)
=>
(
...
...
src/components/classify/courselist.js
View file @
8c55c8bc
...
...
@@ -58,7 +58,7 @@ class Classify extends Component {
{
this
.
state
.
mockData
.
map
((
item
,
index
)
=>
{
const
Info
=
(
<
div
className
=
"info"
>
<
p
className
=
'title
text-overflow-2
'
>
{
item
.
title
}
<
/p
>
<
p
className
=
'title'
>
{
item
.
title
}
<
/p
>
<
p
className
=
'contact text-overflow-2'
>
{
item
.
contact
}
<
/p
>
<
div
className
=
'des'
>
{
item
.
isbuy
===
0
&&
<
p
className
=
"course-price"
>
...
...
@@ -73,7 +73,7 @@ class Classify extends Component {
<
/div
>
)
return
(
<
VList
handleClick
=
{
handleClick
}
{...
item
}
key
=
{
index
}
info
=
{
Info
}
><
/VList
>
<
VList
handleClick
=
{
handleClick
}
key
=
{
index
}
info
=
{
Info
}
><
/VList
>
)
})}
<
/ul
>
...
...
src/components/classify/courselist.scss
View file @
8c55c8bc
...
...
@@ -5,14 +5,21 @@
.cover
{
flex
:
inherit
;
width
:
42
.2%
;
img
{
width
:
100%
;
}
}
}
.info
{
width
:
52
.3%
;
position
:
relative
;
.title
{
font-size
:
16px
;
color
:
$color_333
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.contact
{
font-size
:
14px
;
...
...
@@ -20,7 +27,8 @@
margin-top
:
14px
;
}
.des
{
margin-top
:
25px
;
position
:
absolute
;
bottom
:
0
;
.course-price
{
.new
{
color
:
$red
;
...
...
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