Commit 9c04c731 by houweibin

fix error

parent 1af14837
...@@ -237,19 +237,19 @@ ...@@ -237,19 +237,19 @@
if(paidOrder && targetPage ==1){ if(paidOrder && targetPage ==1){
[showOrders insertObject:paidOrder atIndex:0]; [showOrders insertObject:paidOrder atIndex:0];
} }
if(showOrders.count <= 50){ // if(showOrders.count <= 50){
weakSelf.hasNextPage = false; // weakSelf.hasNextPage = false;
weakSelf.tbvOrder.mj_footer.hidden = YES; // weakSelf.tbvOrder.mj_footer.hidden = YES;
}else{ // }else{
weakSelf.hasNextPage = true; // weakSelf.hasNextPage = true;
weakSelf.tbvOrder.mj_footer.hidden = NO; // weakSelf.tbvOrder.mj_footer.hidden = NO;
} // }
if(showOrders.count == 0 || targetPage == 1){ if(targetPage == 1){
[weakSelf.dataList removeAllObjects]; [weakSelf.dataList removeAllObjects];
[self.expandOrderId removeAllObjects]; [self.expandOrderId removeAllObjects];
} }
[weakSelf refreshOpenSection:showOrders]; [weakSelf refreshOpenSection:showOrders];
[weakSelf appendDataList:showOrders setPage:1]; [weakSelf appendDataList:showOrders setPage:targetPage];
[weakSelf requestProductsApi]; [weakSelf requestProductsApi];
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment