相亲模式下用户卡片的样式

This commit is contained in:
fengshuo
2022-01-06 15:35:49 +08:00
parent a4ee6dad3c
commit 54bae63fe7
17 changed files with 441 additions and 82 deletions

View File

@@ -506,18 +506,15 @@
[[self.hostDelegate.getMicroQueue allValues] enumerateObjectsUsingBlock:^(MicroQueueModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if (uid == obj.userInfo.uid) {
model.position = [NSString stringWithFormat:@"%d", obj.microState.position];
model.posState = (UserCardMicroPosStateType)obj.microState.posState;
model.micState = (UserCardMicroMicStateType)obj.microState.micState;
model.posState = obj.microState.posState;
model.micState = obj.microState.micState;
*stop = YES;
}
}];
model.uid = targetUid;
model.roomId = [NSString stringWithFormat:@"%ld", roomInfo.roomId];
model.leaveMode = roomInfo.leaveMode;
model.showGiftValue = roomInfo.showGiftValue;
model.avatar = roomInfo.avatar;
model.roomUid = [NSString stringWithFormat:@"%ld", roomInfo.uid];
model.nick = self.hostDelegate.getUserInfo.nick;
model.uid = targetUid;
model.micQueue = self.hostDelegate.getMicroQueue;
model.roomInfo = roomInfo;
model.delegate = self.hostDelegate;
XPUserCardViewController * userCardVC = [[XPUserCardViewController alloc] initWithUser:model];
[self.hostDelegate.getCurrentNav presentViewController:userCardVC animated:YES completion:nil];