From 96049bbcaecf251dd767e426fa2cf19cd551721c Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Tue, 23 Dec 2025 11:22:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(diy-article):=20=20=E6=94=AF=E6=8C=81diy-a?= =?UTF-8?q?rticle=20=E7=BB=84=E4=BB=B6=E5=86=85=E7=9A=84=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=9E=82=E7=9B=B4=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy-components/diy-article.vue | 72 ++++++++++++++--------- 1 file changed, 45 insertions(+), 27 deletions(-) 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;