Просмотр исходного кода

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

Pen Li 7 лет назад
Родитель
Сommit
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;
     __weak typeof(self) weakSelf = self;
     cell.onReturnQTY=^(int qty,NSDictionary* ext)
     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;
         NSMutableDictionary * item_json = nil;
         if (weakSelf.back_order_flag) {
         if (weakSelf.back_order_flag) {
             item_json = [[weakSelf itemJsonAtIndexPath:indexPath] mutableCopy];
             item_json = [[weakSelf itemJsonAtIndexPath:indexPath] mutableCopy];