|
|
@@ -81,27 +81,26 @@
|
|
|
|
|
|
- (void)configData:(NSDictionary *)data {
|
|
|
|
|
|
- NSLog(@"data:::::::%@",data);
|
|
|
|
|
|
id num = [data valueForKey:@"groupNumber"];
|
|
|
id names = [data valueForKeyPath:@"myGroupList.hpResumeAPI.realName"];
|
|
|
if ([names isKindOfClass:[NSArray class]] && [num isKindOfClass:[NSNumber class]])
|
|
|
{
|
|
|
|
|
|
- NSString *name = [[NSString alloc] initWithString:[names firstObject]];
|
|
|
+// NSString *name = [[NSString alloc] initWithString:[names firstObject]];
|
|
|
|
|
|
NSString *string;
|
|
|
|
|
|
if (self.type == HJJoinApplyContentViewTypeSuccess)
|
|
|
{
|
|
|
- string = [NSString stringWithFormat:@"共有%@人加入了%@的拼工,获得拼工奖励金为",num,name];
|
|
|
+ string = [NSString stringWithFormat:@"共有%@人加入了拼工,额外奖励",num];//name
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- string = [NSString stringWithFormat:@"共有%@人加入了%@的拼工,获得基础奖励:",num,name];
|
|
|
+ string = [NSString stringWithFormat:@"共有%@人加入了拼工,获得基础奖励:",num];//name
|
|
|
}
|
|
|
|
|
|
- NSMutableString *cash = [[NSMutableString alloc] initWithString:@"0元"];
|
|
|
+ NSMutableString *cash = [[NSMutableString alloc] initWithString:@""];
|
|
|
//基础返现根据性别判断,1是男,2是女
|
|
|
HJResumeModel *resume = [HJResumeModel resume];
|
|
|
if (resume.gender == 1)
|
|
|
@@ -130,7 +129,11 @@
|
|
|
id fiveGroupCashback = [data valueForKeyPath:@"position.fiveGroupCashback"];
|
|
|
if (![fiveGroupCashback isEqual:[NSNull null]])
|
|
|
{
|
|
|
- [cash appendString:[NSString stringWithFormat:@"+%@元", fiveGroupCashback]];
|
|
|
+ if (self.type == HJJoinApplyContentViewTypeSuccess)
|
|
|
+ {
|
|
|
+ cash = [[NSMutableString alloc] initWithString:[NSString stringWithFormat:@"%@元", fiveGroupCashback]];
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else if ([num integerValue] > 2)
|
|
|
@@ -139,7 +142,11 @@
|
|
|
id threeGroupCashback = [data valueForKeyPath:@"position.threeGroupCashback"];
|
|
|
if (![threeGroupCashback isEqual:[NSNull null]])
|
|
|
{
|
|
|
- [cash appendString:[NSString stringWithFormat:@"+%@元", threeGroupCashback]];
|
|
|
+ if (self.type == HJJoinApplyContentViewTypeSuccess)
|
|
|
+ {
|
|
|
+ cash = [[NSMutableString alloc] initWithString:[NSString stringWithFormat:@"%@元", threeGroupCashback]];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|