添加个人主页
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <SDWebImage/SDWebImage.h>
|
||||
#import <LSTPopView/LSTPopView.h>
|
||||
|
||||
#import "AIPersonInfoVC.h"
|
||||
/// 聊天会话被重置的通知
|
||||
static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidResetNotification";
|
||||
|
||||
@@ -549,6 +549,11 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
|
||||
_avatarImageView.layer.borderWidth = 3;
|
||||
_avatarImageView.layer.borderColor = [UIColor whiteColor].CGColor;
|
||||
_avatarImageView.clipsToBounds = YES;
|
||||
_avatarImageView.userInteractionEnabled = YES;
|
||||
|
||||
// 添加点击手势
|
||||
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(avatarTapped)];
|
||||
[_avatarImageView addGestureRecognizer:tap];
|
||||
}
|
||||
return _avatarImageView;
|
||||
}
|
||||
@@ -628,6 +633,19 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
|
||||
|
||||
#pragma mark - Button Actions
|
||||
|
||||
- (void)avatarTapped {
|
||||
NSLog(@"[KBPersonaChatCell] 头像点击,跳转到人设详情页");
|
||||
|
||||
if (self.persona.personaId <= 0) {
|
||||
NSLog(@"[KBPersonaChatCell] personaId 无效,取消跳转");
|
||||
return;
|
||||
}
|
||||
|
||||
AIPersonInfoVC *vc = [[AIPersonInfoVC alloc] init];
|
||||
vc.companionId = self.persona.personaId;
|
||||
[KB_CURRENT_NAV pushViewController:vc animated:YES];
|
||||
}
|
||||
|
||||
- (void)commentButtonTapped:(KBImagePositionButton *)sender {
|
||||
NSLog(@"[KBPersonaChatCell] 评论按钮点击");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user