Commit 9c04c731 by houweibin

fix error

parent 1af14837
......@@ -237,19 +237,19 @@
if(paidOrder && targetPage ==1){
[showOrders insertObject:paidOrder atIndex:0];
}
if(showOrders.count <= 50){
weakSelf.hasNextPage = false;
weakSelf.tbvOrder.mj_footer.hidden = YES;
}else{
weakSelf.hasNextPage = true;
weakSelf.tbvOrder.mj_footer.hidden = NO;
}
if(showOrders.count == 0 || targetPage == 1){
// if(showOrders.count <= 50){
// weakSelf.hasNextPage = false;
// weakSelf.tbvOrder.mj_footer.hidden = YES;
// }else{
// weakSelf.hasNextPage = true;
// weakSelf.tbvOrder.mj_footer.hidden = NO;
// }
if(targetPage == 1){
[weakSelf.dataList removeAllObjects];
[self.expandOrderId removeAllObjects];
}
[weakSelf refreshOpenSection:showOrders];
[weakSelf appendDataList:showOrders setPage:1];
[weakSelf appendDataList:showOrders setPage:targetPage];
[weakSelf requestProductsApi];
}
} 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