Commit e2ce44a80439d88a1038530aceaccd8fed43cde1
1 parent
fb990dc5
no message
Showing
1 changed file
with
10 additions
and
1 deletions
CNLiveCServiceModule/Classes/View/CNLiveServiceEpiCell.m
| @@ -65,6 +65,12 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | @@ -65,6 +65,12 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | ||
| 65 | make.top.equalTo(self.titleLabel.mas_bottom).offset(15); | 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 | #pragma mark - UICollectionViewDelegate | 74 | #pragma mark - UICollectionViewDelegate |
| 69 | - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ | 75 | - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ |
| 70 | CnLivePageContentModel *model = [CnLivePageContentModel mj_objectWithKeyValues:self.model.contents[indexPath.row]]; | 76 | CnLivePageContentModel *model = [CnLivePageContentModel mj_objectWithKeyValues:self.model.contents[indexPath.row]]; |
| @@ -116,7 +122,8 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | @@ -116,7 +122,8 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | ||
| 116 | - (UIButton *)dynamicBtn { | 122 | - (UIButton *)dynamicBtn { |
| 117 | if (!_dynamicBtn) { | 123 | if (!_dynamicBtn) { |
| 118 | _dynamicBtn = [UIButton buttonWithType:UIButtonTypeCustom]; | 124 | _dynamicBtn = [UIButton buttonWithType:UIButtonTypeCustom]; |
| 119 | - | 125 | + _dynamicBtn.tag = 1000; |
| 126 | + [_dynamicBtn addTarget:self action:@selector(ButtonClick:) forControlEvents:UIControlEventTouchUpInside]; | ||
| 120 | } | 127 | } |
| 121 | return _dynamicBtn; | 128 | return _dynamicBtn; |
| 122 | } | 129 | } |
| @@ -124,6 +131,8 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | @@ -124,6 +131,8 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | ||
| 124 | { | 131 | { |
| 125 | if (!_travelBtn) { | 132 | if (!_travelBtn) { |
| 126 | _travelBtn = [UIButton buttonWithType:UIButtonTypeCustom]; | 133 | _travelBtn = [UIButton buttonWithType:UIButtonTypeCustom]; |
| 134 | + _travelBtn.tag = 1001; | ||
| 135 | + [_travelBtn addTarget:self action:@selector(ButtonClick:) forControlEvents:UIControlEventTouchUpInside]; | ||
| 127 | } | 136 | } |
| 128 | return _travelBtn; | 137 | return _travelBtn; |
| 129 | } | 138 | } |