diff --git a/components/diy-components/diy-article.vue b/components/diy-components/diy-article.vue index 7688db8..30aec58 100644 --- a/components/diy-components/diy-article.vue +++ b/components/diy-components/diy-article.vue @@ -2,22 +2,30 @@ - - - - - - {{ item.article_title }} - {{ item.article_abstract }} - - - - {{ item.category_name }} - - {{ $util.timeStampTurnTime(item.create_time, 'date') }} + + + + + + + + + + {{ item.article_title }} + {{ item.article_abstract }} + + + + {{ item.category_name }} + + {{ $util.timeStampTurnTime(item.create_time, 'date') }} + + + - - + + @@ -33,18 +41,18 @@ } }, data() { - return { - list: [], - loading: true, - skeletonConfig: { - gridRows: 1, - gridRowsGap: '40rpx', - headWidth: '160rpx', - headHeight: '160rpx', - textRows: 2 - } - }; - }, + return { + list: [], + loading: true, + skeletonConfig: { + gridRows: 1, + gridRowsGap: '40rpx', + headWidth: '160rpx', + headHeight: '160rpx', + textRows: 2 + } + }; + }, created() { this.getList(); }, @@ -123,10 +131,20 @@ .article-wrap { .list-wrap { &.style-1 { + .auto-scroll-swiper { + height: 480rpx; + width: 100%; + } + .swiper-item-content { + width: 100%; + box-sizing: border-box; + } .item { display: flex; padding: 20rpx; margin-top: 24rpx; + height: 120rpx; + box-sizing: border-box; &:first-of-type { margin-top: 0;