w-R 3 years ago
parent
commit
714cc7d18b
  1. 6
      android/app/src/main/AndroidManifest.xml
  2. 5
      lib/store/shopping/shopping_cart/shopping_cart_page.dart
  3. 4
      lib/store/shopping/shopping_home/classify_list.dart
  4. 4
      pubspec.lock

6
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" />

5
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);
});
},

4
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: [

4
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:

Loading…
Cancel
Save