Commit 8c55c8bc by xuzhenghua

大小写

parent 3102358e
...@@ -21,7 +21,6 @@ class Topscroll extends Component { ...@@ -21,7 +21,6 @@ class Topscroll extends Component {
background: '#fff', background: '#fff',
borderRadius: '4px', borderRadius: '4px',
}} }}
beforeChange={(from, to) => console.log(`slide from ${from} to ${to}`)}
afterChange={index => this.setState({ slideIndex: index })} afterChange={index => this.setState({ slideIndex: index })}
> >
{this.props.data.map((val, index) => ( {this.props.data.map((val, index) => (
......
...@@ -58,7 +58,7 @@ class Classify extends Component { ...@@ -58,7 +58,7 @@ class Classify extends Component {
{this.state.mockData.map((item, index) => { {this.state.mockData.map((item, index) => {
const Info = ( const Info = (
<div className="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> <p className='contact text-overflow-2'>{item.contact}</p>
<div className='des'> <div className='des'>
{item.isbuy === 0 && <p className="course-price"> {item.isbuy === 0 && <p className="course-price">
...@@ -73,7 +73,7 @@ class Classify extends Component { ...@@ -73,7 +73,7 @@ class Classify extends Component {
</div> </div>
) )
return ( return (
<VList handleClick={handleClick} {...item} key={index} info={Info}></VList> <VList handleClick={handleClick} key={index} info={Info}></VList>
) )
})} })}
</ul> </ul>
......
...@@ -5,14 +5,21 @@ ...@@ -5,14 +5,21 @@
.cover { .cover {
flex: inherit; flex: inherit;
width: 42.2%; width: 42.2%;
img {
width: 100%;
}
} }
} }
.info { .info {
width: 52.3%; width: 52.3%;
position: relative;
.title { .title {
font-size: 16px; font-size: 16px;
color: $color_333; color: $color_333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.contact { .contact {
font-size: 14px; font-size: 14px;
...@@ -20,7 +27,8 @@ ...@@ -20,7 +27,8 @@
margin-top: 14px; margin-top: 14px;
} }
.des { .des {
margin-top: 25px; position: absolute;
bottom: 0;
.course-price { .course-price {
.new { .new {
color: $red; color: $red;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment