Commit e2ce44a80439d88a1038530aceaccd8fed43cde1

Authored by yanglingyu
1 parent fb990dc5

no message

CNLiveCServiceModule/Classes/View/CNLiveServiceEpiCell.m
... ... @@ -65,6 +65,12 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell";
65 65 make.top.equalTo(self.titleLabel.mas_bottom).offset(15);
66 66 }];
67 67 }
  68 +#pragma mark - Action
  69 +- (void)ButtonClick:(UIButton *)sender
  70 +{
  71 + CnLivePageContentModel *pageModel = [CnLivePageContentModel mj_objectWithKeyValues:_model.rightLists[sender.tag - 1000]];
  72 + [CNLiveCServiceManagerBridge jumpGetPageOtherVC:pageModel.contentId controller:[CNLiveCServiceManagerBridge viewControllerFromView:self]];
  73 +}
68 74 #pragma mark - UICollectionViewDelegate
69 75 - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
70 76 CnLivePageContentModel *model = [CnLivePageContentModel mj_objectWithKeyValues:self.model.contents[indexPath.row]];
... ... @@ -116,7 +122,8 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell";
116 122 - (UIButton *)dynamicBtn {
117 123 if (!_dynamicBtn) {
118 124 _dynamicBtn = [UIButton buttonWithType:UIButtonTypeCustom];
119   -
  125 + _dynamicBtn.tag = 1000;
  126 + [_dynamicBtn addTarget:self action:@selector(ButtonClick:) forControlEvents:UIControlEventTouchUpInside];
120 127 }
121 128 return _dynamicBtn;
122 129 }
... ... @@ -124,6 +131,8 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell";
124 131 {
125 132 if (!_travelBtn) {
126 133 _travelBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  134 + _travelBtn.tag = 1001;
  135 + [_travelBtn addTarget:self action:@selector(ButtonClick:) forControlEvents:UIControlEventTouchUpInside];
127 136 }
128 137 return _travelBtn;
129 138 }
... ...