|
@@ -41,6 +41,8 @@
|
|
|
//空页面
|
|
|
@property (nonatomic, strong) ASMyCartNoDataView *noDataView;
|
|
|
|
|
|
+@property (nonatomic, strong) UITabBarItem *cartTabbarItem;
|
|
|
+
|
|
|
@end
|
|
|
|
|
|
@implementation Cart_MyCartC
|
|
@@ -48,11 +50,15 @@
|
|
|
- (void)viewDidLoad {
|
|
|
[super viewDidLoad];
|
|
|
self.title = @"My Cart";
|
|
|
+
|
|
|
+ self.cartTabbarItem = self.tabBarController.tabBar.items[2];
|
|
|
+
|
|
|
[self ucm_subVeiwsTapBlock];
|
|
|
}
|
|
|
-(void)viewWillAppear:(BOOL)animated{
|
|
|
[super viewWillAppear:animated];
|
|
|
[self reqNet_Cart_cartsMineTotals];
|
|
|
+
|
|
|
}
|
|
|
- (void)initSubviews {
|
|
|
[super initSubviews];
|
|
@@ -193,7 +199,6 @@
|
|
|
//请求赠品商品详情
|
|
|
-(void)reqNet_GoodsDetails_productGetProduct:(NSString *)enterId{
|
|
|
NSMutableDictionary * params = [[NSMutableDictionary alloc] init];
|
|
|
-// [params setObject:@"55475" forKey:@"productId"];
|
|
|
[params setObject:enterId forKey:@"productId"];
|
|
|
[params setObject:ASCurrencyManager.shared.currentCur forKey:@"currencyCode"];
|
|
|
// [MBProgressHUD showHUDAddedTo:self.view animated:YES];
|
|
@@ -209,8 +214,6 @@
|
|
|
self.index ++;
|
|
|
[self.VM ry_formDataRequestPostApi:Chectout_giftAddCart param:param];
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
- (void)ry_respnsData:(id)data
|
|
@@ -222,13 +225,11 @@
|
|
|
if([mark isEqualToString:Cart_cartsMineTotals]){
|
|
|
if(sucessOrFail){
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
CartTotalsM *model = [arry firstObject];
|
|
|
self.totalsM = model;
|
|
|
|
|
|
+ self.cartTabbarItem.qmui_badgeInteger = [model.items_qty integerValue];
|
|
|
+
|
|
|
if (AS_Array_valid(self.totalsM.items)) {
|
|
|
//空页面
|
|
|
self.noDataView.hidden = YES;
|