Commit 0238ea09881b806831a58dd799cbb652fd8a8d1c

Authored by yanglingyu
1 parent 50813b89

免责声明逻辑调整

CNLiveCServiceModule/Classes/View/CNLiveAlertTipView.m
@@ -73,6 +73,10 @@ @@ -73,6 +73,10 @@
73 [weakModalViewController hideWithAnimated:YES completion:nil]; 73 [weakModalViewController hideWithAnimated:YES completion:nil];
74 }]; 74 }];
75 [tipView.sureBtn addBlockForControlEvents:UIControlEventTouchUpInside block:^(id _Nonnull sender) { 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 [weakModalViewController hideWithAnimated:YES completion:^(BOOL finished) { 80 [weakModalViewController hideWithAnimated:YES completion:^(BOOL finished) {
77 if (finished&&sureBlock) { 81 if (finished&&sureBlock) {
78 sureBlock(weakTipView.notShowBtn.isSelected); 82 sureBlock(weakTipView.notShowBtn.isSelected);
@@ -83,7 +87,6 @@ @@ -83,7 +87,6 @@
83 #pragma mark - Action 87 #pragma mark - Action
84 -(void)notShowBtnClick:(UIButton *)sender{ 88 -(void)notShowBtnClick:(UIButton *)sender{
85 sender.selected = !sender.isSelected; 89 sender.selected = !sender.isSelected;
86 - self.sureBtn.enabled = sender.selected;  
87 } 90 }
88 #pragma mark - Getting&&Setting 91 #pragma mark - Getting&&Setting
89 - (UILabel *)titleLabel 92 - (UILabel *)titleLabel
@@ -126,7 +129,6 @@ @@ -126,7 +129,6 @@
126 _sureBtn.titleLabel.font = UIFontMake(16); 129 _sureBtn.titleLabel.font = UIFontMake(16);
127 [_sureBtn setBackgroundImage:[UIImage gradientVerticalImageWithColors:@[CNLiveColorWithHexString(@"#FFAA4A"),CNLiveColorWithHexString(@"#EC5645")] rect:CGRectMake(0, 0, 120, 39)] forState:UIControlStateNormal]; 130 [_sureBtn setBackgroundImage:[UIImage gradientVerticalImageWithColors:@[CNLiveColorWithHexString(@"#FFAA4A"),CNLiveColorWithHexString(@"#EC5645")] rect:CGRectMake(0, 0, 120, 39)] forState:UIControlStateNormal];
128 _sureBtn.clipsToBounds = YES; 131 _sureBtn.clipsToBounds = YES;
129 - _sureBtn.enabled = NO;  
130 } 132 }
131 return _sureBtn; 133 return _sureBtn;
132 } 134 }