Commit 6be16064 by Jianli Ou

样式处理

parent a35c02bb
<template> <template>
<div class="notice mask" v-if="show"> <div class="notice mask" v-if="false">
<div class="notice-kj"> <div class="notice-kj">
<img <img
src="../../../assets/image/home/notice-close.png" src="../../../assets/image/home/notice-close.png"
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,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:0;" v-for="(i,a) in 4" :key="'a'+a"></li>
</ul> </ul>
<pages :total="tableResult.totalCount" :currPage="tableResult.currPage" :pageSize="tableResult.pageSize" @getLimit='initListFn' /> <pages :total="tableResult.totalCount" :currPage="tableResult.currPage" :pageSize="tableResult.pageSize" @getLimit='initListFn' />
</div> </div>
...@@ -82,14 +82,14 @@ export default { ...@@ -82,14 +82,14 @@ export default {
// }else{ // }else{
item.href=`/News/msg?id=${item.articleId}` item.href=`/News/msg?id=${item.articleId}`
// } // }
}); });
} }
}, },
// 图片资讯列表TOP4 // 图片资讯列表TOP4
async pictureTop4() { async pictureTop4() {
const listRes = const listRes =
await this.$api.news.pictureTop4(); await this.$api.news.pictureTop4();
const { returnCode, data } = listRes; const { returnCode, data } = listRes;
...@@ -101,10 +101,10 @@ export default { ...@@ -101,10 +101,10 @@ export default {
// }else{ // }else{
item.href=`/News/msg?id=${item.articleId}` item.href=`/News/msg?id=${item.articleId}`
// } // }
}); });
} }
}, },
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
...@@ -115,11 +115,11 @@ export default { ...@@ -115,11 +115,11 @@ export default {
} }
]; ];
this.setMatche(matche); this.setMatche(matche);
this.clickDetailSave(id,directpath) this.clickDetailSave(id,directpath)
}, },
// 记录点击 // 记录点击
async clickDetailSave(id,directpath) { async clickDetailSave(id,directpath) {
const query = { const query = {
...@@ -206,17 +206,19 @@ export default { ...@@ -206,17 +206,19 @@ export default {
} }
} }
.picNews-ul { .picNews-ul {
margin-top: 30px; margin-top: 30px;
justify-content: space-between; justify-content: space-between;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
list-style: none; list-style: none;
li { li {
overflow: hidden;
width: 216px; width: 216px;
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
margin-bottom: 30px; margin-bottom: 30px;
border: 1px solid #dddddd;
cursor: pointer; cursor: pointer;
list-style: none; list-style: none;
&:hover{ &:hover{
...@@ -228,11 +230,16 @@ export default { ...@@ -228,11 +230,16 @@ export default {
.picNews-li-bt { .picNews-li-bt {
width: 90%; width: 90%;
margin: 0 auto; margin: 0 auto;
text-align: center; //text-align: center;
color: #414345; color: #414345;
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;
...@@ -261,4 +268,4 @@ export default { ...@@ -261,4 +268,4 @@ export default {
align-items: center; align-items: center;
} }
} }
</style> </style>
\ No newline at end of file
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