Commit 27b956797ac8b919cbce575d418593c329c93fff

Authored by yanglingyu
1 parent 6a779669

no message

CNLiveVideoClassifyKit.podspec
@@ -46,6 +46,7 @@ TODO: Add long description of the pod here. @@ -46,6 +46,7 @@ TODO: Add long description of the pod here.
46 s.dependency 'CNLiveUserManagement' 46 s.dependency 'CNLiveUserManagement'
47 s.dependency 'CNLiveCommonCategory' 47 s.dependency 'CNLiveCommonCategory'
48 s.dependency 'CNLiveBeeHive' 48 s.dependency 'CNLiveBeeHive'
  49 + s.dependency 'CNLiveEnvironment'
49 s.dependency 'CNLiveTripartiteManagement/SDWebImage' 50 s.dependency 'CNLiveTripartiteManagement/SDWebImage'
50 s.dependency 'CNLiveTripartiteManagement/Masonry' 51 s.dependency 'CNLiveTripartiteManagement/Masonry'
51 s.dependency 'CNLiveTripartiteManagement/YYKit' 52 s.dependency 'CNLiveTripartiteManagement/YYKit'
CNLiveVideoClassifyKit/Classes/Controller/CNLiveClassifySegmentController.m
@@ -11,7 +11,6 @@ @@ -11,7 +11,6 @@
11 #import "CNCategoryGetChannelModel.h" 11 #import "CNCategoryGetChannelModel.h"
12 #import "CNLiveListManager.h" 12 #import "CNLiveListManager.h"
13 #import "CNLiveSubSegmentController.h" 13 #import "CNLiveSubSegmentController.h"
14 -#import <CNLiveCWebViewModule/CNLiveWebViewJumpBridge.h>  
15 14
16 static const CGFloat animationTime = 0.3; 15 static const CGFloat animationTime = 0.3;
17 static const CGFloat animationHeight = 15; 16 static const CGFloat animationHeight = 15;
@@ -439,19 +438,12 @@ static CGFloat moveHeight = 50; @@ -439,19 +438,12 @@ static CGFloat moveHeight = 50;
439 438
440 -(void)managerScrollView:(BOOL)enabled 439 -(void)managerScrollView:(BOOL)enabled
441 { 440 {
  441 + self.listContainerView.scrollView.scrollEnabled = !enabled;
442 for (UIView *view in self.listContainerView.scrollView.subviews) { 442 for (UIView *view in self.listContainerView.scrollView.subviews) {
443 if ([view.viewController isKindOfClass:[CNLiveSubSegmentController class]]) { 443 if ([view.viewController isKindOfClass:[CNLiveSubSegmentController class]]) {
444 CNLiveSubSegmentController *subVc = (CNLiveSubSegmentController *)view.viewController; 444 CNLiveSubSegmentController *subVc = (CNLiveSubSegmentController *)view.viewController;
445 [subVc layoutRightSubViewWithShow:!enabled]; 445 [subVc layoutRightSubViewWithShow:!enabled];
446 - for (UIView *subView in view.subviews) {  
447 - if ([subView isKindOfClass:[JXCategoryListContainerView class]]) {  
448 - JXCategoryListContainerView *titleView = (JXCategoryListContainerView *)subView;  
449 - titleView.scrollView.scrollEnabled = enabled;  
450 - self.listContainerView.scrollView.scrollEnabled = !enabled;  
451 - }  
452 } 446 }
453 -  
454 - }  
455 } 447 }
456 } 448 }
457 #pragma mark - CNCustomChannelListViewDelegate !!!!!!!!!!!!!!!!!!!!!! 449 #pragma mark - CNCustomChannelListViewDelegate !!!!!!!!!!!!!!!!!!!!!!
CNLiveVideoClassifyKit/Classes/Controller/CNLiveSubSegmentController.m
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 15
16 @property (nonatomic, strong)NSArray<CNCategoryGetChannelModel*> *pageListArr; 16 @property (nonatomic, strong)NSArray<CNCategoryGetChannelModel*> *pageListArr;
17 @property (nonatomic, strong)UIColor *textColor; 17 @property (nonatomic, strong)UIColor *textColor;
18 -@property (nonatomic, strong)UIColor *backgroundColor; 18 +@property (nonatomic, strong)NSString *backgroundColor;
19 @property (nonatomic, strong)NSString *backImage; 19 @property (nonatomic, strong)NSString *backImage;
20 @property (nonatomic, strong)NSString *backImageH5; 20 @property (nonatomic, strong)NSString *backImageH5;
21 21
@@ -39,10 +39,10 @@ @@ -39,10 +39,10 @@
39 self.textColor = CNLiveColorWithHexString(@"#848494"); 39 self.textColor = CNLiveColorWithHexString(@"#848494");
40 } 40 }
41 if (!CNLiveStringIsEmpty(model.backgroundColor)) { 41 if (!CNLiveStringIsEmpty(model.backgroundColor)) {
42 - self.backgroundColor = CNLiveColorWithHexString(model.backgroundColor); 42 + self.backgroundColor = model.backgroundColor;
43 }else 43 }else
44 { 44 {
45 - self.backgroundColor = CNLiveColorWithHexString(@"#FFFFFF"); 45 + self.backgroundColor = @"#FFFFFF";
46 } 46 }
47 self.backImageH5 = model.backgroundImgH5; 47 self.backImageH5 = model.backgroundImgH5;
48 self.backImage = model.backgroundImg; 48 self.backImage = model.backgroundImg;
@@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
59 [self handleDateWithChannelsArray]; 59 [self handleDateWithChannelsArray];
60 self.myCategoryView.titles = self.titles; 60 self.myCategoryView.titles = self.titles;
61 if (CNLiveStringIsEmpty(self.backImage)) { 61 if (CNLiveStringIsEmpty(self.backImage)) {
62 - self.view.backgroundColor = self.backgroundColor; 62 + self.view.backgroundColor = CNLiveColorWithHexString(self.backgroundColor);
63 } 63 }
64 self.myCategoryView.titleColor = self.textColor; 64 self.myCategoryView.titleColor = self.textColor;
65 self.myCategoryView.titleSelectedColor = self.textColor; 65 self.myCategoryView.titleSelectedColor = self.textColor;
@@ -96,6 +96,7 @@ @@ -96,6 +96,7 @@
96 // 一级频道显示隐藏时二级频道右侧的搜索按钮变宽变窄控制 96 // 一级频道显示隐藏时二级频道右侧的搜索按钮变宽变窄控制
97 - (void)layoutRightSubViewWithShow:(BOOL)show { 97 - (void)layoutRightSubViewWithShow:(BOOL)show {
98 98
  99 + self.listContainerView.scrollView.scrollEnabled = !show;
99 if (show) { 100 if (show) {
100 // 正常 101 // 正常
101 102
CNLiveVideoClassifyKit/Classes/Header/CNLivevideoClassifyPCH.h
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 #import <CNLiveCommonCategory/CNLiveCommonCategory.h> 18 #import <CNLiveCommonCategory/CNLiveCommonCategory.h>
19 #import <CNLiveCommonCategory/UIColor+CNLiveExtension.h> 19 #import <CNLiveCommonCategory/UIColor+CNLiveExtension.h>
20 #import <CNLiveBeeHive/BHConfig.h> 20 #import <CNLiveBeeHive/BHConfig.h>
21 -#import <CNLiveBeeHive/CNLiveBeeHive.h> 21 +#import <CNLiveEnvironment/CNLiveEnvironment.h>
22 #import <MJExtension/MJExtension.h> 22 #import <MJExtension/MJExtension.h>
23 #import "CNLiveCommonDefines.h" 23 #import "CNLiveCommonDefines.h"
24 #import <QMUIKit/QMUIKit.h> 24 #import <QMUIKit/QMUIKit.h>
CNLiveVideoClassifyKit/Classes/Manager/CNLiveClassifyJumpBridge.m
@@ -19,12 +19,11 @@ @@ -19,12 +19,11 @@
19 return bridge; 19 return bridge;
20 } 20 }
21 -(instancetype)init 21 -(instancetype)init
22 -{ 22 +{
23 self = [super init]; 23 self = [super init];
24 if (self) { 24 if (self) {
25 Class class = NSClassFromString(@"CNLiveClassifyKitImpl"); 25 Class class = NSClassFromString(@"CNLiveClassifyKitImpl");
26 - self.protocol = [CNLiveVideoClassifyProtocol Protocol];  
27 - [[BeeHive shareInstance] registerService:self.protocol service:class]; 26 + self.protocol = [class new];
28 } 27 }
29 return self; 28 return self;
30 } 29 }