个人资料动态
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#import "UserPhoto.h"
|
||||
#import "UserGiftWallInfoModel.h"
|
||||
#import "XPEnum.h"
|
||||
#import "MonentsInfoModel.h"
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -129,6 +130,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic,assign) BOOL fromSayHelloChannel;
|
||||
///是否是封号用户
|
||||
@property (nonatomic,assign) BOOL banAccount;
|
||||
///用户的动态
|
||||
@property (nonatomic,strong) NSArray<MonentsInfoModel *> *dynamicInfo;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
@@ -13,7 +13,8 @@
|
||||
return @{
|
||||
@"privatePhoto":UserPhoto.class,
|
||||
@"userGiftWall":UserGiftWallInfoModel.class,
|
||||
@"userLuckyBagGiftWall":UserGiftWallInfoModel.class
|
||||
@"userLuckyBagGiftWall":UserGiftWallInfoModel.class,
|
||||
@"dynamicInfo":MonentsInfoModel.class
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -40,6 +40,7 @@
|
||||
#import "SessionViewController.h"
|
||||
#import "XPRoomViewController.h"
|
||||
#import "XPMineUserDataViewController.h"
|
||||
#import "XPMonentsMineViewController.h"
|
||||
|
||||
@interface XPMineUserInfoViewController ()<XPMineCustomNavViewDelegate, XPMineUserInfoProtocol, XPMineUserInfoHeaderViewDelegate, JXCategoryViewDelegate,JXPagerViewDelegate, XPMineUserDataViewControllerDelegate, JXPagerMainTableViewGestureDelegate>
|
||||
@property (nonatomic, strong) JXCategoryTitleView *titleView;
|
||||
@@ -60,6 +61,8 @@
|
||||
@property (nonatomic,strong) UIButton *attentionButton;
|
||||
///资料
|
||||
@property (nonatomic,strong) XPMineUserDataViewController *userDataVC;
|
||||
///动态
|
||||
@property (nonatomic,strong) XPMonentsMineViewController *monentsVC;
|
||||
///声音秀
|
||||
@property (nonatomic,strong) XPMineUserInfoVoiceCardView *voiceView;
|
||||
@end
|
||||
@@ -234,6 +237,8 @@
|
||||
UIViewController *viewController;
|
||||
if (index == 0) {
|
||||
return self.userDataVC;
|
||||
} else {
|
||||
return self.monentsVC;
|
||||
}
|
||||
return (id <JXPagerViewListViewDelegate>)viewController;
|
||||
}
|
||||
@@ -295,7 +300,7 @@
|
||||
|
||||
- (void)ongetDetailInfoSuccess:(UserInfoModel *)userInfo {
|
||||
self.userDataVC.userInfo = userInfo;
|
||||
|
||||
self.monentsVC.dynamicInfo = userInfo.dynamicInfo;
|
||||
self.headView.roomUid = userInfo.roomUid;
|
||||
}
|
||||
|
||||
@@ -444,7 +449,7 @@
|
||||
|
||||
- (NSArray<NSString *> *)titles {
|
||||
if (!_titles) {
|
||||
_titles = @[@"资料"];
|
||||
_titles = @[@"资料", @"动态"];
|
||||
}
|
||||
return _titles;
|
||||
}
|
||||
@@ -464,5 +469,12 @@
|
||||
return _voiceView;
|
||||
}
|
||||
|
||||
- (XPMonentsMineViewController *)monentsVC {
|
||||
if (!_monentsVC) {
|
||||
_monentsVC = [[XPMonentsMineViewController alloc] init];
|
||||
}
|
||||
return _monentsVC;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
@@ -6,10 +6,10 @@
|
||||
//
|
||||
|
||||
#import "MvpViewController.h"
|
||||
|
||||
#import <JXPagingView/JXPagerView.h>
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class MonentsInfoModel;
|
||||
@interface XPMonentsMineViewController : MvpViewController
|
||||
@interface XPMonentsMineViewController : MvpViewController<JXPagerViewListViewDelegate>
|
||||
@property (nonatomic,strong) NSArray<MonentsInfoModel *>*dynamicInfo;
|
||||
@property (nonatomic, copy) void(^scrollCallback)(UIScrollView *scrollView);
|
||||
@end
|
||||
|
Reference in New Issue
Block a user