|
@@ -52,6 +52,7 @@
|
|
|
#import "HomeMingShiVC.h"
|
|
|
#import "HomeUserVC.h"
|
|
|
#import "HomeProblemVC.h"
|
|
|
+#import "WorkFlowDetailsController.h"
|
|
|
|
|
|
@interface IndexViewController () <SLBannerViewDelegate,AddChannelControllerDelegate,EMChatManagerDelegate, EMGroupManagerDelegate, EMConversationsDelegate>
|
|
|
@property (nonatomic, strong) UILabel *titleLabel;
|
|
@@ -102,7 +103,7 @@
|
|
|
[self.view addSubview:self.titleLabel];
|
|
|
[self.view addSubview:self.searchView];
|
|
|
[self.searchView setFrame:CGRectMake(0, 0, SCREEN_WIDTH, 52)];
|
|
|
-
|
|
|
+
|
|
|
self.bannerView = [[SLBannerView alloc] initWithFrame:CGRectMake(15, 0, SCREEN_WIDTH - 30, 125)];
|
|
|
self.bannerView.delegate = self;
|
|
|
self.bannerView.durTimeInterval = 0.2;
|
|
@@ -110,8 +111,8 @@
|
|
|
self.bannerBgV = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 132)];
|
|
|
self.bannerBgV.backgroundColor = [UIColor clearColor];
|
|
|
[self.bannerBgV addSubview:self.bannerView];
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.top.equalTo(self.statusBar.mas_bottom);
|
|
|
make.left.right.equalTo(self.view);
|
|
@@ -122,9 +123,9 @@
|
|
|
make.left.right.equalTo(self.view);
|
|
|
make.height.mas_offset(52);
|
|
|
}];
|
|
|
-
|
|
|
+
|
|
|
[self getdata];
|
|
|
-
|
|
|
+
|
|
|
WEAKSELF
|
|
|
self.searchView.buttonBlock = ^(){
|
|
|
HomeSearchController *homeSearch = [[HomeSearchController alloc] init];
|
|
@@ -136,22 +137,22 @@
|
|
|
vc.hidesBottomBarWhenPushed = YES;
|
|
|
[weakSelf.navigationController pushViewController:vc animated:YES];
|
|
|
};
|
|
|
-// self.channelScroll.ClickSelectChannelBlock = ^(NSInteger channelId, NSString * _Nonnull StyleCss) {
|
|
|
-// weakSelf.style = StyleCss;
|
|
|
-// weakSelf.currentChannel = channelId;
|
|
|
-// for (ChannelModel * model in weakSelf.myChannel) {
|
|
|
-// model.IsSelect = NO;
|
|
|
-// }
|
|
|
-// for (ChannelModel * model in weakSelf.myChannel) {
|
|
|
-// if (model.ArticleGroupId == channelId) {
|
|
|
-// model.IsSelect = YES;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
-// [weakSelf collectReload];
|
|
|
-// });
|
|
|
-// };
|
|
|
-
|
|
|
+ // self.channelScroll.ClickSelectChannelBlock = ^(NSInteger channelId, NSString * _Nonnull StyleCss) {
|
|
|
+ // weakSelf.style = StyleCss;
|
|
|
+ // weakSelf.currentChannel = channelId;
|
|
|
+ // for (ChannelModel * model in weakSelf.myChannel) {
|
|
|
+ // model.IsSelect = NO;
|
|
|
+ // }
|
|
|
+ // for (ChannelModel * model in weakSelf.myChannel) {
|
|
|
+ // if (model.ArticleGroupId == channelId) {
|
|
|
+ // model.IsSelect = YES;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ // [weakSelf collectReload];
|
|
|
+ // });
|
|
|
+ // };
|
|
|
+
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tableViewScrollTop) name:HOMESCROLLVIEWTOTOP object:nil];
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(shareReturnAction:) name:SHARERETURNSUCCESS object:nil];
|
|
|
}
|
|
@@ -219,13 +220,13 @@
|
|
|
vc.style = model.StyleCss;
|
|
|
[vcArr addObject:vc];
|
|
|
}
|
|
|
-// if ([model.StyleCss isEqualToString:@"DayProblem"]) {///每日技能
|
|
|
-// [data addObject:model.ArticleGroupName];
|
|
|
-// HomeProblemVC * vc = [[HomeProblemVC alloc] init];
|
|
|
-// vc.height = height;
|
|
|
-// vc.style = model.StyleCss;
|
|
|
-// [vcArr addObject:vc];
|
|
|
-// }
|
|
|
+ // if ([model.StyleCss isEqualToString:@"DayProblem"]) {///每日技能
|
|
|
+ // [data addObject:model.ArticleGroupName];
|
|
|
+ // HomeProblemVC * vc = [[HomeProblemVC alloc] init];
|
|
|
+ // vc.height = height;
|
|
|
+ // vc.style = model.StyleCss;
|
|
|
+ // [vcArr addObject:vc];
|
|
|
+ // }
|
|
|
}
|
|
|
WMZPageParam *param = PageParam()
|
|
|
.wTitleArrSet(data)
|
|
@@ -353,7 +354,7 @@
|
|
|
}
|
|
|
- (void)messagesDidReceive:(NSArray *)aMessages
|
|
|
{
|
|
|
- [self performSelector:@selector(getUnreadCount) withObject:nil afterDelay:0.8];
|
|
|
+ [self performSelector:@selector(getUnreadCount) withObject:nil afterDelay:0.8];
|
|
|
}
|
|
|
|
|
|
- (void)tableViewScrollTop
|
|
@@ -446,7 +447,7 @@
|
|
|
HomeArticleModel *model = [HomeArticleModel modelWithDictionary:dic];
|
|
|
weakSelf.totalPage = model.Count;
|
|
|
[weakSelf.dataSource addObjectsFromArray:model.Items];
|
|
|
-
|
|
|
+
|
|
|
} failure:^(NSError * _Nonnull error) {
|
|
|
SHOWERROR([ZYCTool handerResultData:error])
|
|
|
}];
|
|
@@ -477,7 +478,7 @@
|
|
|
- (void)cellDidSelcet:(NSInteger )articleId{
|
|
|
WEAKSELF
|
|
|
UIButton *closeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
|
|
-
|
|
|
+
|
|
|
[closeBtn addTarget:self action:@selector(closeBtn_Click) forControlEvents:UIControlEventTouchUpInside];
|
|
|
[closeBtn setImage:IMG(@"guanbi") forState:UIControlStateNormal];
|
|
|
UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"对此内容进行操作" message:@"" preferredStyle:UIAlertControllerStyleAlert];
|
|
@@ -489,7 +490,7 @@
|
|
|
make.size.mas_equalTo(CGSizeMake(22, 22));
|
|
|
}];
|
|
|
UIAlertAction *actionOK = [UIAlertAction actionWithTitle:@"屏蔽TA" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
-
|
|
|
+
|
|
|
STRONGSELF
|
|
|
[strongSelf homeNewsHander:articleId withTypeId:1];
|
|
|
|
|
@@ -508,9 +509,9 @@
|
|
|
- (void)homeNewsHander:(NSInteger )articleId withTypeId:(NSInteger)blacklistType{
|
|
|
WS(weakSelf);
|
|
|
[[HttpManager sharedHttpManager] POSTUrl:[NSString stringWithFormat:@"%@/%@",BaseUrl,Article_Hander_Post] parameters:@{@"ArticleId":@(articleId),@"BlacklistType":@(blacklistType)} responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
-// [weakSelf headRefresh];
|
|
|
+ // [weakSelf headRefresh];
|
|
|
} failure:^(NSError * _Nonnull error) {
|
|
|
-
|
|
|
+
|
|
|
}];
|
|
|
}
|
|
|
|
|
@@ -550,12 +551,10 @@
|
|
|
|
|
|
- (void)getArticleDetail:(NSInteger)index{
|
|
|
HomeTopImageModel *model = self.bannerModelArray[index];
|
|
|
- NSLog(@"点击轮播图%ld",(long)model.ArticleId);
|
|
|
+ NSLog(@"点击轮播图%ld",(long)model.ArticleId);
|
|
|
WEAKSELF
|
|
|
[[HttpManager sharedHttpManager] GETWithUrl:[NSString stringWithFormat:@"%@%ld",Article_Detail_Get,(long)model.ArticleId] parameters:@{} success:^(id _Nonnull responseObject) {
|
|
|
Item *model = [[Item alloc]initWithDictionary:responseObject error:nil];
|
|
|
- // HomeDetailController *homeDetail = [[HomeDetailController alloc] init];
|
|
|
- // [homeDetail loadCurrentModel:itemModel];
|
|
|
MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
vc.type = CollectModel_Aritle;
|
|
|
vc.Id = model.Id;
|
|
@@ -581,7 +580,7 @@
|
|
|
if (!_searchView) {
|
|
|
_searchView = [[SurfaceSearchView alloc] init];
|
|
|
[_searchView setBgViewColor:[UIColor clearColor]];
|
|
|
-// [_searchView setPlaceHolderText:@"输入关键字搜索"];
|
|
|
+ // [_searchView setPlaceHolderText:@"输入关键字搜索"];
|
|
|
[_searchView setMainType];
|
|
|
}
|
|
|
return _searchView;
|
|
@@ -617,62 +616,62 @@
|
|
|
- (void)loadChannelModel
|
|
|
{
|
|
|
[self.myChannel removeAllObjects];
|
|
|
-// ChannelModel * model = [[ChannelModel alloc] init];
|
|
|
-// model.ArticleGroupId = 0;
|
|
|
-// model.ArticleGroupName = @"推荐";
|
|
|
-// model.StyleCss = @"default";
|
|
|
-// model.IsSelect = YES;
|
|
|
-// [self.myChannel addObject:model];
|
|
|
-// ChannelModel * workModel = [[ChannelModel alloc] init];
|
|
|
-// workModel.ArticleGroupId = 1;
|
|
|
-// workModel.ArticleGroupName = @"待办工作";
|
|
|
-// workModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:workModel];
|
|
|
-// ChannelModel * sModel = [[ChannelModel alloc] init];
|
|
|
-// sModel.ArticleGroupId = 2;
|
|
|
-// sModel.ArticleGroupName = @"信源听说";
|
|
|
-// sModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:sModel];
|
|
|
-// ChannelModel * mModel = [[ChannelModel alloc] init];
|
|
|
-// mModel.ArticleGroupId = 3;
|
|
|
-// mModel.ArticleGroupName = @"名校";
|
|
|
-// mModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:mModel];
|
|
|
-// ChannelModel * aModel = [[ChannelModel alloc] init];
|
|
|
-// aModel.ArticleGroupId = 4;
|
|
|
-// aModel.ArticleGroupName = @"会员特供";
|
|
|
-// aModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:aModel];
|
|
|
-// ChannelModel * bModel = [[ChannelModel alloc] init];
|
|
|
-// bModel.ArticleGroupId = 5;
|
|
|
-// bModel.ArticleGroupName = @"每日微课";
|
|
|
-// bModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:bModel];
|
|
|
-// ChannelModel * cModel = [[ChannelModel alloc] init];
|
|
|
-// cModel.ArticleGroupId = 6;
|
|
|
-// cModel.ArticleGroupName = @"每日技能";
|
|
|
-// cModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:cModel];
|
|
|
-// ChannelModel * dModel = [[ChannelModel alloc] init];
|
|
|
-// dModel.ArticleGroupId = 7;
|
|
|
-// dModel.ArticleGroupName = @"每日好书";
|
|
|
-// dModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:dModel];
|
|
|
-// ChannelModel * eModel = [[ChannelModel alloc] init];
|
|
|
-// eModel.ArticleGroupId = 8;
|
|
|
-// eModel.ArticleGroupName = @"每日好文";
|
|
|
-// eModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:eModel];
|
|
|
-// ChannelModel * fModel = [[ChannelModel alloc] init];
|
|
|
-// fModel.ArticleGroupId = 9;
|
|
|
-// fModel.ArticleGroupName = @"名师";
|
|
|
-// fModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:fModel];
|
|
|
-// ChannelModel * gModel = [[ChannelModel alloc] init];
|
|
|
-// gModel.ArticleGroupId = 10;
|
|
|
-// gModel.ArticleGroupName = @"大咖讲座";
|
|
|
-// gModel.IsSelect = NO;
|
|
|
-// [self.myChannel addObject:gModel];
|
|
|
+ // ChannelModel * model = [[ChannelModel alloc] init];
|
|
|
+ // model.ArticleGroupId = 0;
|
|
|
+ // model.ArticleGroupName = @"推荐";
|
|
|
+ // model.StyleCss = @"default";
|
|
|
+ // model.IsSelect = YES;
|
|
|
+ // [self.myChannel addObject:model];
|
|
|
+ // ChannelModel * workModel = [[ChannelModel alloc] init];
|
|
|
+ // workModel.ArticleGroupId = 1;
|
|
|
+ // workModel.ArticleGroupName = @"待办工作";
|
|
|
+ // workModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:workModel];
|
|
|
+ // ChannelModel * sModel = [[ChannelModel alloc] init];
|
|
|
+ // sModel.ArticleGroupId = 2;
|
|
|
+ // sModel.ArticleGroupName = @"信源听说";
|
|
|
+ // sModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:sModel];
|
|
|
+ // ChannelModel * mModel = [[ChannelModel alloc] init];
|
|
|
+ // mModel.ArticleGroupId = 3;
|
|
|
+ // mModel.ArticleGroupName = @"名校";
|
|
|
+ // mModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:mModel];
|
|
|
+ // ChannelModel * aModel = [[ChannelModel alloc] init];
|
|
|
+ // aModel.ArticleGroupId = 4;
|
|
|
+ // aModel.ArticleGroupName = @"会员特供";
|
|
|
+ // aModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:aModel];
|
|
|
+ // ChannelModel * bModel = [[ChannelModel alloc] init];
|
|
|
+ // bModel.ArticleGroupId = 5;
|
|
|
+ // bModel.ArticleGroupName = @"每日微课";
|
|
|
+ // bModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:bModel];
|
|
|
+ // ChannelModel * cModel = [[ChannelModel alloc] init];
|
|
|
+ // cModel.ArticleGroupId = 6;
|
|
|
+ // cModel.ArticleGroupName = @"每日技能";
|
|
|
+ // cModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:cModel];
|
|
|
+ // ChannelModel * dModel = [[ChannelModel alloc] init];
|
|
|
+ // dModel.ArticleGroupId = 7;
|
|
|
+ // dModel.ArticleGroupName = @"每日好书";
|
|
|
+ // dModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:dModel];
|
|
|
+ // ChannelModel * eModel = [[ChannelModel alloc] init];
|
|
|
+ // eModel.ArticleGroupId = 8;
|
|
|
+ // eModel.ArticleGroupName = @"每日好文";
|
|
|
+ // eModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:eModel];
|
|
|
+ // ChannelModel * fModel = [[ChannelModel alloc] init];
|
|
|
+ // fModel.ArticleGroupId = 9;
|
|
|
+ // fModel.ArticleGroupName = @"名师";
|
|
|
+ // fModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:fModel];
|
|
|
+ // ChannelModel * gModel = [[ChannelModel alloc] init];
|
|
|
+ // gModel.ArticleGroupId = 10;
|
|
|
+ // gModel.ArticleGroupName = @"大咖讲座";
|
|
|
+ // gModel.IsSelect = NO;
|
|
|
+ // [self.myChannel addObject:gModel];
|
|
|
}
|
|
|
|
|
|
#pragma mark - 分享成功跳转
|
|
@@ -683,61 +682,182 @@
|
|
|
NSInteger Id = [[dic objectForKey:@"Id"] integerValue];
|
|
|
NSInteger userId = [[dic objectForKey:@"userId"] integerValue];
|
|
|
NSString* name = [[dic objectForKey:@"name"] stringByRemovingPercentEncoding];
|
|
|
- NSString* describe = [[dic objectForKey:@"describe"] stringByRemovingPercentEncoding];
|
|
|
+// NSString* describe = [[dic objectForKey:@"describe"] stringByRemovingPercentEncoding];
|
|
|
switch (type) {
|
|
|
- case CollectModel_CollectFile:
|
|
|
+ case CollectModel_Aritle:
|
|
|
+ {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.type = CollectModel_Aritle;
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_work:
|
|
|
+ {
|
|
|
+ MyApprovalPageDetail * vc = [[MyApprovalPageDetail alloc]init];
|
|
|
+ vc.indexId = Id;
|
|
|
+ vc.title = name;
|
|
|
+ vc.TodoId = Id;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_Toipc:
|
|
|
+ {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.type = CollectModel_Toipc;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_NewTopic:
|
|
|
+ {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.type = CollectModel_NewTopic;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_Notice:
|
|
|
+ {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.type = CollectModel_Notice;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_InterMail:
|
|
|
+ {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.type = CollectModel_InterMail;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_NoSignMail:
|
|
|
+ {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.type = CollectModel_NoSignMail;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_NoteBook:
|
|
|
{
|
|
|
- if (userId == [AppUserModel sharedAppUserModel].Id) {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.type = CollectModel_NoteBook;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_meetMian:
|
|
|
+ {
|
|
|
+ MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
+ vc.Id = Id;
|
|
|
+ vc.type = CollectModel_meetMian;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_meetDetail:
|
|
|
+ {
|
|
|
+ WorkFlowDetailsController *vc = [[WorkFlowDetailsController alloc] initWithId:Id];
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case CollectModel_CollectFile:{
|
|
|
+ if (userId == [AppUserModel sharedAppUserModel].Id || userId == 0) {
|
|
|
MyFavoriteVC *vc = [MyFavoriteVC initMyFavoriteVC];
|
|
|
vc.listType = Id == 0 ? MyFavoriteListLevelTypeA : MyFavoriteListLevelTypeB;
|
|
|
- vc.ParentId = 0;
|
|
|
+ vc.ParentId = Id;
|
|
|
vc.FolderId = Id;
|
|
|
- vc.myTitle = Id == 0 ? @"我的收藏" :name;
|
|
|
+ vc.myTitle = name;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}else{
|
|
|
- OtherFavoriteVC * vc = [OtherFavoriteVC initOtherFavoriteVC];
|
|
|
+ OtherFavoriteVC *vc = [OtherFavoriteVC initOtherFavoriteVC];
|
|
|
vc.listType = Id == 0 ? MyFavoriteListLevelTypeA : MyFavoriteListLevelTypeB;
|
|
|
+ vc.ParentId = Id;
|
|
|
vc.FolderId = Id;
|
|
|
- vc.Author = describe;
|
|
|
vc.myTitle = name;
|
|
|
vc.VisitUserId = userId;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
- }
|
|
|
- break;
|
|
|
- case CollectModel_NoteFile:
|
|
|
- {
|
|
|
- if (userId == [AppUserModel sharedAppUserModel].Id) {
|
|
|
- NoteBookVC * vc = [NoteBookVC initNoteBookVC];
|
|
|
- if (Id == 0) {
|
|
|
- vc.listType = MyFavoriteListLevelTypeB;
|
|
|
- vc.myTitle = @"我的笔记";
|
|
|
- }else{
|
|
|
- vc.listType = MyFavoriteListLevelTypeC;
|
|
|
- vc.myTitle = name;
|
|
|
- }
|
|
|
- vc.ParentId = 0;
|
|
|
+ }break;
|
|
|
+ case CollectModel_NoteFile:{
|
|
|
+ if (userId == [AppUserModel sharedAppUserModel].Id || userId == 0) {
|
|
|
+ NoteBookVC *vc = [NoteBookVC initNoteBookVC];
|
|
|
+ vc.listType = Id == 0 ? MyFavoriteListLevelTypeA : MyFavoriteListLevelTypeB;
|
|
|
+ vc.ParentId = Id;
|
|
|
vc.FolderId = Id;
|
|
|
- vc.isSubVC = YES;
|
|
|
+ vc.myTitle = name;
|
|
|
+ vc.VisitUserId = 0;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}else{
|
|
|
- OtherNoteBookVC * vc = [OtherNoteBookVC initOtherNoteBookVC];
|
|
|
+ OtherNoteBookVC *vc = [OtherNoteBookVC initOtherNoteBookVC];
|
|
|
vc.listType = Id == 0 ? MyFavoriteListLevelTypeA : MyFavoriteListLevelTypeB;
|
|
|
+ vc.ParentId = Id;
|
|
|
vc.FolderId = Id;
|
|
|
- vc.Author = describe;
|
|
|
vc.myTitle = name;
|
|
|
vc.VisitUserId = userId;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
- }
|
|
|
- break;
|
|
|
+ }break;
|
|
|
+ case CollectModel_TopicBooK:{
|
|
|
+ if (userId == [AppUserModel sharedAppUserModel].Id || userId == 0) {
|
|
|
+ NoteBookVC *vc = [NoteBookVC initNoteBookVC];
|
|
|
+ vc.listType = MyFavoriteListLevelTypeA;
|
|
|
+ vc.ParentId = 0;
|
|
|
+ vc.FolderId = Id;
|
|
|
+ vc.myTitle = name;
|
|
|
+ vc.VisitUserId = 0;
|
|
|
+ vc.TypeValue = 1;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }else{
|
|
|
+ OtherNoteBookVC *vc = [OtherNoteBookVC initOtherNoteBookVC];
|
|
|
+ vc.listType = MyFavoriteListLevelTypeA;
|
|
|
+ vc.ParentId = 0;
|
|
|
+ vc.FolderId = Id;
|
|
|
+ vc.myTitle = name;
|
|
|
+ vc.VisitUserId = userId;
|
|
|
+ vc.TypeValue = 1;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ }break;
|
|
|
+ case CollectModel_TopicSubBooK:{
|
|
|
+ if (userId == [AppUserModel sharedAppUserModel].Id || userId == 0) {
|
|
|
+ NoteBookVC *vc = [NoteBookVC initNoteBookVC];
|
|
|
+ vc.listType = MyFavoriteListLevelTypeB;
|
|
|
+ vc.ParentId = Id;
|
|
|
+ vc.FolderId = Id;
|
|
|
+ vc.myTitle = name;
|
|
|
+ vc.VisitUserId = 0;
|
|
|
+ vc.TypeValue = 1;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }else{
|
|
|
+ OtherNoteBookVC *vc = [OtherNoteBookVC initOtherNoteBookVC];
|
|
|
+ vc.listType = MyFavoriteListLevelTypeB;
|
|
|
+ vc.ParentId = Id;
|
|
|
+ vc.FolderId = Id;
|
|
|
+ vc.myTitle = name;
|
|
|
+ vc.VisitUserId = userId;
|
|
|
+ vc.TypeValue = 1;
|
|
|
+ vc.hidesBottomBarWhenPushed = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ }break;
|
|
|
default:
|
|
|
- {
|
|
|
- MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
- vc.type = type;
|
|
|
- vc.Id = Id;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -748,7 +868,7 @@
|
|
|
- (void)musicAction:(UIButton *)sender
|
|
|
{
|
|
|
[[HKFloatManager shared] showVideo];
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
- (TDButton *)addButton {
|
|
|
if (!_addButton) {
|