Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
红
红星美凯龙管理在线APP IOS
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
张杰
红星美凯龙管理在线APP IOS
Commits
7653df0f
Commit
7653df0f
authored
Jan 28, 2016
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开放 在线抽查
parent
bfc0f83b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
19 deletions
+35
-19
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
HomeViewController.m
...r/Classes/Module/Home/ViewController/HomeViewController.m
+35
-19
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7653df0f
No preview for this file type
redstar/Classes/Module/Home/ViewController/HomeViewController.m
View file @
7653df0f
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
#import <MJRefresh.h>
#import <MJRefresh.h>
#import "SearchViewController.h"
#import "SearchViewController.h"
#import "LookReportDetailViewController.h"
typedef
NSComparisonResult
(
^
NSComparator
)(
id
obj1
,
id
obj2
);
typedef
NSComparisonResult
(
^
NSComparator
)(
id
obj1
,
id
obj2
);
...
@@ -109,8 +110,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -109,8 +110,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
self
.
navigationItem
.
titleView
=
customLab
;
self
.
navigationItem
.
titleView
=
customLab
;
self
.
titleArray
=
[
NSMutableArray
array
];
self
.
titleArray
=
[
NSMutableArray
array
];
//
self.sectionArray = [NSMutableArray arrayWithObjects:@"口碑报告",@"商场风采",@"优秀案例",@"巡店报告", @"问题知识",@"口碑巡检",@"在线抽查",nil];
self
.
sectionArray
=
[
NSMutableArray
arrayWithObjects
:
@"口碑报告"
,
@"商场风采"
,
@"优秀案例"
,
@"巡店报告"
,
@"问题知识"
,
@"口碑巡检"
,
@"在线抽查"
,
nil
];
self
.
sectionArray
=
[
NSMutableArray
arrayWithObjects
:
@"口碑报告"
,
@"商场风采"
,
@"优秀案例"
,
@"巡店报告"
,
@"问题知识"
,
@"口碑巡检"
,
nil
];
//
self.sectionArray = [NSMutableArray arrayWithObjects:@"口碑报告",@"商场风采",@"优秀案例",@"巡店报告", @"问题知识",@"口碑巡检",nil];
self
.
allRankListArray
=
[
NSMutableArray
array
];
self
.
allRankListArray
=
[
NSMutableArray
array
];
self
.
taskListDataArray
=
[
NSMutableArray
array
];
self
.
taskListDataArray
=
[
NSMutableArray
array
];
...
@@ -167,22 +168,22 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -167,22 +168,22 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
if
([
permissions
containsObject
:
@"500101"
]
||
[
permissions
containsObject
:
@"500102"
])
{
if
([
permissions
containsObject
:
@"500101"
]
||
[
permissions
containsObject
:
@"500102"
])
{
[
self
.
titleArray
addObject
:
@"口碑巡检"
];
[
self
.
titleArray
addObject
:
@"口碑巡检"
];
[
self
requestInspectList
];
[
self
requestInspectList
];
}
else
{
}
else
{
[
_sectionArray
removeObject
:
@"口碑巡检"
];
[
_sectionArray
removeObject
:
@"口碑巡检"
];
}
}
//
if ([permissions containsObject:@"500701"] || [permissions containsObject:@"500702"]) {
if
([
permissions
containsObject
:
@"500701"
]
||
[
permissions
containsObject
:
@"500702"
])
{
//
[self.titleArray addObject:@"在线抽查"];
[
self
.
titleArray
addObject
:
@"在线抽查"
];
//
//
if ([permissions containsObject:@"500701"]) {
if
([
permissions
containsObject
:
@"500701"
])
{
//
[self requestLookOnLineList];
[
self
requestLookOnLineList
];
//
} else if ([permissions containsObject:@"500702"]){
}
else
if
([
permissions
containsObject
:
@"500702"
]){
//
[self requestSpotCheckList];
[
self
requestSpotCheckList
];
//
}
}
//
//
} else {
}
else
{
//
[_sectionArray removeObject:@"在线抽查"];
[
_sectionArray
removeObject
:
@"在线抽查"
];
//
}
}
// if ([permissions containsObject:@"500702"]) {
// if ([permissions containsObject:@"500702"]) {
// [self.titleArray addObject:@"在线抽查"];
// [self.titleArray addObject:@"在线抽查"];
...
@@ -1066,12 +1067,27 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -1066,12 +1067,27 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
completeVC
.
uuid
=
spot
.
uuid
;
completeVC
.
uuid
=
spot
.
uuid
;
self
.
hidesBottomBarWhenPushed
=
YES
;
self
.
hidesBottomBarWhenPushed
=
YES
;
[
self
.
navigationController
pushViewController
:
completeVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
completeVC
animated
:
YES
];
}
else
if
([
permissions
containsObject
:
@"500702"
]){
}
else
if
([
permissions
containsObject
:
@"500702"
]){
LookOnLineModel
*
lookOnLine
=
_allLookOnLineList
[
indexPath
.
row
];
LookOnLineModel
*
lookOnLine
=
_allLookOnLineList
[
indexPath
.
row
];
// LookOnLineDetailViewController *lookDetailVC = [[LookOnLineDetailViewController alloc] init];
// lookDetailVC.lookOnLine = lookOnLine;
// self.hidesBottomBarWhenPushed = YES;
// [self.navigationController pushViewController:lookDetailVC animated:YES];
if
([
lookOnLine
.
state
isEqualToString
:
@"initial"
])
{
LookOnLineDetailViewController
*
lookDetailVC
=
[[
LookOnLineDetailViewController
alloc
]
init
];
LookOnLineDetailViewController
*
lookDetailVC
=
[[
LookOnLineDetailViewController
alloc
]
init
];
// lookDetailVC.delegate = self;
lookDetailVC
.
lookOnLine
=
lookOnLine
;
lookDetailVC
.
lookOnLine
=
lookOnLine
;
self
.
hidesBottomBarWhenPushed
=
YES
;
self
.
hidesBottomBarWhenPushed
=
YES
;
[
self
.
navigationController
pushViewController
:
lookDetailVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
lookDetailVC
animated
:
YES
];
}
else
{
LookReportDetailViewController
*
lookReportVC
=
[[
LookReportDetailViewController
alloc
]
init
];
lookReportVC
.
lookOnLine
=
lookOnLine
;
self
.
hidesBottomBarWhenPushed
=
YES
;
[
self
.
navigationController
pushViewController
:
lookReportVC
animated
:
YES
];
}
}
else
{
}
else
{
return
;
return
;
}
}
...
...
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