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