From bbe21eae70e52319dc4daddf6df9484d9b3c9520 Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Tue, 4 Jul 2023 15:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=95=86=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=96=B0=E5=A2=9EbuyTimes?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E9=99=90=E5=88=B6=E5=AD=97=E6=AE=B5=EF=BC=8C?= =?UTF-8?q?=EF=BC=88=E5=89=8D=E7=AB=AF=E6=97=A0=E8=B0=83=E7=94=A8=EF=BC=89?= =?UTF-8?q?=20=E9=A6=96=E9=A1=B5=E5=BF=AB=E4=B9=90=E5=8A=A9=E5=86=9C?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E4=B8=BA=E6=89=80=E6=9C=89=E4=BA=BA=E5=9D=87?= =?UTF-8?q?=E5=8F=AF=E6=98=BE=E7=A4=BA=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/home/home_page.dart | 2 +- lib/retrofit/data/goods.dart | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index d5a996c4..428699ab 100644 --- a/lib/home/home_page.dart +++ b/lib/home/home_page.dart @@ -543,7 +543,7 @@ class HomePageState extends State with AutomaticKeepAliveClientMixin { HomeRecommendGoods(homeRank), ///助农专区 - if(mRaiseMoney != 0) + // if(mRaiseMoney != 0) HappyHelpFarmers(), ///福利中心 diff --git a/lib/retrofit/data/goods.dart b/lib/retrofit/data/goods.dart index 6a3065a0..0b5cfaba 100644 --- a/lib/retrofit/data/goods.dart +++ b/lib/retrofit/data/goods.dart @@ -51,6 +51,7 @@ class Goods { int state, bool canPick, bool canDelivery, + int buyTimes, int isDelete, dynamic categoryName, String mainImgPath, @@ -80,6 +81,7 @@ class Goods { _canPick = canPick; _canDelivery = canDelivery; _isDelete = isDelete; + _buyTimes = buyTimes; _categoryName = categoryName; _mainImgPath = mainImgPath; _viceImgPaths = viceImgPaths; @@ -111,6 +113,7 @@ class Goods { _canPick = json['canPick']; _canDelivery = json['canDelivery']; _isDelete = json['isDelete']; + _buyTimes =json['buyTimes']; _categoryName = json['categoryName']; _mainImgPath = json['mainImgPath']; _viceImgPaths = json['viceImgPaths'] != null ? json['viceImgPaths'].cast() : []; @@ -140,6 +143,7 @@ class Goods { bool _canPick; bool _canDelivery; int _isDelete; + int _buyTimes; dynamic _categoryName; String _mainImgPath; List _viceImgPaths; @@ -169,6 +173,7 @@ class Goods { bool get canPick => _canPick; bool get canDelivery => _canDelivery; int get isDelete => _isDelete; + int get buyTimes => _buyTimes; dynamic get categoryName => _categoryName; String get mainImgPath => _mainImgPath; List get viceImgPaths => _viceImgPaths; @@ -200,6 +205,7 @@ class Goods { map['canPick'] = _canPick; map['canDelivery'] = _canDelivery; map['isDelete'] = _isDelete; + map['buyTimes'] = _buyTimes; map['categoryName'] = _categoryName; map['mainImgPath'] = _mainImgPath; map['viceImgPaths'] = _viceImgPaths;