From 714cc7d18bc626b26dfa54459d74874e2e003c91 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Wed, 5 Jan 2022 18:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/AndroidManifest.xml | 6 +++--- lib/store/shopping/shopping_cart/shopping_cart_page.dart | 5 +++-- lib/store/shopping/shopping_home/classify_list.dart | 4 ++-- pubspec.lock | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) 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 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.zsw.huixiang"> - <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/> +<!-- <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>--> <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> - <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"></uses-permission> - <uses-permission android:name="android.permission.READ_LOGS"></uses-permission> +<!-- <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />--> +<!-- <uses-permission android:name="android.permission.READ_LOGS" />--> <uses-permission android:name="android.permission.WRITE_SETTINGS"/> <!--允许程序打开网络套接字--> <uses-permission android:name="android.permission.INTERNET" /> 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<ShoppingCartPage> ShoppingCartSkuItemListBean cartSkuItem,int count,int selected) async { Map<String, dynamic> shopCarTemp = shopCarGoods[0].toJson(); cartSkuItem.buyNum += count; - cartSkuItem.selected = 0; + cartSkuItem.selected = selected; + shopCarTemp["selected"] = selected; shopCarTemp["shoppingCartSkuItemList"] = [cartSkuItem.toJson()]; BaseData<List<ShoppingCart>> baseDate = await minService.shoppingCartSingle(shopCarTemp); @@ -428,7 +429,7 @@ class _ShoppingCartPage extends State<ShoppingCartPage> 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<ClassifyList> { @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<ClassifyList> { 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: