修复了大家都在搜显示不加入本地搜索记录

This commit is contained in:
fengshuo
2022-12-24 17:53:56 +08:00
parent 854541b321
commit 35d921da8c
4 changed files with 5 additions and 9 deletions

View File

@@ -176,7 +176,6 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
/// ///
- (void)xPRoomSearchRecordViewControllerEveryoneSearch:(NSString *)word sid:(nonnull NSString *)sid { - (void)xPRoomSearchRecordViewControllerEveryoneSearch:(NSString *)word sid:(nonnull NSString *)sid {
self.searchView.searchTextField.text = word; self.searchView.searchTextField.text = word;
[self.recordVc storeSearchRecord:word];
[self.presenter getEveryOneSearchRoomList:sid]; [self.presenter getEveryOneSearchRoomList:sid];
} }

View File

@@ -120,13 +120,13 @@
make.height.mas_equalTo(self.headWearImageView.mas_width); make.height.mas_equalTo(self.headWearImageView.mas_width);
}]; }];
[self.nobleImageView mas_makeConstraints:^(MASConstraintMaker *make) { [self.nobleImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(self.avatarImageView.mas_right).offset(9); make.left.mas_equalTo(self.headWearImageView.mas_right).offset(9);
make.top.mas_equalTo(self.avatarImageView).mas_offset(14); make.top.mas_equalTo(self.avatarImageView).mas_offset(14);
make.width.height.mas_equalTo(20); make.width.height.mas_equalTo(20);
}]; }];
[self.nameStackView mas_makeConstraints:^(MASConstraintMaker *make) { [self.nameStackView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.mas_equalTo(self.nobleImageView); make.centerY.mas_equalTo(self.nobleImageView);
make.left.mas_equalTo(self.nobleImageView.mas_right).mas_offset(5); make.left.mas_equalTo(self.nobleImageView.mas_right).mas_offset(10);
make.height.mas_equalTo(16); make.height.mas_equalTo(16);
make.right.mas_equalTo(self.skillCardButton.mas_left).mas_offset(-2); make.right.mas_equalTo(self.skillCardButton.mas_left).mas_offset(-2);
}]; }];

View File

@@ -102,9 +102,6 @@
} }
- (void)ruleButtonAction:(UIButton *)sender { - (void)ruleButtonAction:(UIButton *)sender {
// XPAnchorPKRuleView *view = [[XPAnchorPKRuleView alloc] init];
// [TTPopup popupView:view style:TTPopupStyleAlert];
[Api requestAnchorPkRule:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) { [Api requestAnchorPkRule:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
if (code == 200) { if (code == 200) {
XPAnchorRandomPKRuleView *view = [[XPAnchorRandomPKRuleView alloc] init]; XPAnchorRandomPKRuleView *view = [[XPAnchorRandomPKRuleView alloc] init];

View File

@@ -26,7 +26,7 @@
///View ///View
#import "AnchorPKMicroView.h" #import "AnchorPKMicroView.h"
#import "XPUserCardViewController.h" #import "XPUserCardViewController.h"
#import "XPAnchorPKRuleView.h" #import "XPAnchorRandomPKRuleView.h"
// 58 + 5 // 58 + 5
#define ownerWidth (85 + 5) #define ownerWidth (85 + 5)
@@ -283,7 +283,7 @@
- (void)onRuleButtonClick:(UIButton *)button { - (void)onRuleButtonClick:(UIButton *)button {
[Api requestAnchorPkRule:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) { [Api requestAnchorPkRule:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
if (code == 200) { if (code == 200) {
XPAnchorPKRuleView *view = [[XPAnchorPKRuleView alloc] init]; XPAnchorRandomPKRuleView *view = [[XPAnchorRandomPKRuleView alloc] init];
view.ruleString = data.data; view.ruleString = data.data;
[TTPopup popupView:view style:TTPopupStyleAlert]; [TTPopup popupView:view style:TTPopupStyleAlert];
} }