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
5ff24842
Commit
5ff24842
authored
9 years ago
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能页添加在线抽查
parent
11b26e92
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
2 deletions
+38
-2
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
FunctionViewController.h
redstar/Classes/Module/Function/FunctionViewController.h
+2
-0
FunctionViewController.m
redstar/Classes/Module/Function/FunctionViewController.m
+36
-2
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
5ff24842
No preview for this file type
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Function/FunctionViewController.h
View file @
5ff24842
...
@@ -16,4 +16,6 @@
...
@@ -16,4 +16,6 @@
@property
(
nonatomic
,
strong
)
FuncItem
*
pictureBtn
;
// 图说口碑按钮
@property
(
nonatomic
,
strong
)
FuncItem
*
pictureBtn
;
// 图说口碑按钮
@property
(
nonatomic
,
strong
)
FuncItem
*
questionBtn
;
// 问题与知识按钮
@property
(
nonatomic
,
strong
)
FuncItem
*
questionBtn
;
// 问题与知识按钮
@property
(
nonatomic
,
strong
)
FuncItem
*
rankBtn
;
// 口碑排名按钮
@property
(
nonatomic
,
strong
)
FuncItem
*
rankBtn
;
// 口碑排名按钮
@property
(
nonatomic
,
strong
)
FuncItem
*
spotBtn
;
// 口碑排名按钮
@end
@end
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Function/FunctionViewController.m
View file @
5ff24842
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
#import "QuestionViewController.h"
#import "QuestionViewController.h"
#import "PicCategoryViewController.h"
#import "PicCategoryViewController.h"
#import "StandardViewController.h"
#import "StandardViewController.h"
#import "SpotCheckOnLineViewController.h"
#import "LookOnLineViewController.h"
@interface
FunctionViewController
()
@interface
FunctionViewController
()
@property
(
nonatomic
,
strong
)
UIView
*
lineView
;
@property
(
nonatomic
,
strong
)
UIView
*
lineView
;
...
@@ -58,17 +60,25 @@
...
@@ -58,17 +60,25 @@
[
self
.
pictureBtn
setTitle
:
@"口碑标准"
forState
:
UIControlStateNormal
];
[
self
.
pictureBtn
setTitle
:
@"口碑标准"
forState
:
UIControlStateNormal
];
[
self
.
questionBtn
setTitle
:
@"问题知识"
forState
:
UIControlStateNormal
];
[
self
.
questionBtn
setTitle
:
@"问题知识"
forState
:
UIControlStateNormal
];
[
self
.
rankBtn
setTitle
:
@"口碑巡检"
forState
:
UIControlStateNormal
];
[
self
.
rankBtn
setTitle
:
@"口碑巡检"
forState
:
UIControlStateNormal
];
[
self
.
spotBtn
setTitle
:
@"在线抽查"
forState
:
UIControlStateNormal
];
//self.lineView.backgroundColor = kSeparateLineViewColor;
//self.lineView.backgroundColor = kSeparateLineViewColor;
}
}
-
(
void
)
itemClick
:
(
FuncItem
*
)
sender
-
(
void
)
itemClick
:
(
FuncItem
*
)
sender
{
{
NSArray
*
permissions
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"permissions"
];
FuncItem
*
item
=
(
FuncItem
*
)
sender
;
FuncItem
*
item
=
(
FuncItem
*
)
sender
;
UINavigationController
*
nav
;
UINavigationController
*
nav
;
if
([
item
.
titleLabel
.
text
isEqualToString
:
@"在线抽查"
])
{
if
([
item
.
titleLabel
.
text
isEqualToString
:
@"在线抽查"
])
{
return
;
if
([
permissions
containsObject
:
@"500701"
])
{
SpotCheckOnLineViewController
*
spotOnline
=
[[
SpotCheckOnLineViewController
alloc
]
init
];
nav
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
spotOnline
];
}
else
if
([
permissions
containsObject
:
@"500702"
]){
LookOnLineViewController
*
lookOnLine
=
[[
LookOnLineViewController
alloc
]
init
];
nav
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
lookOnLine
];
}
}
else
if
([
item
.
titleLabel
.
text
isEqualToString
:
@"口碑巡检"
])
{
}
else
if
([
item
.
titleLabel
.
text
isEqualToString
:
@"口碑巡检"
])
{
InspectListViewController
*
inspectListVC
=
[[
InspectListViewController
alloc
]
init
];
InspectListViewController
*
inspectListVC
=
[[
InspectListViewController
alloc
]
init
];
nav
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
inspectListVC
];
nav
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
inspectListVC
];
...
@@ -283,6 +293,30 @@
...
@@ -283,6 +293,30 @@
}
}
return
_lineView
;
return
_lineView
;
}
}
-
(
FuncItem
*
)
spotBtn
{
if
(
!
_spotBtn
)
{
_spotBtn
=
[[
FuncItem
alloc
]
init
];
[
_spotBtn
setImage
:[
UIImage
imageNamed
:
@"task_000"
]
forState
:
UIControlStateNormal
];
_spotBtn
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
_spotBtn
addTarget
:
self
action
:
@selector
(
itemClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
view
addSubview
:
_spotBtn
];
NSLayoutConstraint
*
caseTop
=
[
NSLayoutConstraint
constraintWithItem
:
_spotBtn
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
_pictureBtn
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
[
self
.
view
addConstraint
:
caseTop
];
NSLayoutConstraint
*
caseRight
=
[
NSLayoutConstraint
constraintWithItem
:
_spotBtn
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
_pictureBtn
attribute
:
NSLayoutAttributeRight
multiplier
:
1
.
0
constant
:
0
];
[
self
.
view
addConstraint
:
caseRight
];
NSLayoutConstraint
*
caseLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_spotBtn
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
_pictureBtn
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
0
];
[
self
.
view
addConstraint
:
caseLeft
];
NSLayoutConstraint
*
caseHeight
=
[
NSLayoutConstraint
constraintWithItem
:
_spotBtn
attribute
:
NSLayoutAttributeHeight
relatedBy
:
NSLayoutRelationEqual
toItem
:
_pictureBtn
attribute
:
NSLayoutAttributeHeight
multiplier
:
1
.
0
constant
:
0
];
[
self
.
view
addConstraint
:
caseHeight
];
}
return
_spotBtn
;
}
-
(
void
)
didReceiveMemoryWarning
{
-
(
void
)
didReceiveMemoryWarning
{
...
...
This diff is collapsed.
Click to expand it.
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