From 64172118c45841cebc40a755f94c06f56baa9ee4 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Fri, 21 Jan 2022 09:55:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E7=83=AD=E9=97=A8=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/community/headlines/activity_top_list.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/community/headlines/activity_top_list.dart b/lib/community/headlines/activity_top_list.dart index d5524ecc..32e7bc3e 100644 --- a/lib/community/headlines/activity_top_list.dart +++ b/lib/community/headlines/activity_top_list.dart @@ -47,9 +47,11 @@ class _ActivityTopList extends State { itemBuilder: (context, position) { return GestureDetector( onTap: () { - Navigator.of(context).pushNamed( - '/router/headlines_column_details', - arguments: {"id": widget.articleTop[position].id}); + Navigator.of(context).pushNamed('/router/web_page', + arguments: {"articleId": widget.articleTop[position].id}); + widget.articleTop[position].viewers = + (widget.articleTop[position].viewers + 1); + setState(() {}); }, child: headlinesCollectionItem(widget.articleTop[position], position), );