Commit 8e420aa4 authored by Achilles's avatar Achilles

add mask when model loading

parent eb0e8970
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#import "VankeFloorDetailBoardPhoto_iPhone.h" #import "VankeFloorDetailBoardPhoto_iPhone.h"
#import "PullLoader.h" #import "PullLoader.h"
#import "FootLoader.h" #import "FootLoader.h"
#import "GEToast.h"
#import "VankeBusinessChartCell_iPhone.h" #import "VankeBusinessChartCell_iPhone.h"
#pragma mark - VankeFloorDetailBoard_iPhone #pragma mark - VankeFloorDetailBoard_iPhone
...@@ -146,12 +147,14 @@ ON_DID_DISAPPEAR( signal ) ...@@ -146,12 +147,14 @@ ON_DID_DISAPPEAR( signal )
ON_SIGNAL3( VankeSaleVolumeModel, RELOADING, signal ) ON_SIGNAL3( VankeSaleVolumeModel, RELOADING, signal )
{ {
[GEToast showProgress:self.view];
self.list.headerLoading = YES; self.list.headerLoading = YES;
self.list.footerLoading = YES; self.list.footerLoading = YES;
} }
ON_SIGNAL3( VankeSaleVolumeModel, RELOADED, signal ) ON_SIGNAL3( VankeSaleVolumeModel, RELOADED, signal )
{ {
[GEToast hideProgress];
self.list.headerLoading = NO; self.list.headerLoading = NO;
self.list.footerLoading = NO; self.list.footerLoading = NO;
self.list.footerMore = NO; self.list.footerMore = NO;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#import "PullLoader.h" #import "PullLoader.h"
#import "FootLoader.h" #import "FootLoader.h"
#import "VankeUtil.h" #import "VankeUtil.h"
#import "GEToast.h"
#import "NoDataCell_iPhoneCell.h" #import "NoDataCell_iPhoneCell.h"
#import "VankeProjectListAPI.h" #import "VankeProjectListAPI.h"
#import "VankeFloorDetailBoard_iPhone.h" #import "VankeFloorDetailBoard_iPhone.h"
...@@ -103,6 +104,9 @@ ON_CREATE_VIEWS( signal ) ...@@ -103,6 +104,9 @@ ON_CREATE_VIEWS( signal )
} }
} }
}; };
self.list.whenReloaded = ^
{
};
self.list.whenAnimated = ^ self.list.whenAnimated = ^
{ {
...@@ -198,12 +202,14 @@ ON_SIGNAL3( VankeFloorListBoardCell_iPhone, mask, signal ) ...@@ -198,12 +202,14 @@ ON_SIGNAL3( VankeFloorListBoardCell_iPhone, mask, signal )
ON_SIGNAL3( VankeProjectListModel, RELOADING, signal ) ON_SIGNAL3( VankeProjectListModel, RELOADING, signal )
{ {
[GEToast showProgress:self.view];
self.list.headerLoading = YES; self.list.headerLoading = YES;
self.list.footerLoading = YES; self.list.footerLoading = YES;
} }
ON_SIGNAL3( VankeProjectListModel, RELOADED, signal ) ON_SIGNAL3( VankeProjectListModel, RELOADED, signal )
{ {
[GEToast hideProgress];
self.list.headerLoading = NO; self.list.headerLoading = NO;
self.list.footerLoading = NO; self.list.footerLoading = NO;
self.list.footerMore = self.model.more; self.list.footerMore = self.model.more;
......
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