Commit 10ae2296 authored by Sandy's avatar Sandy

商场权限登录,首页切换完成

parent e0d48415
...@@ -883,30 +883,10 @@ ...@@ -883,30 +883,10 @@
NoteDetailViewController *detailVC = [[NoteDetailViewController alloc] initWithNibName:nil bundle:nil];
detailVC.dictNotice = self.arrContents[indexPath.row];
[self.rdv_tabBarController.navigationController pushViewController:detailVC animated:YES];
// self.selectedIndexPath = indexPath;
//
// [tableView deselectRowAtIndexPath:indexPath animated:YES];
// if ([_tableType isEqualToString:@"notice"]) {
// NSDictionary* dic= self.noticeArr[indexPath.row];
// NoteDetailViewController *detailVC = [[NoteDetailViewController alloc] initWithNotice:dic];
// [self.rdv_tabBarController.navigationController pushViewController:detailVC animated:YES];
// NSString* nid = _noticeArr[indexPath.row][@"noticeId"];
// [DBDaoMgr updateNoticeById:nid];
// [self selectNoticeDatas];
// [[NSNotificationCenter defaultCenter] postNotificationName:kShouldReQueryCountInit object:nil];
// }
// else
// {
NoteDetailViewController *detailVC = [[NoteDetailViewController alloc] initWithNibName:nil bundle:nil];
detailVC.dictNotice = self.arrContents[indexPath.row];
[self.rdv_tabBarController.navigationController pushViewController:detailVC animated:YES];
// }
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#import "TaskListViewController.h" #import "TaskListViewController.h"
#import "BackGroundMusicViewController.h" #import "BackGroundMusicViewController.h"
#import "DBDaoMgr.h" #import "DBDaoMgr.h"
#import "NoteDetailViewController.h"
@interface NewHomeViewController ()<UITableViewDelegate,UITableViewDataSource> @interface NewHomeViewController ()<UITableViewDelegate,UITableViewDataSource>
{ {
UIImageView* prcessImage; UIImageView* prcessImage;
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
UITableView *checkList; UITableView *checkList;
UIView *leftView; UIView *leftView;
UIImageView *imageViewHeaderBG;
} }
@end @end
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
UIImageView* headbg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 200)]; UIImageView* headbg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 200)];
headbg.image = [UIImage imageNamed:@"NavBar/top_bg_tab_left.png"]; headbg.image = [UIImage imageNamed:@"NavBar/top_bg_tab_left.png"];
[headView addSubview:headbg]; [headView addSubview:headbg];
imageViewHeaderBG = headbg;
UILabel* lblTitle = [[UILabel alloc] init]; UILabel* lblTitle = [[UILabel alloc] init];
lblTitle.text = @"首页"; lblTitle.text = @"首页";
...@@ -115,10 +115,12 @@ ...@@ -115,10 +115,12 @@
if(index ==0){ if(index ==0){
[checkList setHidden:true]; [checkList setHidden:true];
[leftView setHidden:false]; [leftView setHidden:false];
imageViewHeaderBG.image = [UIImage imageNamed:@"NavBar/top_bg_tab_left.png"];
} else{ } else{
[checkList setHidden:false]; [checkList setHidden:false];
[leftView setHidden:true]; [leftView setHidden:true];
imageViewHeaderBG.image = [UIImage imageNamed:@"NavBar/top_bg_tab_right.png"];
} }
} }
- (void)viewWillAppear:(BOOL)animated - (void)viewWillAppear:(BOOL)animated
...@@ -768,12 +770,14 @@ ...@@ -768,12 +770,14 @@
{ {
[UIApplication showLoadingView:kTextShowInProgress]; [UIApplication showLoadingView:kTextShowInProgress];
NSString *interface = @"queryNoticeListEX"; NSString *interface = @"queryNoticeListEX";
NSDictionary *params = @{@"type":@"2"};
NSOperation *operation = [self.networkMgr operationWithURL:kBaseEXURL(interface) NSOperation *operation = [self.networkMgr operationWithURL:kBaseEXURL(interface)
interface:interface interface:interface
params:nil params:params
dataType:BRNetMgrDataTypeJSON dataType:BRNetMgrDataTypeJSON
method:BRNetMgrMethodPost]; method:BRNetMgrMethodPost];
[self.networkMgr startOperation:operation]; [self.networkMgr startOperation:operation];
} }
#pragma mark ============= BRNetworkMgr Delegate ============= #pragma mark ============= BRNetworkMgr Delegate =============
- (void)httpOperationSuccess:(AFHTTPRequestOperation *)operation - (void)httpOperationSuccess:(AFHTTPRequestOperation *)operation
...@@ -901,10 +905,16 @@ ...@@ -901,10 +905,16 @@
self.selectedIndexPath = indexPath; self.selectedIndexPath = indexPath;
[tableView deselectRowAtIndexPath:indexPath animated:YES]; [tableView deselectRowAtIndexPath:indexPath animated:YES];
NSString* nid = _noticeArr[indexPath.row][@"noticeId"]; NSString* nid = _noticeArr[indexPath.row][@"noticeId"];
[DBDaoMgr updateNoticeById:nid]; [DBDaoMgr updateNoticeById:nid];
[[NSNotificationCenter defaultCenter] postNotificationName:kShouldReQueryCountInit object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:kShouldReQueryCountInit object:nil];
NoteDetailViewController *detailVC = [[NoteDetailViewController alloc] initWithNibName:nil bundle:nil];
detailVC.dictNotice = self.arrContents[indexPath.row];
[self.rdv_tabBarController.navigationController pushViewController:detailVC animated:YES];
} }
......
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