提交 168b88f0 编写于 作者: guojing.hao's avatar guojing.hao

yqy-home-header

上级 a57fb6b9
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="headerRight"> <div class="headerRight">
<img class="info" :src="resourceData.img"> <img class="info" :src="resourceData.img">
<img class="info-count" :src="resourceData.img"> <div :class="resourceData.isTransparent?'transparent':'notTransparent'" class="info-count fs10">{{resourceData.count}}</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -21,8 +21,10 @@ export default { ...@@ -21,8 +21,10 @@ export default {
type: Object, type: Object,
default:()=>{ default:()=>{
return { return {
isTransparent: true,
placeholder: '请输入课程名称', placeholder: '请输入课程名称',
img: '../../images/Shape@2x.png' img: '../../images/Shape@2x.png',
count: 0
} }
} }
} }
...@@ -102,8 +104,21 @@ html,body{ ...@@ -102,8 +104,21 @@ html,body{
} }
.info-count{ .info-count{
position:absolute; position:absolute;
top: px2rem(-10px); top: 0;
right: px2rem(21px); right: px2rem(21px);
width: px2rem(15px);
height: px2rem(15px);
border-radius: 50%;
text-align: center;
line-height: 15px;
}
.transparent{
background-color: #fff;
color: RGBA(53, 134, 126, 1);
}
.notTransparent{
background-color: RGBA(251, 91, 82, 1);
color: #fff;
} }
.hotTag{ .hotTag{
width: 100%; width: 100%;
......
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
.fs26{ .fs26{
font-size: px2rem(13px); font-size: px2rem(13px);
} }
.fs10{
font-size: px2rem(10px);
}
.gray{ .gray{
color: RGBA(177, 181, 184, 1); color: RGBA(177, 181, 184, 1);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册