|
|
@ -105,9 +105,13 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
|
|
|
|
|
|
|
|
///小程序查询分组及商品列表 |
|
|
|
///小程序查询分组及商品列表 |
|
|
|
appletGoods() async { |
|
|
|
appletGoods() async { |
|
|
|
BaseData<List<FindMiNiGroupList>> baseData = await minService |
|
|
|
BaseData<List<FindMiNiGroupList>> baseData = |
|
|
|
.findMiNiGroupList({"id": widget.arguments["id"]}, |
|
|
|
await minService.findMiNiGroupList({ |
|
|
|
{"store_id": widget.arguments["id"], "tenant": "1175"}); |
|
|
|
"id": widget.arguments["id"] |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
"store_id": widget.arguments["id"], |
|
|
|
|
|
|
|
"tenant": widget.arguments["tenant"], |
|
|
|
|
|
|
|
}); |
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
setState(() { |
|
|
|
setState(() { |
|
|
|
appletProducts = baseData.data; |
|
|
|
appletProducts = baseData.data; |
|
|
@ -123,7 +127,8 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
height: MediaQuery.of(context).size.height - (kToolbarHeight + 38 + 54.h), |
|
|
|
height: MediaQuery.of(context).size.height - (kToolbarHeight + 38 + 54.h), |
|
|
|
margin: EdgeInsets.only( |
|
|
|
margin: EdgeInsets.only( |
|
|
|
top: (MediaQuery.of(context).padding.top + 38 + kToolbarHeight)), |
|
|
|
top: (MediaQuery.of(context).padding.top + 38 + kToolbarHeight), |
|
|
|
|
|
|
|
), |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
@ -133,7 +138,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
child: ListView.builder( |
|
|
|
child: ListView.builder( |
|
|
|
itemCount: appletProducts == null ? 0 : appletProducts.length, |
|
|
|
itemCount: appletProducts == null ? 0 : appletProducts.length, |
|
|
|
controller: controller1, |
|
|
|
controller: controller1, |
|
|
|
padding: EdgeInsets.zero, |
|
|
|
padding: EdgeInsets.only(top: 0, bottom: 25), |
|
|
|
itemBuilder: (context, position) { |
|
|
|
itemBuilder: (context, position) { |
|
|
|
return orderItem(appletProducts[position], position); |
|
|
|
return orderItem(appletProducts[position], position); |
|
|
|
}, |
|
|
|
}, |
|
|
|