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
88f94923
Commit
88f94923
authored
Dec 25, 2015
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按照新排名接口修正
parent
1e87f045
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
20 deletions
+14
-20
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
RankListModel.h
...ion/WordOfMouth/Ranking/RankingList/Model/RankListModel.h
+0
-1
RankingListViewController.m
...ng/RankingList/ViewController/RankingListViewController.m
+5
-8
HomeViewController.m
...r/Classes/Module/Home/ViewController/HomeViewController.m
+9
-11
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
88f94923
No preview for this file type
redstar/Classes/Module/Function/WordOfMouth/Ranking/RankingList/Model/RankListModel.h
View file @
88f94923
...
...
@@ -14,7 +14,6 @@
@property
(
nonatomic
,
copy
)
NSString
*
store_uuid
;
@property
(
nonatomic
,
copy
)
NSString
*
store_code
;
@property
(
nonatomic
,
copy
)
NSString
*
store_name
;
// @property (nonatomic,copy) NSString * score;
@property
(
nonatomic
,
assign
)
CGFloat
score
;
@property
(
nonatomic
,
copy
)
NSString
*
reported
;
...
...
redstar/Classes/Module/Function/WordOfMouth/Ranking/RankingList/ViewController/RankingListViewController.m
View file @
88f94923
...
...
@@ -139,10 +139,8 @@
__block
RankingListViewController
*
weakSelf
=
self
;
[
httpCilent
getRankingListWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
NSLog
(
@"口碑排名response = %@"
,
response
);
if
([(
NSArray
*
)
response
[
@"data"
]
count
]
==
0
)
{
return
;
}
NSArray
*
dataArray
=
response
[
@"data"
];
NSDictionary
*
dataDict
=
response
[
@"data"
];
NSArray
*
dataArray
=
dataDict
[
@"records"
];
NSMutableArray
*
tgArray
=
[
NSMutableArray
array
];
...
...
@@ -202,8 +200,6 @@
-
(
void
)
requestPartPraise
{
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
kRedStarURL
,
kRankingListURL
];
_statisMode
=
_selectButton
.
tag
-
323228
;
...
...
@@ -211,14 +207,15 @@
NSDictionary
*
dict
=
_titleArray
[
_pickRow
];
NSDictionary
*
parameters
=
@{
@"praiseUuid"
:
dict
[
@"uuid"
],
@"statisMode"
:
@
(
_statisMode
),
@"orgUuids"
:
_uuidArray
@"orgUuids"
:
_uuidArray
,
};
NSLog
(
@"parrrrrters = %@"
,
parameters
);
[
MBProgressHUD
showHUDAddedTo
:
self
.
view
animated
:
YES
];
[
httpCilent
getRankingListWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
NSLog
(
@"分区域 口碑排名response = %@ error = %@"
,
response
,
error
);
NSArray
*
dataArray
=
response
[
@"data"
];
NSDictionary
*
dataDict
=
response
[
@"data"
];
NSArray
*
dataArray
=
dataDict
[
@"records"
];
NSMutableArray
*
tgArray
=
[
NSMutableArray
array
];
...
...
redstar/Classes/Module/Home/ViewController/HomeViewController.m
View file @
88f94923
...
...
@@ -207,17 +207,15 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
// 口碑巡检
NSString
*
url1
=
[
NSString
stringWithFormat
:
@"%@%@"
,
kRedStarURL
,
kRankingListURL
];
HttpClient
*
httpCilent1
=
[[
HttpClient
alloc
]
initWithUrl
:
url1
];
NSDictionary
*
parameters1
=
@{
@"
queryOrders"
:
@[@{
@"direction"
:
@"asc"
}]
,
NSDictionary
*
parameters1
=
@{
@"praiseUuid"
:
@""
,
@"
statisMode"
:
@
(
0
)
,
@"pageNumber"
:
@
(
0
),
@"pageSize"
:
@
(
3
)
};
__block
HomeViewController
*
weakSelf
=
self
;
[
httpCilent1
getRankingListWithParameters
:
parameters1
completion
:
^
(
id
response
,
NSError
*
error
)
{
NSLog
(
@"刷新!! = 口碑排名response = %@"
,
response
);
if
([(
NSArray
*
)
response
[
@"data"
]
count
]
==
0
)
{
return
;
}
NSDictionary
*
dataDict
=
response
[
@"data"
];
NSArray
*
dataArray
=
dataDict
[
@"records"
];
...
...
@@ -283,15 +281,15 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
kRedStarURL
,
kRankingListURL
];
HttpClient
*
httpCilent
=
[[
HttpClient
alloc
]
initWithUrl
:
url
];
NSDictionary
*
parameters
=
@{
@"praiseUuid"
:
@""
,
@"statisMode"
:
@
(
0
)
@"statisMode"
:
@
(
0
),
@"pageNumber"
:
@
(
0
),
@"pageSize"
:
@
(
3
)
};
[
httpCilent
getRankingListWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
NSLog
(
@"口碑排名response = %@"
,
response
);
if
([(
NSArray
*
)
response
[
@"data"
]
count
]
==
0
)
{
return
;
}
NSArray
*
dataArray
=
response
[
@"data"
];
NSDictionary
*
dataDict
=
response
[
@"data"
];
NSArray
*
dataArray
=
dataDict
[
@"records"
];
NSMutableArray
*
tgArray
=
[
NSMutableArray
array
];
...
...
@@ -595,7 +593,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
}
RankListModel
*
rankList
=
_allRankListArray
[
indexPath
.
row
-
1
];
cell
.
rankList
=
rankList
;
cell
.
gradeImageView
.
image
=
[
UIImage
imageNamed
:[
NSString
stringWithFormat
:
@"medal_0%d"
,
rankList
.
index
]];
cell
.
gradeImageView
.
image
=
[
UIImage
imageNamed
:[
NSString
stringWithFormat
:
@"medal_0%d"
,
rankList
.
index
+
1
]];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
return
cell
;
}
...
...
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