|
@@ -162,6 +162,11 @@ typedef enum {
|
|
|
|
|
|
|
|
- (void)loadData:(LoadDataActionType)actionType {
|
|
- (void)loadData:(LoadDataActionType)actionType {
|
|
|
|
|
|
|
|
|
|
+ if (self.loading) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ self.loading = YES;
|
|
|
|
|
+
|
|
|
NSInteger offset = 0;
|
|
NSInteger offset = 0;
|
|
|
if (actionType == LoadDataActionTypeLoadMore) {
|
|
if (actionType == LoadDataActionTypeLoadMore) {
|
|
|
offset = self.orderCount;
|
|
offset = self.orderCount;
|
|
@@ -226,6 +231,7 @@ typedef enum {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ self.loading = NO;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
});
|
|
});
|