Commit 9d3ac0f79437c81396c7ec89de5ceea6d294773d
1 parent
915a7a69
跳转逻辑添加
Showing
4 changed files
with
8 additions
and
23 deletions
CNLiveVideoClassifyKit.podspec
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Header/CNLiveCommonDefines.h
| ... | ... | @@ -21,7 +21,8 @@ typedef enum : NSUInteger { |
| 21 | 21 | CNLiveClassifyJumpPushSearchVC, |
| 22 | 22 | CNLiveClassifyJumpPushAddDiviceVC, |
| 23 | 23 | CNLiveClassifyJumpPushOtherSegmentVC, |
| 24 | - CNLiveClassifyJumpPushCustomVC | |
| 24 | + CNLiveClassifyJumpPushCustomVC, | |
| 25 | + CNLiveClassifyJumpTypeDarenWebVC | |
| 25 | 26 | } CNLiveClassifyJumpType; |
| 26 | 27 | |
| 27 | 28 | static NSString *const CNLiveLaunchWithFirsh = @"CNLiveLaunchWithFirsh"; | ... | ... |
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Manager/CNLiveClassifyJumpBridge.h
| ... | ... | @@ -43,7 +43,7 @@ NS_ASSUME_NONNULL_BEGIN |
| 43 | 43 | *pageType加载页面类型 |
| 44 | 44 | *param 传给View的参数 |
| 45 | 45 | */ |
| 46 | -+ (UIView *)showViewOrPushVCWithCurrentVC:(UIViewController *)currentVC pushType:(CNLiveClassifyJumpType)type pageType:(NSInteger)pageType param:(NSDictionary * _Nullable)param; | |
| 46 | ++ (UIView *)showViewOrPushVCWithCurrentVC:(UIViewController *_Nullable)currentVC pushType:(CNLiveClassifyJumpType)type pageType:(NSInteger)pageType param:(NSDictionary * _Nullable)param; | |
| 47 | 47 | //加载FTPopOverMenuConfiguration需要 |
| 48 | 48 | +(void)popOverShowEvent:(UIEvent *)event |
| 49 | 49 | imageDone:(FTPopDoneBlock)doneBlock | ... | ... |
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Manager/CNWebRedirectHandle.m
| ... | ... | @@ -37,27 +37,11 @@ |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | - (void)turnToCategorySubWebVCWithUrl:(NSString *)urlStr { |
| 40 | -#warning pushVC | |
| 40 | + NSDictionary *dic = @{ | |
| 41 | + @"urlStr":urlStr | |
| 42 | + }; | |
| 43 | + [CNLiveClassifyJumpBridge showViewOrPushVCWithCurrentVC:NULL pushType:CNLiveClassifyJumpTypeDarenWebVC pageType:0 param:dic]; | |
| 41 | 44 | // 二级页 |
| 42 | -// NSDictionary *dic = [NSString getURLParameters:urlStr]; | |
| 43 | -// AppDelegate *delegte = (AppDelegate *)[UIApplication sharedApplication].delegate; | |
| 44 | -// delegte.shouldChangeOrientation = WebPlayer; | |
| 45 | -// NSString *pageTitle = @" "; | |
| 46 | -// if ([dic containsObjectForKey:@"isShowTitle"] && [dic[@"isShowTitle"] isEqualToString:@"true"]) { | |
| 47 | -// pageTitle = nil; | |
| 48 | -// } | |
| 49 | -// CNDarenCategoryWebController *webVC = [[CNDarenCategoryWebController alloc] initWithUrl:urlStr pageTitle:pageTitle]; | |
| 50 | -// webVC.statUrl = urlStr; | |
| 51 | -// if([dic[@"model"] isEqualToString:@"witness"]){ | |
| 52 | -// webVC.shareType = @"witnessVideo"; | |
| 53 | -// } | |
| 54 | -// else if([dic[@"model"] isEqualToString:@"3_witness"]){ | |
| 55 | -// webVC.shareType = @"witnessArticle"; | |
| 56 | -// } | |
| 57 | -// else { | |
| 58 | -// webVC.shareType = @"article"; | |
| 59 | -// } | |
| 60 | -// [[AppDelegate sharedAppDelegate] pushViewController:webVC withBackTitle:@" "]; | |
| 61 | 45 | } |
| 62 | 46 | |
| 63 | 47 | - (void)jb_webRedirectHandleWithUrlStr:(NSString *)urlStr { | ... | ... |