Commit 0238ea09881b806831a58dd799cbb652fd8a8d1c
1 parent
50813b89
免责声明逻辑调整
Showing
1 changed file
with
4 additions
and
2 deletions
CNLiveCServiceModule/Classes/View/CNLiveAlertTipView.m
| ... | ... | @@ -73,6 +73,10 @@ |
| 73 | 73 | [weakModalViewController hideWithAnimated:YES completion:nil]; |
| 74 | 74 | }]; |
| 75 | 75 | [tipView.sureBtn addBlockForControlEvents:UIControlEventTouchUpInside block:^(id _Nonnull sender) { |
| 76 | + if (!weakTipView.notShowBtn.isSelected) { | |
| 77 | + [QMUITips showWithText:@"请阅读网家家《免责声明》内容" detailText:NULL inView:weakTipView hideAfterDelay:2]; | |
| 78 | + return; | |
| 79 | + } | |
| 76 | 80 | [weakModalViewController hideWithAnimated:YES completion:^(BOOL finished) { |
| 77 | 81 | if (finished&&sureBlock) { |
| 78 | 82 | sureBlock(weakTipView.notShowBtn.isSelected); |
| ... | ... | @@ -83,7 +87,6 @@ |
| 83 | 87 | #pragma mark - Action |
| 84 | 88 | -(void)notShowBtnClick:(UIButton *)sender{ |
| 85 | 89 | sender.selected = !sender.isSelected; |
| 86 | - self.sureBtn.enabled = sender.selected; | |
| 87 | 90 | } |
| 88 | 91 | #pragma mark - Getting&&Setting |
| 89 | 92 | - (UILabel *)titleLabel |
| ... | ... | @@ -126,7 +129,6 @@ |
| 126 | 129 | _sureBtn.titleLabel.font = UIFontMake(16); |
| 127 | 130 | [_sureBtn setBackgroundImage:[UIImage gradientVerticalImageWithColors:@[CNLiveColorWithHexString(@"#FFAA4A"),CNLiveColorWithHexString(@"#EC5645")] rect:CGRectMake(0, 0, 120, 39)] forState:UIControlStateNormal]; |
| 128 | 131 | _sureBtn.clipsToBounds = YES; |
| 129 | - _sureBtn.enabled = NO; | |
| 130 | 132 | } |
| 131 | 133 | return _sureBtn; |
| 132 | 134 | } | ... | ... |