1
This commit is contained in:
@@ -593,7 +593,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
|
|||||||
[btn setTitle:key.title forState:UIControlStateNormal];
|
[btn setTitle:key.title forState:UIControlStateNormal];
|
||||||
// 在设置完标题后,按当前皮肤应用图标与文字显隐
|
// 在设置完标题后,按当前皮肤应用图标与文字显隐
|
||||||
[btn applyThemeForCurrentKey];
|
[btn applyThemeForCurrentKey];
|
||||||
[btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchUpInside];
|
[btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchDown];
|
||||||
[row addSubview:btn];
|
[row addSubview:btn];
|
||||||
|
|
||||||
if (key.type == KBKeyTypeBackspace) {
|
if (key.type == KBKeyTypeBackspace) {
|
||||||
@@ -919,7 +919,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[btn applyThemeForCurrentKey];
|
[btn applyThemeForCurrentKey];
|
||||||
[btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchUpInside];
|
[btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchDown];
|
||||||
|
|
||||||
if (key.type == KBKeyTypeBackspace) {
|
if (key.type == KBKeyTypeBackspace) {
|
||||||
[self.backspaceHandler bindDeleteButton:btn showClearLabel:YES];
|
[self.backspaceHandler bindDeleteButton:btn showClearLabel:YES];
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ static NSString * const kKBSvipBenefitHeaderId = @"kKBSvipBenefitHeaderId";
|
|||||||
// 过滤 level=2 的 SVIP 数据
|
// 过滤 level=2 的 SVIP 数据
|
||||||
NSMutableArray<KBPayProductModel *> *svipProducts = [NSMutableArray array];
|
NSMutableArray<KBPayProductModel *> *svipProducts = [NSMutableArray array];
|
||||||
for (KBPayProductModel *product in products) {
|
for (KBPayProductModel *product in products) {
|
||||||
if (product.level == 1) {
|
if (product.level == 2) {
|
||||||
[svipProducts addObject:product];
|
[svipProducts addObject:product];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,7 +135,13 @@ static NSString * const kKBVipReviewListCellId = @"kKBVipReviewListCellId";
|
|||||||
if (tip.length) { [KBHUD showInfo:tip]; }
|
if (tip.length) { [KBHUD showInfo:tip]; }
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self.plans = products ?: @[];
|
NSMutableArray<KBPayProductModel *> *vipProducts = [NSMutableArray array];
|
||||||
|
for (KBPayProductModel *product in products) {
|
||||||
|
if (product.level == 1) {
|
||||||
|
[vipProducts addObject:product];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
self.plans = vipProducts ?: @[];
|
||||||
self.selectedIndex = self.plans.count > 0 ? 0 : NSNotFound;
|
self.selectedIndex = self.plans.count > 0 ? 0 : NSNotFound;
|
||||||
[self.collectionView reloadData];
|
[self.collectionView reloadData];
|
||||||
[self prepareStoreKitWithPlans:self.plans];
|
[self prepareStoreKitWithPlans:self.plans];
|
||||||
|
|||||||
Reference in New Issue
Block a user