Commit 10ae2296 authored by Sandy's avatar Sandy

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

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