From 524bcc1610c31b40bdf1c6b3959d1d265b3a1932 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Tue, 11 May 2021 17:17:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B5=84=E8=AE=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/home/public_infomation/public_infomation_view.dart | 1 + lib/ui/market/goods/goods_card.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ui/home/public_infomation/public_infomation_view.dart b/lib/ui/home/public_infomation/public_infomation_view.dart index 819bdcf1..33b07d9f 100644 --- a/lib/ui/home/public_infomation/public_infomation_view.dart +++ b/lib/ui/home/public_infomation/public_infomation_view.dart @@ -25,6 +25,7 @@ class _PublicInfomationViewState extends State return BeeListView( path: API.news.list, controller: _refreshController, + extraParams: {'newsCategoryId': widget.model.id}, convert: (model) => model.tableList!.map((e) => NewsItemModel.fromJson(e)).toList(), builder: (items) { diff --git a/lib/ui/market/goods/goods_card.dart b/lib/ui/market/goods/goods_card.dart index 8d48a713..fdafaaaa 100644 --- a/lib/ui/market/goods/goods_card.dart +++ b/lib/ui/market/goods/goods_card.dart @@ -17,7 +17,7 @@ class GoodsCard extends StatelessWidget { color: Colors.white, elevation: 0, padding: EdgeInsets.zero, - onPressed: () => Get.to(() => GoodsDetailPage(id: 0)), + onPressed: () => Get.to(() => GoodsDetailPage(id: item.id)), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [