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
4b9a9bb0
Commit
4b9a9bb0
authored
Dec 03, 2015
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加巡检商场字段
parent
2abcb09c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
14 deletions
+40
-14
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
InspectNotUploadViewController.m
...ectDetail/ViewController/InspectNotUploadViewController.m
+0
-1
InspectListCell.h
...on/WordOfMouth/Inspect/InspectList/Cell/InspectListCell.h
+1
-0
InspectListCell.m
...on/WordOfMouth/Inspect/InspectList/Cell/InspectListCell.m
+30
-5
InspectListViewController.m
...ct/InspectList/ViewController/InspectListViewController.m
+7
-7
HomeViewController.m
...r/Classes/Module/Home/ViewController/HomeViewController.m
+2
-1
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
4b9a9bb0
No preview for this file type
redstar/Classes/Module/Function/WordOfMouth/Inspect/InspectDetail/ViewController/InspectNotUploadViewController.m
View file @
4b9a9bb0
...
...
@@ -233,7 +233,6 @@
// 退出图片选择控制器
[
picker
dismissViewControllerAnimated
:
YES
completion
:
nil
];
NSLog
(
@"222222self.tableView.frame = %@, self.contentSize = %@, self.contentOff = %@"
,
NSStringFromCGRect
(
self
.
tableView
.
frame
),
NSStringFromCGSize
(
self
.
tableView
.
contentSize
),
NSStringFromCGPoint
(
self
.
tableView
.
contentOffset
));
}
...
...
redstar/Classes/Module/Function/WordOfMouth/Inspect/InspectList/Cell/InspectListCell.h
View file @
4b9a9bb0
...
...
@@ -13,6 +13,7 @@
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
// 标题
@property
(
nonatomic
,
strong
)
UILabel
*
startDate
;
// 起始日期
@property
(
nonatomic
,
strong
)
UILabel
*
overDate
;
// 截止日期
@property
(
nonatomic
,
strong
)
UILabel
*
address
;
@property
(
nonatomic
,
strong
)
UILabel
*
progressLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
alreadyLabel
;
...
...
redstar/Classes/Module/Function/WordOfMouth/Inspect/InspectList/Cell/InspectListCell.m
View file @
4b9a9bb0
...
...
@@ -31,7 +31,7 @@
self
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
19
.
0
];
self
.
startDate
.
textColor
=
kCellDetailColor
;
self
.
overDate
.
textColor
=
kCellDetailColor
;
self
.
address
.
textColor
=
kCellDetailColor
;
self
.
progressLabel
.
font
=
[
UIFont
systemFontOfSize
:
14
.
0
];
self
.
alreadyLabel
.
font
=
[
UIFont
systemFontOfSize
:
15
.
0
];
self
.
allLabel
.
font
=
[
UIFont
systemFontOfSize
:
15
.
0
];
...
...
@@ -44,6 +44,7 @@
self
.
titleLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
taskList
.
name
];
self
.
startDate
.
text
=
[
NSString
stringWithFormat
:
@"起始时间:%@"
,
taskList
.
beginDate
];
self
.
overDate
.
text
=
[
NSString
stringWithFormat
:
@"截止时间:%@"
,
taskList
.
endDate
];
self
.
address
.
text
=
[
NSString
stringWithFormat
:
@"巡检商场:%@"
,
taskList
.
store_name
];
self
.
alreadyLabel
.
text
=
[
NSString
stringWithFormat
:
@"%d"
,
taskList
.
reportCount
];
self
.
allLabel
.
text
=
[
NSString
stringWithFormat
:
@"/%d"
,
taskList
.
questionCount
];
...
...
@@ -188,6 +189,30 @@
return
_overDate
;
}
-
(
UILabel
*
)
address
{
if
(
!
_address
)
{
_address
=
[[
UILabel
alloc
]
init
];
_address
.
font
=
[
UIFont
systemFontOfSize
:
14
.
0
];
_address
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
.
contentView
addSubview
:
_address
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_address
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
overDate
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
[
self
.
contentView
addConstraint
:
overDateTop
];
NSLayoutConstraint
*
overDateLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_address
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
[
self
.
contentView
addConstraint
:
overDateLeft
];
NSLayoutConstraint
*
overDateRight
=
[
NSLayoutConstraint
constraintWithItem
:
_address
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeRight
multiplier
:
1
.
0
constant
:-
20
];
[
self
.
contentView
addConstraint
:
overDateRight
];
NSLayoutConstraint
*
overDateHeight
=
[
NSLayoutConstraint
constraintWithItem
:
_address
attribute
:
NSLayoutAttributeHeight
relatedBy
:
NSLayoutRelationEqual
toItem
:
nil
attribute
:
NSLayoutAttributeNotAnAttribute
multiplier
:
1
.
0
constant
:
20
];
[
self
.
contentView
addConstraint
:
overDateHeight
];
}
return
_address
;
}
-
(
UILabel
*
)
progressLabel
{
if
(
!
_progressLabel
)
{
...
...
@@ -195,7 +220,7 @@
_progressLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
.
contentView
addSubview
:
_progressLabel
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_progressLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
overDate
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_progressLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
address
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
[
self
.
contentView
addConstraint
:
overDateTop
];
NSLayoutConstraint
*
overDateLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_progressLabel
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
...
...
@@ -218,7 +243,7 @@
_alreadyLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
.
contentView
addSubview
:
_alreadyLabel
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_alreadyLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
overDate
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_alreadyLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
address
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
[
self
.
contentView
addConstraint
:
overDateTop
];
NSLayoutConstraint
*
overDateWidth
=
[
NSLayoutConstraint
constraintWithItem
:
_alreadyLabel
attribute
:
NSLayoutAttributeWidth
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
allLabel
attribute
:
NSLayoutAttributeWidth
multiplier
:
1
.
0
constant
:
0
];
...
...
@@ -240,7 +265,7 @@
_allLabel
.
translatesAutoresizingMaskIntoConstraints
=
NO
;
[
self
.
contentView
addSubview
:
_allLabel
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_allLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
overDate
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_allLabel
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
address
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
0
];
[
self
.
contentView
addConstraint
:
overDateTop
];
NSLayoutConstraint
*
overDateWidth
=
[
NSLayoutConstraint
constraintWithItem
:
_allLabel
attribute
:
NSLayoutAttributeWidth
relatedBy
:
NSLayoutRelationEqual
toItem
:
nil
attribute
:
NSLayoutAttributeNotAnAttribute
multiplier
:
1
.
0
constant
:
32
];
...
...
@@ -268,7 +293,7 @@
_allView
.
layer
.
borderColor
=
kUsernameBorderColor
;
[
self
.
contentView
addSubview
:
_allView
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_allView
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
progress
Label
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
5
];
NSLayoutConstraint
*
overDateTop
=
[
NSLayoutConstraint
constraintWithItem
:
_allView
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
all
Label
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
.
0
constant
:
5
];
[
self
.
contentView
addConstraint
:
overDateTop
];
NSLayoutConstraint
*
overDateLeft
=
[
NSLayoutConstraint
constraintWithItem
:
_allView
attribute
:
NSLayoutAttributeLeft
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
contentView
attribute
:
NSLayoutAttributeLeft
multiplier
:
1
.
0
constant
:
20
];
...
...
redstar/Classes/Module/Function/WordOfMouth/Inspect/InspectList/ViewController/InspectListViewController.m
View file @
4b9a9bb0
...
...
@@ -637,11 +637,11 @@
[
self
.
navigationController
pushViewController
:
inspectTaskVC
animated
:
YES
];
}
// cell的高度
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
145
;
}
//
//
cell的高度
//
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
//
{
//
return 145;
//
}
// section高度
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForHeaderInSection
:
(
NSInteger
)
section
...
...
@@ -689,8 +689,8 @@
_tableView
.
showsVerticalScrollIndicator
=
NO
;
_tableView
.
showsHorizontalScrollIndicator
=
NO
;
_tableView
.
tableFooterView
=
[[
UIView
alloc
]
init
];
// [_tableView registerClass:[InspectListCell class] forCellReuseIdentifier:kInspectListCell]
;
_tableView
.
rowHeight
=
UITableViewAutomaticDimension
;
_tableView
.
estimatedRowHeight
=
150
.
0
;
[
self
.
view
addSubview
:
_tableView
];
NSLayoutConstraint
*
tableTop
=
[
NSLayoutConstraint
constraintWithItem
:
_tableView
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
view
attribute
:
NSLayoutAttributeTop
multiplier
:
1
.
0
constant
:
45
];
...
...
redstar/Classes/Module/Home/ViewController/HomeViewController.m
View file @
4b9a9bb0
...
...
@@ -1037,7 +1037,8 @@
-
(
void
)
searchClick
:
(
UIButton
*
)
sender
{
if
(
!
_searchTextField
.
text
)
{
NSLog
(
@"_searchTextField.text = %@"
,
_searchTextField
.
text
);
if
(
!
[
_searchTextField
.
text
isEqualToString
:
@""
])
{
SearchViewController
*
searchVC
=
[[
SearchViewController
alloc
]
init
];
searchVC
.
customStr
=
_searchTextField
.
text
;
[
self
.
navigationController
pushViewController
:
searchVC
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