فهرست منبع

1.修改UWA改变购物车数量刷新。

Pen Li 7 سال پیش
والد
کامیت
7143468704
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

+ 8 - 0
RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

@@ -1823,6 +1823,14 @@
     __weak typeof(self) weakSelf = self;
     cell.onReturnQTY=^(int qty,NSDictionary* ext)
     {
+        int result = [[ext objectForKey:@"result"] intValue];
+        BOOL refresh = [[ext objectForKey:@"refresh"] boolValue];
+        
+        if (result == 2 && refresh) {
+            [self ReloadData];
+            return;
+        }
+        
         NSMutableDictionary * item_json = nil;
         if (weakSelf.back_order_flag) {
             item_json = [[weakSelf itemJsonAtIndexPath:indexPath] mutableCopy];