diff --git a/pages_tool/article/list.vue b/pages_tool/article/list.vue index da2f87a..9801357 100644 --- a/pages_tool/article/list.vue +++ b/pages_tool/article/list.vue @@ -4,10 +4,10 @@ - - - + + + {{ item.article_title }} @@ -154,6 +154,7 @@ export default { image { width: 100%; + height: 100%; } } @@ -182,6 +183,7 @@ export default { -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: $font-size-tag; + line-height: 1.4; } .read-wrap { @@ -211,10 +213,21 @@ export default { } .date { - margin-left: 20rpx; + margin-left: auto; } } } + + // 无图 item:隐藏图位,并给 info-wrap 固定最小高度,使 read-wrap 与有图 item 底部对齐 + &.no-image { + .article-img { + display: none; + } + + .info-wrap { + min-height: 160rpx; + } + } } } - \ No newline at end of file +