更新 Api+Medals.m 中的请求路径为 "medal/square",修改 MedalsViewController.m 中的导航栏标题以支持勋章广场,新增本地化字符串 "20.20.61_text_10" 以表示勋章广场,保持代码结构一致性。
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
}
|
||||
|
||||
+ (void)medalSquare:(HttpRequestHelperCompletion)completion pageNo:(NSNumber *)pageNo pageSize:(NSNumber *)pageSize type:(NSNumber *)type {
|
||||
[self makeRequest:@"medal/useMedal"
|
||||
[self makeRequest:@"medal/square"
|
||||
method:HttpRequestHelperMethodGET
|
||||
completion:completion,
|
||||
__FUNCTION__, pageNo, pageSize, type, nil];
|
||||
|
@@ -92,7 +92,7 @@ typedef enum : NSInteger {
|
||||
|
||||
- (void)setupNavigationBar {
|
||||
[self setupCustomNavigationBar:^{}
|
||||
title:YMLocalizedString(@"20.20.61_text_1")
|
||||
title:self.isForMyMedals ? YMLocalizedString(@"20.20.61_text_1") : YMLocalizedString(@"20.20.61_text_10")
|
||||
titleColor:[UIColor whiteColor]];
|
||||
[self setupCustonNavigationRightButtons:@[
|
||||
[self medalsRankButton],
|
||||
@@ -332,7 +332,8 @@ typedef enum : NSInteger {
|
||||
|
||||
#pragma mark - Button actions
|
||||
- (void)didTapSquareButton:(UIButton *)sender {
|
||||
|
||||
MedalsViewController *vc = [[MedalsViewController alloc] initForMedalsSquare];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
- (void)didTapRankButton:(UIButton *)sender {
|
||||
|
@@ -3666,3 +3666,4 @@
|
||||
"20.20.61_text_7" = "You have not received any medals Go to the medal square and check it out!";
|
||||
"20.20.61_text_8" = "Expiration time:%@";
|
||||
"20.20.61_text_9" = "Forever";
|
||||
"20.20.61_text_10" = "Medals Square";
|
||||
|
Reference in New Issue
Block a user