Commit 75d4d450e2ac4a0cab0d5fa13246afb9216ca5db
1 parent
d815a853
no message
Showing
1 changed file
with
3 additions
and
5 deletions
CNLiveIntegralModule/Classes/Tools/CNLiveRewardRulesView.m
| ... | ... | @@ -70,7 +70,7 @@ static const NSInteger margin = 0; |
| 70 | 70 | }]; |
| 71 | 71 | |
| 72 | 72 | [_webView mas_makeConstraints:^(MASConstraintMaker *make) { |
| 73 | - make.top.equalTo(_bgView.mas_top).with.offset(margin); | |
| 73 | + make.top.equalTo(_bgView.mas_top); | |
| 74 | 74 | make.left.equalTo(_bgView.mas_left).with.offset(margin); |
| 75 | 75 | make.right.equalTo(_bgView.mas_right).with.offset(-margin); |
| 76 | 76 | make.bottom.equalTo(_closeBtn.mas_top).with.offset(margin); |
| ... | ... | @@ -141,10 +141,10 @@ static const NSInteger margin = 0; |
| 141 | 141 | _bgView.backgroundColor = [UIColor whiteColor]; |
| 142 | 142 | _bgView.layer.cornerRadius = 25*(SCREEN_WIDTH/375.0); |
| 143 | 143 | _bgView.layer.masksToBounds = YES; |
| 144 | - | |
| 145 | 144 | } |
| 146 | 145 | return _bgView; |
| 147 | 146 | } |
| 147 | + | |
| 148 | 148 | - (WKWebView *)webView { |
| 149 | 149 | if (_webView == nil) { |
| 150 | 150 | WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc]init]; |
| ... | ... | @@ -162,10 +162,10 @@ static const NSInteger margin = 0; |
| 162 | 162 | _webView.scrollView.showsHorizontalScrollIndicator = NO; |
| 163 | 163 | _webView.layer.cornerRadius = 25*(SCREEN_WIDTH/375.0); |
| 164 | 164 | _webView.layer.masksToBounds = YES; |
| 165 | - | |
| 166 | 165 | } |
| 167 | 166 | return _webView; |
| 168 | 167 | } |
| 168 | + | |
| 169 | 169 | - (UIButton *)closeBtn{ |
| 170 | 170 | if(_closeBtn == nil){ |
| 171 | 171 | _closeBtn = [UIButton buttonWithType:UIButtonTypeCustom]; |
| ... | ... | @@ -174,10 +174,8 @@ static const NSInteger margin = 0; |
| 174 | 174 | [_closeBtn setTitle:@"我知道了" forState:UIControlStateNormal]; |
| 175 | 175 | [_closeBtn setTitleColor:[UIColor colorWithRed:35/255.0 green:212/255.0 blue:30/255.0 alpha:1.0] forState:UIControlStateNormal]; |
| 176 | 176 | _closeBtn.adjustsImageWhenHighlighted = NO; |
| 177 | - | |
| 178 | 177 | } |
| 179 | 178 | return _closeBtn; |
| 180 | - | |
| 181 | 179 | } |
| 182 | 180 | |
| 183 | 181 | @end | ... | ... |