Commit 31f0b0d4 authored by admin's avatar admin

修复bug

parent b8a4f019
......@@ -10,11 +10,11 @@
#define Url_h
// 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 @@
@property (nonatomic, assign) NSInteger pickRow;
@property (nonatomic, strong) NSMutableArray *uuidArray;
@property (nonatomic, assign) NSInteger statisMode;
@end
@implementation RankingListViewController
......@@ -195,11 +197,12 @@
NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kRankingListURL];
NSInteger statisMode = _selectButton.tag - 323228;
_statisMode = _selectButton.tag - 323228;
HttpClient *httpCilent = [[HttpClient alloc] initWithUrl:url];
NSDictionary *dict = _titleArray[_pickRow];
NSDictionary *parameters = @{@"praiseUuid":dict[@"uuid"],
@"statisMode":@(statisMode),
@"statisMode":@(_statisMode),
@"orgUuids":_uuidArray
};
NSLog(@"parrrrrters = %@", parameters);
......@@ -460,10 +463,15 @@
return nil;
} else {
RankListModel *rankList = _rankData[section - 1];
NSLog(@"indeB === %d", rankList.index);
RankListHeaderView *headView = [RankListHeaderView headViewWithTableView:tableView section:section - 1 index:rankList.index];
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;
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