|
|
|
@ -79,15 +79,18 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
apiService.minLogin(widget.arguments["id"]) |
|
|
|
|
.catchError((onError){}).then((baseData) { |
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
UserEntity userEntity = UserEntity.fromJson(baseData.data); |
|
|
|
|
String minToken = userEntity.token; |
|
|
|
|
Map<String, dynamic> minStoreInfo = baseData.data; |
|
|
|
|
String minToken = minStoreInfo["token"]; |
|
|
|
|
String tenant = widget.arguments["tenant"]; |
|
|
|
|
SharedPreferences.getInstance().then((value) => { |
|
|
|
|
value.setString('minToken', minToken), |
|
|
|
|
value.setString('tenant', tenant), |
|
|
|
|
}); |
|
|
|
|
minService = MinApiService( |
|
|
|
|
Dio(), |
|
|
|
|
context: context, |
|
|
|
|
token: minToken, |
|
|
|
|
tenant: tenant, |
|
|
|
|
); |
|
|
|
|
appletGoods(); |
|
|
|
|
} |
|
|
|
@ -115,17 +118,18 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Container( |
|
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
|
height: MediaQuery.of(context).size.height, |
|
|
|
|
height: MediaQuery.of(context).size.height - (kToolbarHeight + 38 + 54.h), |
|
|
|
|
margin: EdgeInsets.only(top: (MediaQuery.of(context).padding.top + 38 + kToolbarHeight)), |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: 100.w, |
|
|
|
|
height: MediaQuery.of(context).size.height, |
|
|
|
|
child: ListView.builder( |
|
|
|
|
itemCount: appletProducts == null ? 0 : appletProducts.length, |
|
|
|
|
controller: widget.controller, |
|
|
|
|
controller: controller1, |
|
|
|
|
padding: EdgeInsets.zero, |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return orderItem(appletProducts[position],position); |
|
|
|
|
}, |
|
|
|
@ -136,6 +140,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
child: ListView.builder( |
|
|
|
|
itemCount: productListBeans == null ? 0 : productListBeans.length, |
|
|
|
|
// controller: widget.controller, |
|
|
|
|
padding: EdgeInsets.zero, |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return goodsItem(productListBeans[position], position); |
|
|
|
|
}, |
|
|
|
@ -151,7 +156,6 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
|
|
|
|
|
|
|
|
|
|
Widget orderItem(FindMiNiGroupList findMiNiGroupList,int index) { |
|
|
|
|
return Container( |
|
|
|
|
padding: EdgeInsets.only(top:100.h), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|