Commit 37512850 by xuzhenghua

test

parent 66d2ccd1
...@@ -687,7 +687,12 @@ class Detail extends Component { ...@@ -687,7 +687,12 @@ class Detail extends Component {
item.lesson.map((item, index) => { item.lesson.map((item, index) => {
return ( return (
<ul key={index}> <ul key={index}>
<h2 className='classhour text-overflow-1'>{item.name}</h2> <h2 className='classhour text-overflow-1'>{item.name}
{
item.is_video === 1 &&
<span className='audition'>试听</span>
}
</h2>
{ {
item.point.map((item, index) => { item.point.map((item, index) => {
const type = ( const type = (
......
...@@ -155,18 +155,22 @@ ...@@ -155,18 +155,22 @@
display: flex; display: flex;
position: relative; position: relative;
font-size: 12px; font-size: 12px;
.title { .title {
font-size: 14px; font-size: 14px;
margin-right: 12px; margin-right: 12px;
} }
.ranking-mess { .ranking-mess {
margin-right: 20px; margin-right: 20px;
img { img {
width: 22px; width: 22px;
height: 22px; height: 22px;
border-radius: 50%; border-radius: 50%;
vertical-align: middle; vertical-align: middle;
} }
i { i {
display: inline-block; display: inline-block;
margin-left: 5px; margin-left: 5px;
...@@ -174,17 +178,19 @@ ...@@ -174,17 +178,19 @@
font-style: normal; font-style: normal;
} }
} }
.ranking-ellipsis { .ranking-ellipsis {
width: 22px; width: 22px;
height: 22px; height: 22px;
border-radius: 50%; border-radius: 50%;
} }
.share { .share {
position: absolute; position: absolute;
right: 12px; right: 12px;
padding: 5px 6px; padding: 5px 6px;
border:1px solid $red; border: 1px solid $red;
border-radius:3px; border-radius: 3px;
color: $red; color: $red;
background-color: $bg_fff; background-color: $bg_fff;
} }
...@@ -249,6 +255,7 @@ ...@@ -249,6 +255,7 @@
padding-left: 10px; padding-left: 10px;
margin-top: 10px; margin-top: 10px;
margin-bottom: 5px; margin-bottom: 5px;
position: relative;
} }
.points { .points {
...@@ -261,6 +268,20 @@ ...@@ -261,6 +268,20 @@
.red { .red {
color: $color_FE2F2F; color: $color_FE2F2F;
} }
.audition {
display: inline-block;
height: 22px;
line-height: 22px;
padding: 0 7px;
position: absolute;
right: 10px;
top: 6px;
border-radius: 11px;
background: linear-gradient(90deg, $bg_0078FF 0%, $bg_active 100%);
color: $white;
font-size: 12px;
}
} }
} }
......
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