diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 1cf9e0da..0b8a9c10 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,11 +1,11 @@ - + - - + + diff --git a/lib/store/shopping/shopping_cart/shopping_cart_page.dart b/lib/store/shopping/shopping_cart/shopping_cart_page.dart index 94795f97..3e5b9864 100644 --- a/lib/store/shopping/shopping_cart/shopping_cart_page.dart +++ b/lib/store/shopping/shopping_cart/shopping_cart_page.dart @@ -151,7 +151,8 @@ class _ShoppingCartPage extends State ShoppingCartSkuItemListBean cartSkuItem,int count,int selected) async { Map shopCarTemp = shopCarGoods[0].toJson(); cartSkuItem.buyNum += count; - cartSkuItem.selected = 0; + cartSkuItem.selected = selected; + shopCarTemp["selected"] = selected; shopCarTemp["shoppingCartSkuItemList"] = [cartSkuItem.toJson()]; BaseData> baseDate = await minService.shoppingCartSingle(shopCarTemp); @@ -428,7 +429,7 @@ class _ShoppingCartPage extends State GestureDetector( onTap: (){ setState(() { - shopCarGoods[0].shoppingCartSkuItemList[index].selected = (shopCarGoods[0].shoppingCartSkuItemList[index].selected == 1) ? 1 : 0; + shopCarGoods[0].shoppingCartSkuItemList[index].selected = (shopCarGoods[0].shoppingCartSkuItemList[index].selected == 0) ? 1 : 0; shopCartAdd(shopCarGoods[0].shoppingCartSkuItemList[index],0,shopCarGoods[0].shoppingCartSkuItemList[index].selected); }); }, diff --git a/lib/store/shopping/shopping_home/classify_list.dart b/lib/store/shopping/shopping_home/classify_list.dart index a0255a5b..45247023 100644 --- a/lib/store/shopping/shopping_home/classify_list.dart +++ b/lib/store/shopping/shopping_home/classify_list.dart @@ -32,7 +32,7 @@ class _ClassifyList extends State { @override Widget build(BuildContext context) { return Container( - height: 100.h, + height: 110.h, margin: EdgeInsets.only(top:12.h,left: 16.w,right: 16.w), padding: EdgeInsets.only(bottom: 3.h, top: 16.h,), decoration: BoxDecoration( @@ -73,7 +73,7 @@ class _ClassifyList extends State { Widget classifyItem(GroupList groupList) { return Container( - height:94.h, + height:110.h, margin: EdgeInsets.only(right: 19.w), child: Column( children: [ diff --git a/pubspec.lock b/pubspec.lock index bba09c34..1bfee819 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -269,7 +269,7 @@ packages: name: flutter_screenutil url: "https://pub.flutter-io.cn" source: hosted - version: "5.0.2" + version: "5.0.3" flutter_smart_dialog: dependency: "direct main" description: @@ -559,7 +559,7 @@ packages: name: provider url: "https://pub.flutter-io.cn" source: hosted - version: "6.0.1" + version: "6.0.2" pull_to_refresh: dependency: "direct main" description: