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
1de228a0
Commit
1de228a0
authored
Dec 06, 2015
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复权限
parent
04cebd92
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
675 additions
and
257 deletions
+675
-257
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
TaskListModel.h
...ion/WordOfMouth/Inspect/InspectList/Model/TaskListModel.h
+1
-0
TaskDetailModel.h
...n/WordOfMouth/Inspect/InspectTask/Model/TaskDetailModel.h
+1
-0
RankDetailViewController.m
...king/RankDetail/ViewController/RankDetailViewController.m
+26
-11
HomeViewController.m
...r/Classes/Module/Home/ViewController/HomeViewController.m
+124
-245
SearchViewController.m
...Classes/Module/Home/ViewController/SearchViewController.m
+523
-1
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1de228a0
No preview for this file type
redstar/Classes/Module/Function/WordOfMouth/Inspect/InspectList/Model/TaskListModel.h
View file @
1de228a0
...
...
@@ -37,4 +37,5 @@
@property
(
nonatomic
,
copy
)
NSString
*
storePath
;
@property
(
nonatomic
,
copy
)
NSString
*
gradeCount
;
@property
(
nonatomic
,
strong
)
NSArray
*
published
;
@property
(
nonatomic
,
copy
)
NSString
*
remark
;
@end
redstar/Classes/Module/Function/WordOfMouth/Inspect/InspectTask/Model/TaskDetailModel.h
View file @
1de228a0
...
...
@@ -39,6 +39,7 @@
@property
(
nonatomic
,
copy
)
NSString
*
storePath
;
@property
(
nonatomic
,
copy
)
NSString
*
gradeCount
;
@property
(
nonatomic
,
strong
)
NSArray
*
published
;
@property
(
nonatomic
,
copy
)
NSString
*
remark
;
+
(
instancetype
)
taskDetailModelWithDict
:(
NSDictionary
*
)
dict
;
-
(
instancetype
)
initWithDict
:(
NSDictionary
*
)
dict
;
...
...
redstar/Classes/Module/Function/WordOfMouth/Ranking/RankDetail/ViewController/RankDetailViewController.m
View file @
1de228a0
...
...
@@ -104,7 +104,7 @@
NSDictionary
*
dataDict
=
response
[
@"data"
];
TaskDetailModel
*
taskDetail
=
[
TaskDetailModel
taskDetailModelWithDict
:
dataDict
];
self
.
rankDetailHeaderView
.
taskDetail
=
taskDetail
;
NSArray
*
dataArray
=
dataDict
[
@"categories"
];
NSMutableArray
*
tgArray
=
[
NSMutableArray
array
];
...
...
@@ -248,19 +248,34 @@
-
(
void
)
setupScrollView
{
int
imageCount
=
(
int
)
self
.
storePictures
.
count
;
NSLog
(
@"self.storePicture = %@"
,
self
.
storePictures
);
CGFloat
marginW
=
5
.
0
;
CGFloat
imageViewW
=
90
+
2
*
marginW
;
CGFloat
imageViewH
=
self
.
rankDetailHeaderView
.
rankDetailView
.
showScrollView
.
bounds
.
size
.
height
-
4
;
self
.
rankDetailHeaderView
.
rankDetailView
.
showScrollView
.
contentSize
=
CGSizeMake
(
imageCount
*
imageViewW
,
imageViewH
+
4
);
for
(
int
i
=
0
;
i
<
imageCount
;
i
++
)
{
UIButton
*
button
=
[[
UIButton
alloc
]
init
];
NSDictionary
*
dict
=
(
NSDictionary
*
)
self
.
storePictures
[
i
];
NSURL
*
imageUrl
=
[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"%@%@"
,
kRedStarURL
,
dict
[
@"fileUrl"
]]];
[
button
sd_setImageWithURL
:
imageUrl
forState
:
UIControlStateNormal
placeholderImage
:
[
UIImage
imageNamed
:
@"default_pic"
]];
button
.
frame
=
CGRectMake
(
i
*
imageViewW
+
2
,
2
,
imageViewW
-
2
*
marginW
,
imageViewH
);
[
button
addTarget
:
self
action
:
@selector
(
showBigPic
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
rankDetailHeaderView
.
rankDetailView
.
showScrollView
addSubview
:
button
];
if
(
imageCount
==
0
)
{
self
.
rankDetailHeaderView
.
rankDetailView
.
showScrollView
.
contentSize
=
CGSizeMake
(
4
*
imageViewW
,
imageViewH
+
4
);
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
UIButton
*
button
=
[[
UIButton
alloc
]
init
];
[
button
setImage
:[
UIImage
imageNamed
:
@"default_pic"
]
forState
:
UIControlStateNormal
];
button
.
frame
=
CGRectMake
(
i
*
imageViewW
+
2
,
2
,
imageViewW
-
2
*
marginW
,
imageViewH
);
[
button
addTarget
:
self
action
:
@selector
(
showBigPic
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
rankDetailHeaderView
.
rankDetailView
.
showScrollView
addSubview
:
button
];
}
}
else
{
self
.
rankDetailHeaderView
.
rankDetailView
.
showScrollView
.
contentSize
=
CGSizeMake
(
imageCount
*
imageViewW
,
imageViewH
+
4
);
for
(
int
i
=
0
;
i
<
imageCount
;
i
++
)
{
UIButton
*
button
=
[[
UIButton
alloc
]
init
];
NSDictionary
*
dict
=
(
NSDictionary
*
)
self
.
storePictures
[
i
];
NSURL
*
imageUrl
=
[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"%@%@"
,
kRedStarURL
,
dict
[
@"fileUrl"
]]];
[
button
sd_setImageWithURL
:
imageUrl
forState
:
UIControlStateNormal
placeholderImage
:
[
UIImage
imageNamed
:
@"default_pic"
]];
button
.
frame
=
CGRectMake
(
i
*
imageViewW
+
2
,
2
,
imageViewW
-
2
*
marginW
,
imageViewH
);
[
button
addTarget
:
self
action
:
@selector
(
showBigPic
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
rankDetailHeaderView
.
rankDetailView
.
showScrollView
addSubview
:
button
];
}
}
}
...
...
redstar/Classes/Module/Home/ViewController/HomeViewController.m
View file @
1de228a0
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Home/ViewController/SearchViewController.m
View file @
1de228a0
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