Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Macalline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Macalline
Commits
10ae2296
Commit
10ae2296
authored
Apr 10, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商场权限登录,首页切换完成
parent
e0d48415
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
30 deletions
+20
-30
SANewHomeViewController.m
...wControllers/SmallArea/SASystem/SANewHomeViewController.m
+4
-24
NewHomeViewController.m
...ne/Classes/ViewControllers/System/NewHomeViewController.m
+16
-6
No files found.
Macalline/Classes/ViewControllers/SmallArea/SASystem/SANewHomeViewController.m
View file @
10ae2296
...
...
@@ -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
];
// }
NoteDetailViewController
*
detailVC
=
[[
NoteDetailViewController
alloc
]
initWithNibName
:
nil
bundle
:
nil
];
detailVC
.
dictNotice
=
self
.
arrContents
[
indexPath
.
row
];
[
self
.
rdv_tabBarController
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
}
...
...
Macalline/Classes/ViewControllers/System/NewHomeViewController.m
View file @
10ae2296
...
...
@@ -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
...
...
@@ -901,10 +905,16 @@
self
.
selectedIndexPath
=
indexPath
;
[
tableView
deselectRowAtIndexPath
:
indexPath
animated
:
YES
];
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
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment