Commit adfa12939ec3f07ca3a095a4ac7079a717a12be8

Authored by yanglingyu
1 parent 408a5e0a

0.6.3

CNLiveCMineModule.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveCMineModule' 10 s.name = 'CNLiveCMineModule'
11 - s.version = '0.6.2' 11 + s.version = '0.6.3'
12 s.summary = '网家家C端个人中心' 12 s.summary = '网家家C端个人中心'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveCMineModule/Classes/Colletion/ViewController/CNMineCollectController.m
@@ -101,6 +101,7 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView @@ -101,6 +101,7 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView
101 - (void)viewDidAppear:(BOOL)animated { 101 - (void)viewDidAppear:(BOOL)animated {
102 [super viewDidAppear:animated]; 102 [super viewDidAppear:animated];
103 if([_isRefresh isEqualToString:@"0"]){ 103 if([_isRefresh isEqualToString:@"0"]){
  104 + _isRefresh = @"1";//1不刷新
104 if(self.data.count > 0){ 105 if(self.data.count > 0){
105 _pageNo = 1; 106 _pageNo = 1;
106 _isRefreshing = NO; 107 _isRefreshing = NO;
@@ -116,8 +117,9 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView @@ -116,8 +117,9 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView
116 } 117 }
117 - (void)viewDidDisappear:(BOOL)animated { 118 - (void)viewDidDisappear:(BOOL)animated {
118 [super viewDidDisappear:animated]; 119 [super viewDidDisappear:animated];
119 - _isRefresh = @"0";//1不刷新  
120 -// [self.tableView scrollToTopAnimated:NO]; 120 + if ([self.isRefresh isEqualToString:@"0"]){
  121 + [self.tableView scrollToTopAnimated:NO];
  122 + }
121 } 123 }
122 124
123 - (void)viewDidLoad { 125 - (void)viewDidLoad {
@@ -125,7 +127,7 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView @@ -125,7 +127,7 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView
125 // Do any additional setup after loading the view. 127 // Do any additional setup after loading the view.
126 // self.title = @"收藏"; 128 // self.title = @"收藏";
127 self.view.backgroundColor = CNLiveColorWithHexString(@"#F2F2F2"); 129 self.view.backgroundColor = CNLiveColorWithHexString(@"#F2F2F2");
128 - 130 + self.isRefresh = @"1";
129 _pageNo = 1; 131 _pageNo = 1;
130 _isRefreshing = NO; 132 _isRefreshing = NO;
131 133
@@ -232,6 +234,7 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView @@ -232,6 +234,7 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @"kCNLiveWebView
232 234
233 } 235 }
234 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 236 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  237 + self.isRefresh = @"0";
235 CNMyCollectDataSourceModel *model = self.data[indexPath.row]; 238 CNMyCollectDataSourceModel *model = self.data[indexPath.row];
236 if ([model.type isEqualToString:@"3"]) { 239 if ([model.type isEqualToString:@"3"]) {
237 [[CNLiveCMineService shareMineProtocol] pushCMineInteContentForCMainWebViewWithURL:model.shareUrl statue:CNLiveCMineIntePushWebViewStatueAnnotationDetail]; 240 [[CNLiveCMineService shareMineProtocol] pushCMineInteContentForCMainWebViewWithURL:model.shareUrl statue:CNLiveCMineIntePushWebViewStatueAnnotationDetail];
CNLiveCMineModule/Classes/Colletion/ViewController/CNMineGoodsCollectViewController.m
@@ -78,6 +78,7 @@ @@ -78,6 +78,7 @@
78 } 78 }
79 - (void)viewDidLoad { 79 - (void)viewDidLoad {
80 [super viewDidLoad]; 80 [super viewDidLoad];
  81 + self.isRefresh = @"1";
81 self.view.backgroundColor = CNLiveColorWithHexString(@"#F2F2F2"); 82 self.view.backgroundColor = CNLiveColorWithHexString(@"#F2F2F2");
82 self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 83 self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
83 self.tableView.backgroundColor = CNLiveColorWithHexString(@"#F2F2F2"); 84 self.tableView.backgroundColor = CNLiveColorWithHexString(@"#F2F2F2");
@@ -91,7 +92,17 @@ @@ -91,7 +92,17 @@
91 -(void)viewDidAppear:(BOOL)animated 92 -(void)viewDidAppear:(BOOL)animated
92 { 93 {
93 [super viewDidAppear:animated]; 94 [super viewDidAppear:animated];
94 - [self loadData]; 95 + //跳转到二级刷新页面
  96 + if([self.isRefresh isEqualToString:@"0"]){
  97 + self.isRefresh = @"1";
  98 + [self loadData];
  99 + }
  100 +}
  101 +- (void)viewDidDisappear:(BOOL)animated{
  102 + [super viewDidDisappear:animated];
  103 + if([self.isRefresh isEqualToString:@"0"]){
  104 + [self.tableView scrollToTopAnimated:NO];
  105 + }
95 } 106 }
96 -(void)loadData{ 107 -(void)loadData{
97 _pageNo = 1; 108 _pageNo = 1;
@@ -145,6 +156,7 @@ @@ -145,6 +156,7 @@
145 } 156 }
146 157
147 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 158 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  159 + self.isRefresh = @"0";
148 CNCollectGoodListModel *model = self.data[indexPath.row]; 160 CNCollectGoodListModel *model = self.data[indexPath.row];
149 [[NSUserDefaults standardUserDefaults] setObject:@{@"time":@0,@"activity_id":@"ds_collect"} forKey:@"CNLiveWebViewUnionNewActivityKey"]; 161 [[NSUserDefaults standardUserDefaults] setObject:@{@"time":@0,@"activity_id":@"ds_collect"} forKey:@"CNLiveWebViewUnionNewActivityKey"];
150 [[CNLiveCMineService shareMineProtocol] skipType:@"2" to:model.id shopType:model.shop_type currentVC:self]; 162 [[CNLiveCMineService shareMineProtocol] skipType:@"2" to:model.id shopType:model.shop_type currentVC:self];