Commit aa5c8369 by xuzhenghua

样式

parent 6e012d19
...@@ -196,11 +196,11 @@ class Classify extends Component { ...@@ -196,11 +196,11 @@ class Classify extends Component {
{this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => { {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {
const Info = ( const Info = (
<div className="info"> <div className="info">
<p className='title' <p className='title text-overflow-2'
onClick={() => this.toCourseDetail(item.course_id)}> onClick={() => this.toCourseDetail(item.course_id)}>
{item.course_title} {item.course_title}
</p> </p>
<p className='contact text-overflow-2'>{item.desc}</p> <p className='contact text-overflow-1'>{item.desc}</p>
<div className='des'> <div className='des'>
{ {
item.is_restricted ? item.is_restricted ?
......
...@@ -73,9 +73,6 @@ html, body, #root { ...@@ -73,9 +73,6 @@ html, body, #root {
.title { .title {
font-size: 16px; font-size: 16px;
color: $color_525B65; color: $color_525B65;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.contact { .contact {
......
...@@ -122,13 +122,13 @@ class Preferential extends Component { ...@@ -122,13 +122,13 @@ class Preferential extends Component {
{this.state.dataList.map((item, index) => { {this.state.dataList.map((item, index) => {
const Info = ( const Info = (
<div className="info"> <div className="info">
<p className='title' <p className='title text-overflow-2'
onClick={() => this.toCourseDetail(item.course_id)}> onClick={() => this.toCourseDetail(item.course_id)}>
{/* <Link to={`/detail?id=${item.course_id}`}> */} {/* <Link to={`/detail?id=${item.course_id}`}> */}
{item.course_title} {item.course_title}
{/* </Link> */} {/* </Link> */}
</p> </p>
<p className='contact text-overflow-2'>{item.course_desc}</p> <p className='contact text-overflow-1'>{item.course_desc}</p>
<div className='des'> <div className='des'>
{!item.is_buy && {!item.is_buy &&
<p className="course-price"> <p className="course-price">
......
...@@ -61,11 +61,6 @@ ...@@ -61,11 +61,6 @@
.title { .title {
font-size: 16px; font-size: 16px;
color: $color_525B65; color: $color_525B65;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 18px;
line-height: 18px;
} }
.contact { .contact {
......
...@@ -55,10 +55,10 @@ class Purchased extends Component { ...@@ -55,10 +55,10 @@ class Purchased extends Component {
this.state.data.map((item, index) => { this.state.data.map((item, index) => {
const Info = ( const Info = (
<div className="info"> <div className="info">
<p className='title' onClick={() => this.toCourseDetail(item.course_id)}> <p className='title text-overflow-2' onClick={() => this.toCourseDetail(item.course_id)}>
{item.course_title} {item.course_title}
</p> </p>
<p className='contact text-overflow-2'>{item.simpledescription}</p> <p className='contact text-overflow-1'>{item.simpledescription}</p>
{ {
item.is_aist && item.is_aist &&
......
...@@ -48,11 +48,6 @@ html, body, #root { ...@@ -48,11 +48,6 @@ html, body, #root {
.title { .title {
font-size: 16px; font-size: 16px;
color: $color_525B65; color: $color_525B65;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 16px;
line-height: 16px;
} }
.contact { .contact {
......
...@@ -158,8 +158,8 @@ class SearchResult extends PureComponent { ...@@ -158,8 +158,8 @@ class SearchResult extends PureComponent {
courseList.map(item => { courseList.map(item => {
const Info = ( const Info = (
<div className="info"> <div className="info">
<p className='title'>{item.course_title}</p> <p className='title text-overflow-2'>{item.course_title}</p>
<p className='des'>{item.simpledescription}</p> <p className='des text-overflow-1'>{item.simpledescription}</p>
<Bottom <Bottom
item={item} item={item}
/> />
......
...@@ -27,25 +27,18 @@ ...@@ -27,25 +27,18 @@
} }
.info { .info {
display: flex;
flex-wrap: wrap;
width: 50%; width: 50%;
position: relative;
display: block;
.title{ .title{
overflow: hidden;
font-size: $font_16; font-size: $font_16;
color:#525C65; color:#525C65;
white-space: nowrap;
text-overflow: ellipsis;
} }
.des { .des {
font-size: $font_14; font-size: $font_14;
color:#777; color:#777;
line-height: 16px; margin-top: 10px;
align-self: flex-start;
} }
.price { .price {
...@@ -61,7 +54,8 @@ ...@@ -61,7 +54,8 @@
} }
.bottom { .bottom {
align-self: flex-end; position: absolute;
bottom: 0;
} }
} }
......
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