|
|
@ -4,11 +4,13 @@ import 'package:huixiang/generated/l10n.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/activity.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/activity.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/base_data.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/base_data.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; |
|
|
|
|
|
|
|
import 'package:huixiang/retrofit/data/miNiDetail.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/store_info.dart'; |
|
|
|
import 'package:huixiang/retrofit/data/store_info.dart'; |
|
|
|
import 'package:huixiang/retrofit/min_api.dart'; |
|
|
|
import 'package:huixiang/retrofit/min_api.dart'; |
|
|
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
|
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
|
|
import 'package:huixiang/store/store_view/product_sku.dart'; |
|
|
|
import 'package:huixiang/store/store_view/product_sku.dart'; |
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
|
|
|
import 'package:huixiang/utils/min.dart'; |
|
|
|
import 'package:huixiang/view_widget/custom_image.dart'; |
|
|
|
import 'package:huixiang/view_widget/custom_image.dart'; |
|
|
|
import 'package:huixiang/view_widget/round_button.dart'; |
|
|
|
import 'package:huixiang/view_widget/round_button.dart'; |
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
@ -33,16 +35,6 @@ class StoreOrderListPage extends StatefulWidget { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class testModel { |
|
|
|
|
|
|
|
String name; |
|
|
|
|
|
|
|
bool isSelected; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
testModel(String name) { |
|
|
|
|
|
|
|
this.name = name; |
|
|
|
|
|
|
|
this.isSelected = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
|
|
|
|
|
|
|
|
int isSelected = 0; |
|
|
|
int isSelected = 0; |
|
|
@ -89,6 +81,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
tenant: tenant, |
|
|
|
tenant: tenant, |
|
|
|
); |
|
|
|
); |
|
|
|
appletGoods(); |
|
|
|
appletGoods(); |
|
|
|
|
|
|
|
// queryMiNiDetail(widget.arguments["id"]); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -110,6 +103,16 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///选规格 |
|
|
|
|
|
|
|
queryMiNiDetail(String id) async { |
|
|
|
|
|
|
|
BaseData<MiNiDetail> baseData = await minService.miNiDetail(id); |
|
|
|
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
|
|
|
setState(() { |
|
|
|
|
|
|
|
showStoreSelector(baseData.data); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Container( |
|
|
|
return Container( |
|
|
@ -193,6 +196,8 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
padding: EdgeInsets.only(right: 16.w, bottom: 10.h, top: 10.h), |
|
|
|
padding: EdgeInsets.only(right: 16.w, bottom: 10.h, top: 10.h), |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
SizedBox(width: 12.w), |
|
|
|
SizedBox(width: 12.w), |
|
|
|
MImage( |
|
|
|
MImage( |
|
|
@ -300,7 +305,8 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
true |
|
|
|
true |
|
|
|
? GestureDetector( |
|
|
|
? GestureDetector( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
showStoreSelector(productListBean); |
|
|
|
// showStoreSelector(productListBean); |
|
|
|
|
|
|
|
queryMiNiDetail(productListBean.id); |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: RoundButton( |
|
|
|
child: RoundButton( |
|
|
|
width: 49.w, |
|
|
|
width: 49.w, |
|
|
@ -357,16 +363,13 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
///选规格弹窗 |
|
|
|
///选规格弹窗 |
|
|
|
showStoreSelector(ProductListBean productListBean) { |
|
|
|
showStoreSelector(MiNiDetail miNiDetail) { |
|
|
|
showModalBottomSheet( |
|
|
|
showModalBottomSheet( |
|
|
|
context: context, |
|
|
|
context: context, |
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
builder: (context) { |
|
|
|
builder: (context) { |
|
|
|
return StatefulBuilder(builder: (context1, state) { |
|
|
|
return StatefulBuilder(builder: (context1, state) { |
|
|
|
return ProductSku(productListBean); |
|
|
|
return ProductSku(productListBean); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|