修复了一些小bug

This commit is contained in:
clay
2022-09-29 15:40:10 +08:00
parent 1eb9631127
commit ae08b72bc2
11 changed files with 149 additions and 77 deletions

View File

@@ -96,6 +96,7 @@
<script>
import {banner, getArticleList} from "@/api";
import {toArticle,lookMoreComment} from "@/utils/sist";
import {lookMoreFixedComment} from "../../../utils/sist";
export default {
name: "news_center",
@@ -119,7 +120,7 @@ export default {
toArticle(news,this.width)
},
lookMore(news) {
lookMoreComment(news,this.width)
lookMoreFixedComment("DpHktHeXJp3MX-FZoZdjz3w",this.width)
},
getList() {
getArticleList({
@@ -203,7 +204,7 @@ export default {
}
.news_context_text {
height: 28%;
height: 24%;
width: 80%;
font-size: 1.6rem;
font-weight: 400;
@@ -211,8 +212,8 @@ export default {
color: #262626;
margin: 0 auto;
padding: 1rem 0;
text-overflow: ellipsis;
overflow: hidden;
text-overflow: ellipsis;
display:-webkit-box; //作为弹性伸缩盒子模型显示。
-webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列
-webkit-line-clamp:3; //显示的行