更新资讯页面

hmxc
小赖 4 years ago
parent f04beccfd6
commit 524bcc1610

@ -25,6 +25,7 @@ class _PublicInfomationViewState extends State<PublicInfomationView>
return BeeListView( return BeeListView(
path: API.news.list, path: API.news.list,
controller: _refreshController, controller: _refreshController,
extraParams: {'newsCategoryId': widget.model.id},
convert: (model) => convert: (model) =>
model.tableList!.map((e) => NewsItemModel.fromJson(e)).toList(), model.tableList!.map((e) => NewsItemModel.fromJson(e)).toList(),
builder: (items) { builder: (items) {

@ -17,7 +17,7 @@ class GoodsCard extends StatelessWidget {
color: Colors.white, color: Colors.white,
elevation: 0, elevation: 0,
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
onPressed: () => Get.to(() => GoodsDetailPage(id: 0)), onPressed: () => Get.to(() => GoodsDetailPage(id: item.id)),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [

Loading…
Cancel
Save