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
7cf61ae6
Commit
7cf61ae6
authored
Dec 29, 2015
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新jPush 首页优化
parent
e101e22a
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
960 additions
and
999 deletions
+960
-999
Podfile.lock
Podfile.lock
+1
-1
Manifest.lock
Pods/Manifest.lock
+1
-1
project.pbxproj
Pods/Pods.xcodeproj/project.pbxproj
+914
-932
AFNetworking.xcscheme
...serdata/admin.xcuserdatad/xcschemes/AFNetworking.xcscheme
+1
-1
Pods.xcscheme
...proj/xcuserdata/admin.xcuserdatad/xcschemes/Pods.xcscheme
+1
-1
SDWebImage.xcscheme
...cuserdata/admin.xcuserdatad/xcschemes/SDWebImage.xcscheme
+1
-1
xcschememanagement.plist
...data/admin.xcuserdatad/xcschemes/xcschememanagement.plist
+6
-6
AFNetworking.xcconfig
Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig
+1
-5
Pods-resources.sh
Pods/Target Support Files/Pods/Pods-resources.sh
+1
-1
SDWebImage.xcconfig
Pods/Target Support Files/SDWebImage/SDWebImage.xcconfig
+1
-5
project.pbxproj
redstar.xcodeproj/project.pbxproj
+0
-16
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
HomeViewController.m
...r/Classes/Module/Home/ViewController/HomeViewController.m
+32
-29
No files found.
Podfile.lock
View file @
7cf61ae6
...
@@ -44,4 +44,4 @@ SPEC CHECKSUMS:
...
@@ -44,4 +44,4 @@ SPEC CHECKSUMS:
RATreeView: abb5e11bb2f955c7f58b1295d2b0eab1de7c2920
RATreeView: abb5e11bb2f955c7f58b1295d2b0eab1de7c2920
SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29
SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29
COCOAPODS: 0.3
9.0
COCOAPODS: 0.3
8.2
Pods/Manifest.lock
View file @
7cf61ae6
...
@@ -44,4 +44,4 @@ SPEC CHECKSUMS:
...
@@ -44,4 +44,4 @@ SPEC CHECKSUMS:
RATreeView: abb5e11bb2f955c7f58b1295d2b0eab1de7c2920
RATreeView: abb5e11bb2f955c7f58b1295d2b0eab1de7c2920
SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29
SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29
COCOAPODS: 0.3
9.0
COCOAPODS: 0.3
8.2
Pods/Pods.xcodeproj/project.pbxproj
View file @
7cf61ae6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/AFNetworking.xcscheme
View file @
7cf61ae6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
buildForAnalyzing =
"YES"
>
buildForAnalyzing =
"YES"
>
<BuildableReference
<BuildableReference
BuildableIdentifier =
"primary"
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
31805CC1CF27E8C7755D8815
"
BlueprintIdentifier =
"
06233FDD99F2013F83A398F3
"
BuildableName =
"libAFNetworking.a"
BuildableName =
"libAFNetworking.a"
BlueprintName =
"AFNetworking"
BlueprintName =
"AFNetworking"
ReferencedContainer =
"container:Pods.xcodeproj"
>
ReferencedContainer =
"container:Pods.xcodeproj"
>
...
...
Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/Pods.xcscheme
View file @
7cf61ae6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
buildForAnalyzing =
"YES"
>
buildForAnalyzing =
"YES"
>
<BuildableReference
<BuildableReference
BuildableIdentifier =
"primary"
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
EDCF6CB78FDFACBCABC012BC
"
BlueprintIdentifier =
"
9AD3B25BF8427F9674B17662
"
BuildableName =
"libPods.a"
BuildableName =
"libPods.a"
BlueprintName =
"Pods"
BlueprintName =
"Pods"
ReferencedContainer =
"container:Pods.xcodeproj"
>
ReferencedContainer =
"container:Pods.xcodeproj"
>
...
...
Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/SDWebImage.xcscheme
View file @
7cf61ae6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
buildForAnalyzing =
"YES"
>
buildForAnalyzing =
"YES"
>
<BuildableReference
<BuildableReference
BuildableIdentifier =
"primary"
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
0A64513C1B78725A36C743FF
"
BlueprintIdentifier =
"
10477AB8861E6E46A25DFBCD
"
BuildableName =
"libSDWebImage.a"
BuildableName =
"libSDWebImage.a"
BlueprintName =
"SDWebImage"
BlueprintName =
"SDWebImage"
ReferencedContainer =
"container:Pods.xcodeproj"
>
ReferencedContainer =
"container:Pods.xcodeproj"
>
...
...
Pods/Pods.xcodeproj/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
7cf61ae6
...
@@ -37,32 +37,32 @@
...
@@ -37,32 +37,32 @@
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
SuppressBuildableAutocreation
<
/k
e
y
>
<
k
e
y
>
SuppressBuildableAutocreation
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
0A84A7AEED2585FA18F182B740F5DE4C
<
/k
e
y
>
<
k
e
y
>
5352D432641F0656C90741034E32F31E
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
primary
<
/k
e
y
>
<
k
e
y
>
primary
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
5352D432641F0656C90741034E32F31E
<
/k
e
y
>
<
k
e
y
>
8421FA013F6234E416E9E5363CB99DDB
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
primary
<
/k
e
y
>
<
k
e
y
>
primary
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
B
AE21A624CC684DE7190C8516D5C1D79
<
/k
e
y
>
<
k
e
y
>
B
B58AC6D7CE35348B874113DF4C0EF45
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
primary
<
/k
e
y
>
<
k
e
y
>
primary
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
BB
58AC6D7CE35348B874113DF4C0EF45
<
/k
e
y
>
<
k
e
y
>
BB
698F8AC1978892388DCBBBB644ACFB
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
primary
<
/k
e
y
>
<
k
e
y
>
primary
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
BB698F8AC1978892388DCBBBB644ACFB
<
/k
e
y
>
<
k
e
y
>
CB31271C2921A12D89FFCA121A02166F
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
primary
<
/k
e
y
>
<
k
e
y
>
primary
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
D2622CD5BD5433C58B2785DDFB9B0573
<
/k
e
y
>
<
k
e
y
>
F6EBA2C87F0A4CB70AF517C3E99C2E16
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
primary
<
/k
e
y
>
<
k
e
y
>
primary
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
...
...
Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig
View file @
7cf61ae6
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
AFNETWORKING_OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/JPushSDK" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/RATreeView" "${PODS_ROOT}/Headers/Public/SDWebImage"
\ No newline at end of file
OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration"
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES
\ No newline at end of file
Pods/Target Support Files/Pods/Pods-resources.sh
View file @
7cf61ae6
...
@@ -66,7 +66,7 @@ fi
...
@@ -66,7 +66,7 @@ fi
mkdir
-p
"
${
CONFIGURATION_BUILD_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
mkdir
-p
"
${
CONFIGURATION_BUILD_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
rsync
-avr
--copy-links
--no-relative
--exclude
'*/.svn/*'
--files-from
=
"
$RESOURCES_TO_COPY
"
/
"
${
CONFIGURATION_BUILD_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
rsync
-avr
--copy-links
--no-relative
--exclude
'*/.svn/*'
--files-from
=
"
$RESOURCES_TO_COPY
"
/
"
${
CONFIGURATION_BUILD_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
if
[[
"
${
ACTION
}
"
==
"install"
]]
&&
[[
"
${
SKIP_INSTALL
}
"
==
"NO"
]]
;
then
if
[[
"
${
ACTION
}
"
==
"install"
]]
;
then
mkdir
-p
"
${
INSTALL_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
mkdir
-p
"
${
INSTALL_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
rsync
-avr
--copy-links
--no-relative
--exclude
'*/.svn/*'
--files-from
=
"
$RESOURCES_TO_COPY
"
/
"
${
INSTALL_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
rsync
-avr
--copy-links
--no-relative
--exclude
'*/.svn/*'
--files-from
=
"
$RESOURCES_TO_COPY
"
/
"
${
INSTALL_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
"
fi
fi
...
...
Pods/Target Support Files/SDWebImage/SDWebImage.xcconfig
View file @
7cf61ae6
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
SDWEBIMAGE_OTHER_LDFLAGS = -framework "ImageIO"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SDWebImage" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/JPushSDK" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/RATreeView" "${PODS_ROOT}/Headers/Public/SDWebImage"
\ No newline at end of file
OTHER_LDFLAGS = -framework "ImageIO"
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES
\ No newline at end of file
redstar.xcodeproj/project.pbxproj
View file @
7cf61ae6
...
@@ -2228,7 +2228,6 @@
...
@@ -2228,7 +2228,6 @@
84970DE71BD8DD8A00C1728A
/* Frameworks */
,
84970DE71BD8DD8A00C1728A
/* Frameworks */
,
84970DE81BD8DD8A00C1728A
/* Resources */
,
84970DE81BD8DD8A00C1728A
/* Resources */
,
23955BAECB0FED236FD29A26
/* Copy Pods Resources */
,
23955BAECB0FED236FD29A26
/* Copy Pods Resources */
,
8D85C266E1CF82C4CB638DED
/* Embed Pods Frameworks */
,
);
);
buildRules
=
(
buildRules
=
(
);
);
...
@@ -2371,21 +2370,6 @@
...
@@ -2371,21 +2370,6 @@
shellScript
=
"\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"
;
shellScript
=
"\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"
;
showEnvVarsInLog
=
0
;
showEnvVarsInLog
=
0
;
};
};
8D85C266E1CF82C4CB638DED
/* Embed Pods Frameworks */
=
{
isa
=
PBXShellScriptBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
);
inputPaths
=
(
);
name
=
"Embed Pods Frameworks"
;
outputPaths
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n"
;
showEnvVarsInLog
=
0
;
};
BC0FD901EAA939388DD7E146
/* Check Pods Manifest.lock */
=
{
BC0FD901EAA939388DD7E146
/* Check Pods Manifest.lock */
=
{
isa
=
PBXShellScriptBuildPhase
;
isa
=
PBXShellScriptBuildPhase
;
buildActionMask
=
2147483647
;
buildActionMask
=
2147483647
;
...
...
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7cf61ae6
No preview for this file type
redstar/Classes/Module/Home/ViewController/HomeViewController.m
View file @
7cf61ae6
...
@@ -94,7 +94,14 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -94,7 +94,14 @@ 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
array
];
self
.
sectionArray
=
[
NSMutableArray
arrayWithObjects
:
@"口碑报告"
,
@"商场风采"
,
@"问题知识"
,
@"口碑巡检"
,
nil
];
self
.
allRankListArray
=
[
NSMutableArray
array
];
self
.
taskListDataArray
=
[
NSMutableArray
array
];
self
.
allQuestionArray
=
[
NSMutableArray
array
];
self
.
allPraiseListArray
=
[
NSMutableArray
array
];
[
self
setupNav
];
NSArray
*
permissions
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"permissions"
];
NSArray
*
permissions
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"permissions"
];
...
@@ -103,10 +110,12 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -103,10 +110,12 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
if
([
permissions
containsObject
:
@"500201"
])
{
if
([
permissions
containsObject
:
@"500201"
])
{
[
self
.
titleArray
addObject
:
@"口碑报告"
];
[
self
.
titleArray
addObject
:
@"口碑报告"
];
[
self
requestRankingList
];
[
self
requestRankingList
];
}
else
{
[
_sectionArray
removeObject
:
@"口碑报告"
];
}
}
[
self
.
titleArray
addObject
:
@"商场风采"
];
[
self
.
titleArray
addObject
:
@"商场风采"
];
//
[self requestPicturePraise];
[
self
requestPicturePraise
];
if
([
permissions
containsObject
:
@"500301"
]
||
[
permissions
containsObject
:
@"500302"
])
{
if
([
permissions
containsObject
:
@"500301"
]
||
[
permissions
containsObject
:
@"500302"
])
{
[
self
.
titleArray
addObject
:
@"图说口碑"
];
[
self
.
titleArray
addObject
:
@"图说口碑"
];
...
@@ -118,30 +127,23 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -118,30 +127,23 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
if
([
permissions
containsObject
:
@"500501"
]
||
[
permissions
containsObject
:
@"500502"
])
{
if
([
permissions
containsObject
:
@"500501"
]
||
[
permissions
containsObject
:
@"500502"
])
{
[
self
.
titleArray
addObject
:
@"问题知识"
];
[
self
.
titleArray
addObject
:
@"问题知识"
];
// [self requestQuestionList];
[
self
requestQuestionList
];
}
else
{
[
_sectionArray
removeObject
:
@"问题知识"
];
}
}
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
{
[
_sectionArray
removeObject
:
@"口碑巡检"
];
}
}
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
_titleArray
forKey
:
@"function"
];
[
self
setupNav
];
[
self
setupTableView
];
[
self
setupTableView
];
[
MBProgressHUD
showHUDAddedTo
:
self
.
view
animated
:
YES
];
[
MBProgressHUD
showHUDAddedTo
:
self
.
view
animated
:
YES
];
self
.
allRankListArray
=
[
NSMutableArray
array
];
self
.
taskListDataArray
=
[
NSMutableArray
array
];
self
.
allQuestionArray
=
[
NSMutableArray
array
];
self
.
allPraiseListArray
=
[
NSMutableArray
array
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
refreshInspectList
)
selector
:
@selector
(
refreshInspectList
)
...
@@ -319,7 +321,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -319,7 +321,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
[
httpCilent
getRankingListWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
httpCilent
getRankingListWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
self
requestPicturePraise
];
//
[self requestPicturePraise];
NSLog
(
@"口碑报告response = %@"
,
response
);
NSLog
(
@"口碑报告response = %@"
,
response
);
NSDictionary
*
dataDict
=
response
[
@"data"
];
NSDictionary
*
dataDict
=
response
[
@"data"
];
...
@@ -342,8 +344,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -342,8 +344,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
rank
.
index
=
rank
.
score
==
prevRank
.
score
?
prevRank
.
index
:
i
+
1
;
rank
.
index
=
rank
.
score
==
prevRank
.
score
?
prevRank
.
index
:
i
+
1
;
}
}
}
}
if
(
_allRankListArray
.
count
!
=
0
)
{
if
(
_allRankListArray
.
count
=
=
0
)
{
[
_sectionArray
add
Object
:
@"口碑报告"
];
[
_sectionArray
remove
Object
:
@"口碑报告"
];
}
}
[
self
.
tableView
reloadData
];
[
self
.
tableView
reloadData
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
...
@@ -392,8 +394,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -392,8 +394,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
}
}
_taskListDataArray
=
[
NSMutableArray
arrayWithArray
:
tempArray
];
_taskListDataArray
=
[
NSMutableArray
arrayWithArray
:
tempArray
];
if
(
_taskListDataArray
.
count
!
=
0
)
{
if
(
_taskListDataArray
.
count
=
=
0
)
{
[
_sectionArray
add
Object
:
@"口碑巡检"
];
[
_sectionArray
remove
Object
:
@"口碑巡检"
];
}
}
[
self
.
tableView
reloadData
];
[
self
.
tableView
reloadData
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
...
@@ -420,7 +422,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -420,7 +422,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
// 请求问题列表
// 请求问题列表
[
httpClient
getQuestionListWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
httpClient
getQuestionListWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
self
requestInspectList
];
//
[self requestInspectList];
NSDictionary
*
dataDict
=
(
NSDictionary
*
)
response
[
@"data"
];
NSDictionary
*
dataDict
=
(
NSDictionary
*
)
response
[
@"data"
];
NSDictionary
*
recordsDict
=
(
NSDictionary
*
)
dataDict
[
@"records"
];
NSDictionary
*
recordsDict
=
(
NSDictionary
*
)
dataDict
[
@"records"
];
...
@@ -433,8 +435,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -433,8 +435,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
[
tempArray
addObject
:
question
];
[
tempArray
addObject
:
question
];
}
}
_allQuestionArray
=
[
NSMutableArray
arrayWithArray
:
tempArray
];
_allQuestionArray
=
[
NSMutableArray
arrayWithArray
:
tempArray
];
if
(
_allQuestionArray
.
count
!
=
0
)
{
if
(
_allQuestionArray
.
count
=
=
0
)
{
[
_sectionArray
add
Object
:
@"问题知识"
];
[
_sectionArray
remove
Object
:
@"问题知识"
];
}
}
[
self
.
tableView
reloadData
];
[
self
.
tableView
reloadData
];
...
@@ -463,7 +465,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -463,7 +465,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
// 请求问题列表
// 请求问题列表
[
httpClient
queryPicturePraiseWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
httpClient
queryPicturePraiseWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
self
requestQuestionList
];
//
[self requestQuestionList];
NSDictionary
*
dataDict
=
response
[
@"data"
];
NSDictionary
*
dataDict
=
response
[
@"data"
];
NSArray
*
dataArray
=
dataDict
[
@"records"
];
NSArray
*
dataArray
=
dataDict
[
@"records"
];
NSMutableArray
*
tempArray
=
[
NSMutableArray
array
];
NSMutableArray
*
tempArray
=
[
NSMutableArray
array
];
...
@@ -473,8 +475,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -473,8 +475,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
[
tempArray
addObject
:
picList
];
[
tempArray
addObject
:
picList
];
}
}
_allPraiseListArray
=
[
NSMutableArray
arrayWithArray
:
tempArray
];
_allPraiseListArray
=
[
NSMutableArray
arrayWithArray
:
tempArray
];
if
(
_allPraiseListArray
.
count
!
=
0
)
{
if
(
_allPraiseListArray
.
count
=
=
0
)
{
[
_sectionArray
add
Object
:
@"商场风采"
];
[
_sectionArray
remove
Object
:
@"商场风采"
];
}
}
[
self
.
tableView
reloadData
];
[
self
.
tableView
reloadData
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
...
@@ -504,12 +506,11 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -504,12 +506,11 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
self
.
headView
.
scrollView
.
contentSize
=
CGSizeMake
(
2
*
kScreenWidth
,
86
);
self
.
headView
.
scrollView
.
contentSize
=
CGSizeMake
(
2
*
kScreenWidth
,
86
);
CGFloat
itemW
=
kScreenWidth
/
4
;
CGFloat
itemW
=
kScreenWidth
/
4
;
CGFloat
itemH
=
self
.
headView
.
scrollView
.
frame
.
size
.
height
;
CGFloat
itemH
=
self
.
headView
.
scrollView
.
frame
.
size
.
height
;
NSMutableArray
*
titleArray
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"function"
];
for
(
int
i
=
0
;
i
<
titleArray
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
_
titleArray
.
count
;
i
++
)
{
HomeCellItem
*
item
=
[[
HomeCellItem
alloc
]
init
];
HomeCellItem
*
item
=
[[
HomeCellItem
alloc
]
init
];
item
.
frame
=
CGRectMake
(
i
*
itemW
,
0
,
itemW
,
itemH
);
item
.
frame
=
CGRectMake
(
i
*
itemW
,
0
,
itemW
,
itemH
);
NSString
*
nameStr
=
titleArray
[
i
];
NSString
*
nameStr
=
_
titleArray
[
i
];
UIImage
*
image
=
[
UIImage
imageNamed
:[
NSString
stringWithFormat
:
@"%@"
,
nameStr
]];
UIImage
*
image
=
[
UIImage
imageNamed
:[
NSString
stringWithFormat
:
@"%@"
,
nameStr
]];
[
item
setImage
:
image
forState
:
UIControlStateNormal
];
[
item
setImage
:
image
forState
:
UIControlStateNormal
];
[
item
setTitleColor
:
kPictureCellDetailsColor
forState
:
UIControlStateNormal
];
[
item
setTitleColor
:
kPictureCellDetailsColor
forState
:
UIControlStateNormal
];
...
@@ -526,6 +527,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -526,6 +527,8 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
[
self
refreshAllData
];
[
self
refreshAllData
];
}];
}];
[
self
.
tableView
reloadData
];
}
}
// 更多按钮点击事件
// 更多按钮点击事件
...
...
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