Commit 540d7b37 authored by admin's avatar admin

修改部分标题

parent a0998fa6
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
// url 测试环境 // url 测试环境
// #define kRedStarURL @"http://218.244.151.129:7580/" // #define kRedStarURL @"http://218.244.151.129:7580/"
//#define kRedStarURL @"http://219.235.234.225:7580/" #define kRedStarURL @"http://219.235.234.225:7580/"
// 最新正式环境 // 最新正式环境
#define kRedStarURL @"http://219.235.234.212:7580/" // #define kRedStarURL @"http://219.235.234.212:7580/"
// 检查更新 // 检查更新
#define kCheckUpdateURL @"redstar-server/rest/ipapk?type=ipa" #define kCheckUpdateURL @"redstar-server/rest/ipapk?type=ipa"
......
...@@ -50,7 +50,15 @@ ...@@ -50,7 +50,15 @@
UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 30)]; UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 30)];
[customLab setTextColor:[UIColor whiteColor]]; [customLab setTextColor:[UIColor whiteColor]];
[customLab setText:@"新增口碑"];
if ([self.category isEqualToString:@"store"]) {
[customLab setText:@"新增口碑随手拍"];
} else if ([self.category isEqualToString:@"casus"]) {
[customLab setText:@"新增口碑报道"];
} else {
[customLab setText:@"新增口碑巡店"];
}
customLab.font = [UIFont boldSystemFontOfSize:19]; customLab.font = [UIFont boldSystemFontOfSize:19];
self.navigationItem.titleView = customLab; self.navigationItem.titleView = customLab;
...@@ -385,12 +393,22 @@ ...@@ -385,12 +393,22 @@
url = [url stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; url = [url stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
HttpClient *http1 = [[HttpClient alloc] initWithUrl:url]; HttpClient *http1 = [[HttpClient alloc] initWithUrl:url];
[http1 submitPicturePraiseWithCompletion:^(id response, NSError *error) { [http1 submitPicturePraiseWithCompletion:^(id response, NSError *error) {
NSString *message = @"";
if ([self.category isEqualToString:@"store"]) {
message = @"新增口碑随手拍";
} else if ([self.category isEqualToString:@"casus"]) {
message = @"新增口碑报道";
} else {
message = @"新增口碑巡店";
}
if ([response[@"success"] boolValue]) { if ([response[@"success"] boolValue]) {
UIAlertView *alertt = [[UIAlertView alloc] initWithTitle:@"提示" message:@"新增口碑成功!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil]; UIAlertView *alertt = [[UIAlertView alloc] initWithTitle:@"提示" message:[NSString stringWithFormat:@"%@成功!",message] delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
alertt.tag = 893323; alertt.tag = 893323;
[alertt show]; [alertt show];
} else { } else {
UIAlertView *alertt = [[UIAlertView alloc] initWithTitle:@"警告" message:@"新增口碑失败!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil]; UIAlertView *alertt = [[UIAlertView alloc] initWithTitle:@"警告" message:[NSString stringWithFormat:@"%@失败!",message] delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
[alertt show]; [alertt show];
} }
[MBProgressHUD hideHUDForView:self.view animated:YES]; [MBProgressHUD hideHUDForView:self.view animated:YES];
......
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