2
This commit is contained in:
@@ -44,10 +44,10 @@
|
||||
- (void)tapTrash {
|
||||
// 弹出确认框:是否删除所有历史记录
|
||||
__weak typeof(self) weakSelf = self;
|
||||
[KBAlert confirmTitle:@"清空历史"
|
||||
message:@"是否删除所有历史记录?"
|
||||
ok:@"确定"
|
||||
cancel:@"取消"
|
||||
[KBAlert confirmTitle:KBLocalized(@"Clear history")
|
||||
message:KBLocalized(@"Delete all history?")
|
||||
ok:KBLocalized(@"Confirm")
|
||||
cancel:KBLocalized(@"Cancel")
|
||||
okColor:weakSelf.confirmColor
|
||||
cancelColor:weakSelf.cancelColor
|
||||
completion:^(BOOL ok) {
|
||||
|
||||
@@ -83,7 +83,12 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
|
||||
}];
|
||||
|
||||
// 初始化测试数据
|
||||
self.historyWords = [@[@"果冻橙", @"芒果", @"有机水果卷心菜", @"水果萝卜", @"熟冻帝王蟹", @"赣南脐橙"] mutableCopy];
|
||||
self.historyWords = [@[KBLocalized(@"果冻橙"),
|
||||
KBLocalized(@"芒果"),
|
||||
KBLocalized(@"有机水果卷心菜"),
|
||||
KBLocalized(@"水果萝卜"),
|
||||
KBLocalized(@"熟冻帝王蟹"),
|
||||
KBLocalized(@"赣南脐橙")] mutableCopy];
|
||||
self.recommendItems = @[
|
||||
@{@"title":@"Dopamine", @"price":@"20"},
|
||||
@{@"title":@"Dopamine", @"price":@"20"},
|
||||
|
||||
Reference in New Issue
Block a user