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" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zsw.huixiang"> 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.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"></uses-permission> <!-- <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />-->
<uses-permission android:name="android.permission.READ_LOGS"></uses-permission> <!-- <uses-permission android:name="android.permission.READ_LOGS" />-->
<uses-permission android:name="android.permission.WRITE_SETTINGS"/> <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<!--允许程序打开网络套接字--> <!--允许程序打开网络套接字-->
<uses-permission android:name="android.permission.INTERNET" /> <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 { ShoppingCartSkuItemListBean cartSkuItem,int count,int selected) async {
Map<String, dynamic> shopCarTemp = shopCarGoods[0].toJson(); Map<String, dynamic> shopCarTemp = shopCarGoods[0].toJson();
cartSkuItem.buyNum += count; cartSkuItem.buyNum += count;
cartSkuItem.selected = 0; cartSkuItem.selected = selected;
shopCarTemp["selected"] = selected;
shopCarTemp["shoppingCartSkuItemList"] = [cartSkuItem.toJson()]; shopCarTemp["shoppingCartSkuItemList"] = [cartSkuItem.toJson()];
BaseData<List<ShoppingCart>> baseDate = BaseData<List<ShoppingCart>> baseDate =
await minService.shoppingCartSingle(shopCarTemp); await minService.shoppingCartSingle(shopCarTemp);
@ -428,7 +429,7 @@ class _ShoppingCartPage extends State<ShoppingCartPage>
GestureDetector( GestureDetector(
onTap: (){ onTap: (){
setState(() { 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); 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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
height: 100.h, height: 110.h,
margin: EdgeInsets.only(top:12.h,left: 16.w,right: 16.w), margin: EdgeInsets.only(top:12.h,left: 16.w,right: 16.w),
padding: EdgeInsets.only(bottom: 3.h, top: 16.h,), padding: EdgeInsets.only(bottom: 3.h, top: 16.h,),
decoration: BoxDecoration( decoration: BoxDecoration(
@ -73,7 +73,7 @@ class _ClassifyList extends State<ClassifyList> {
Widget classifyItem(GroupList groupList) { Widget classifyItem(GroupList groupList) {
return Container( return Container(
height:94.h, height:110.h,
margin: EdgeInsets.only(right: 19.w), margin: EdgeInsets.only(right: 19.w),
child: Column( child: Column(
children: [ children: [

4
pubspec.lock

@ -269,7 +269,7 @@ packages:
name: flutter_screenutil name: flutter_screenutil
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "5.0.2" version: "5.0.3"
flutter_smart_dialog: flutter_smart_dialog:
dependency: "direct main" dependency: "direct main"
description: description:
@ -559,7 +559,7 @@ packages:
name: provider name: provider
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "6.0.1" version: "6.0.2"
pull_to_refresh: pull_to_refresh:
dependency: "direct main" dependency: "direct main"
description: description:

Loading…
Cancel
Save