66 lines
1.3 KiB
Vue
66 lines
1.3 KiB
Vue
<template>
|
||
<div class="recommend">
|
||
<div>
|
||
<p class="articlename">{{title}}</p>
|
||
<!-- <p class="articlecontent">在信息唾手可得的时代,拉开人与人差距的,不是知识含</p> -->
|
||
<div class="author"></div>
|
||
</div>
|
||
<img :src="img" alt class="pic" />
|
||
</div>
|
||
</template>
|
||
<style lang="scss" scoped>
|
||
.recommend {
|
||
width: 6.9rem;
|
||
margin-top: 0.13rem;
|
||
margin: 0 auto;
|
||
border-bottom: 0.01rem solid #95998f;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
.articlename {
|
||
color: #333333;
|
||
font-size: 0.3rem;
|
||
line-height: 0.4rem;
|
||
width: 4.65rem;
|
||
margin-top: 0.4rem;
|
||
}
|
||
.articlecontent {
|
||
color: #333333;
|
||
font-size: 0.26rem;
|
||
margin-top: 0.15rem;
|
||
margin-bottom: 0.14rem;
|
||
width: 6.74rem;
|
||
}
|
||
.author {
|
||
color: #999999;
|
||
font-size: 0.22rem;
|
||
height: 0.22rem;
|
||
margin: 0 auto;
|
||
margin-top: 0.14rem;
|
||
margin-bottom: 0.35rem;
|
||
}
|
||
.pic {
|
||
width: 1.82rem;
|
||
height: 1.2rem;
|
||
margin: auto 0;
|
||
}
|
||
.pics {
|
||
display: flex;
|
||
justify-content: center;
|
||
margin-bottom: 0.31rem;
|
||
> img {
|
||
width: 2.23rem;
|
||
height: 1.47rem;
|
||
margin-right: 0.1rem;
|
||
}
|
||
}
|
||
}
|
||
</style>
|
||
<script>
|
||
export default {
|
||
name: "indexarticel",
|
||
data() {
|
||
return {};
|
||
},
|
||
props:['title','img']
|
||
};
|
||
</script> |