Commit 31f0b0d4 authored by admin's avatar admin

修复bug

parent b8a4f019
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
#define Url_h #define Url_h
// url // url
//#define kRedStarURL @"http://218.244.151.129:7580/" #define kRedStarURL @"http://218.244.151.129:7580/"
#define kRedStarURL @"http://172.16.3.12:7580/" // #define kRedStarURL @"http://172.16.3.12:7580/"
// 检查更新 // 检查更新
......
...@@ -56,6 +56,8 @@ ...@@ -56,6 +56,8 @@
@property (nonatomic, assign) NSInteger pickRow; @property (nonatomic, assign) NSInteger pickRow;
@property (nonatomic, strong) NSMutableArray *uuidArray; @property (nonatomic, strong) NSMutableArray *uuidArray;
@property (nonatomic, assign) NSInteger statisMode;
@end @end
@implementation RankingListViewController @implementation RankingListViewController
...@@ -195,11 +197,12 @@ ...@@ -195,11 +197,12 @@
NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kRankingListURL]; NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kRankingListURL];
NSInteger statisMode = _selectButton.tag - 323228; _statisMode = _selectButton.tag - 323228;
HttpClient *httpCilent = [[HttpClient alloc] initWithUrl:url]; HttpClient *httpCilent = [[HttpClient alloc] initWithUrl:url];
NSDictionary *dict = _titleArray[_pickRow]; NSDictionary *dict = _titleArray[_pickRow];
NSDictionary *parameters = @{@"praiseUuid":dict[@"uuid"], NSDictionary *parameters = @{@"praiseUuid":dict[@"uuid"],
@"statisMode":@(statisMode), @"statisMode":@(_statisMode),
@"orgUuids":_uuidArray @"orgUuids":_uuidArray
}; };
NSLog(@"parrrrrters = %@", parameters); NSLog(@"parrrrrters = %@", parameters);
...@@ -460,10 +463,15 @@ ...@@ -460,10 +463,15 @@
return nil; return nil;
} else { } else {
RankListModel *rankList = _rankData[section - 1]; RankListModel *rankList = _rankData[section - 1];
NSLog(@"indeB === %d", rankList.index);
RankListHeaderView *headView = [RankListHeaderView headViewWithTableView:tableView section:section - 1 index:rankList.index]; RankListHeaderView *headView = [RankListHeaderView headViewWithTableView:tableView section:section - 1 index:rankList.index];
headView.delegate = self; headView.delegate = self;
[headView.pushButton addTarget:self action:@selector(pushclick:) forControlEvents:UIControlEventTouchUpInside];
if (_statisMode == 1) {
[headView.pushButton removeTarget:self action:@selector(pushclick:) forControlEvents:UIControlEventTouchUpInside];
} else {
[headView.pushButton addTarget:self action:@selector(pushclick:) forControlEvents:UIControlEventTouchUpInside];
}
headView.rankListModel = rankList; headView.rankListModel = rankList;
return headView; return headView;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment