Commit b8f4b11d by Lyan

中心资讯和首页资讯图片样式修改

parent 7f54c09b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<cate :father="zxhdCate"></cate> <cate :father="zxhdCate"></cate>
<div class="container"> <div class="container">
<ul class="picNews-ul"> <ul class="picNews-ul">
<li v-for="(tmp, i) in pictureListArr" :key="i" @click="getInfo(tmp.articleId,tmp.jumppath)"> <li v-for="(tmp, i) in pictureListArr" :key="i" @click="getInfo(tmp.articleId,tmp.jumppath)" >
<div class="picNews-li-tp"> <div class="picNews-li-tp">
<img :src="tmp.picFile" alt="" /> <img :src="tmp.picFile" alt="" />
</div> </div>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<a :href="tmp.href" @click.prevent="InfoFn(tmp.articleId, tmp.href)" v-html="tmp.title" target="_blank"></a> <a :href="tmp.href" @click.prevent="InfoFn(tmp.articleId, tmp.href)" v-html="tmp.title" target="_blank"></a>
</div> </div>
</li> </li>
<li style=" height: 0;margin:0" v-for="(i,a) in 4" :key="'a'+a"></li> <li style=" height: 0;margin:0;border:none" v-for="(i,a) in 4" :key="'a'+a"></li>
</ul> </ul>
<div class="more"><span @click="lookMore">更多></span></div> <div class="more"><span @click="lookMore">更多></span></div>
</div> </div>
...@@ -200,6 +200,8 @@ export default { ...@@ -200,6 +200,8 @@ export default {
justify-content: space-between; justify-content: space-between;
list-style: none; list-style: none;
li { li {
overflow: hidden;
border: 1px solid #dddddd;
width: 216px; width: 216px;
background: #ffffff; background: #ffffff;
// box-shadow: 0px 4px 15px 2px rgba(4, 64, 141, 0.08); // box-shadow: 0px 4px 15px 2px rgba(4, 64, 141, 0.08);
...@@ -222,6 +224,11 @@ export default { ...@@ -222,6 +224,11 @@ export default {
font-size: 14px; font-size: 14px;
padding: 14px 0; padding: 14px 0;
a{ a{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
color: #414345; color: #414345;
&:hover{ &:hover{
text-decoration: none; text-decoration: none;
......
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
<div class="tpzx-li-tp"> <div class="tpzx-li-tp">
<img :src="tmp.picFile" alt="" /> <img :src="tmp.picFile" alt="" />
</div> </div>
<div class="tpzx-li-bt">{{tmp.title}}</div> <div class="tpzx-li-bt">
<!-- {{tmp.title}} -->
<span v-html="tmp.title"></span>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -764,6 +767,8 @@ export default { ...@@ -764,6 +767,8 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.tpzx-li { .tpzx-li {
overflow: hidden;
border: 1px solid #dddddd;
// width: 216px; // width: 216px;
width: 24%; width: 24%;
background: #ffffff; background: #ffffff;
...@@ -784,7 +789,19 @@ export default { ...@@ -784,7 +789,19 @@ export default {
color: #414345; color: #414345;
font-size: 14px; font-size: 14px;
padding: 14px 0; padding: 14px 0;
@include ellipsis; // @include ellipsis;
span{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
color: #414345;
&:hover{
text-decoration: none;
color: #414345;
}
}
} }
} }
} }
......
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