From d01b0d46e4082fa7d5a8dc79987faecd04630870 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 15 Jun 2026 15:46:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(diy-article):=20=E6=9B=BF=E6=8D=A2scro?= =?UTF-8?q?ll-view=E6=BB=9A=E5=8A=A8=E4=B8=BACSS=E8=B7=91=E9=A9=AC?= =?UTF-8?q?=E7=81=AF=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除原scroll-view自动滚动逻辑,改用CSS animation实现无缝跑马灯效果,解决跨端滚动跳变问题,移除JS定时器驱动逻辑,提升动画流畅度和跨端一致性,优化触摸暂停恢复逻辑。 --- components-diy/diy-article.vue | 438 ++++++++++++--------------------- 1 file changed, 151 insertions(+), 287 deletions(-) diff --git a/components-diy/diy-article.vue b/components-diy/diy-article.vue index 30e15d0..05f4c35 100644 --- a/components-diy/diy-article.vue +++ b/components-diy/diy-article.vue @@ -3,58 +3,56 @@ - - + - - - - - - - {{ item.article_title }} - - {{ item.article_abstract }} - - - {{ tn }} + @touchstart="onMarqueeTouchStart" + @touchend="onMarqueeTouchEnd"> + + + + + - - - - {{ item.category_name }} - - - - {{ _humanizeNum(item.read_num || 0) }} + + {{ item.article_title }} + + {{ item.article_abstract }} + + + {{ tn }} - - - {{ _humanizeNum(item.dianzan_num || 0) }} + + + + {{ item.category_name }} + + + + {{ _humanizeNum(item.read_num || 0) }} + + + + {{ _humanizeNum(item.dianzan_num || 0) }} + + {{ $util.timeStampTurnTime(item.create_time, 'date') }} - {{ $util.timeStampTurnTime(item.create_time, 'date') }} - +