Explorar el Código

[*] 盲盒礼物选择方式弹窗隐藏"今日不再提醒"

Steven hace 7 meses
padre
commit
ca65898564

+ 2 - 0
MiMoLive/MiMoLive/Classes/Live/View/LiveingView/BlindBox/MORemindAlertView.h

@@ -26,6 +26,8 @@ typedef void(^MORemindRightButtonBlock)(BOOL notRemind);
 - (void)showInView:(UIView *)superView;
 - (void)dismiss;
 
+- (void)hideRemindButton;
+
 @end
 
 NS_ASSUME_NONNULL_END

+ 14 - 1
MiMoLive/MiMoLive/Classes/Live/View/LiveingView/BlindBox/MORemindAlertView.m

@@ -73,9 +73,15 @@
 }
 
 - (void)updateContentViewHeight {
+    
+    CGFloat otherHeight = 132;
+    if (self.remindButton.isHidden) {
+        otherHeight = 110;
+    }
+    
     CGFloat titleHeight = [MOTools getSizeFrom:self.titleLabel.text font:self.titleLabel.font maxSize:CGSizeMake(kScaleWidth(295) - 20, MAXFLOAT)].height;
     [self.contentView mas_updateConstraints:^(MASConstraintMaker *make) {
-        make.height.mas_equalTo(titleHeight + 132);
+        make.height.mas_equalTo(titleHeight + otherHeight);
     }];
 }
 
@@ -172,6 +178,13 @@
     }
 }
 
+- (void)hideRemindButton {
+    self.remindButton.hidden = YES;
+
+    [self.titleLabel mas_updateConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(20);
+    }];
+}
 
 #pragma mark - Lazy
 - (UIView *)backgroundView {

+ 1 - 0
MiMoLive/MiMoLive/Classes/Live/View/LiveingView/GiftListView/MOGiftListView.m

@@ -973,6 +973,7 @@ MOGiftListViewModelDelegate>
         
         WEAKSELF
         MORemindAlertView *view = [[MORemindAlertView alloc] init];
+        [view hideRemindButton];
         view.leftButtonBlock = ^(BOOL notRemind) {
             weakSelf.blindBoxType = MOBlindBoxRecordTypeBag;
             if (notRemind) {//不再提醒