12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // YOUPAILZPaySuccessVC.m
- // VQU
- //
- // Created by CY on 2021/8/26.
- // Copyright © 2021 MS. All rights reserved.
- //
- #import "YOUPAILZPaySuccessVC.h"
- @interface YOUPAILZPaySuccessVC ()
- @end
- @implementation YOUPAILZPaySuccessVC
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.title = @"支付成功";
- self.view.backgroundColor = [UIColor whiteColor];
- [self youpaifinitUI];
- }
- - (void)youpaifinitUI{
- UIImageView *imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"vqu_images_pay_success"]];
- [self.view addSubview:imageV];
- [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.centerX.equalTo(self.view);
- make.top.offset(NavBarHeight + 70.0f);
- make.size.mas_offset(CGSizeMake(ScaleSize(114.0f), ScaleSize(98.0f)));
- }];
-
-
- UILabel *contentL = [[UILabel alloc] init];
- contentL.textColor = LZ273145Color;
- contentL.font = LCFont17;
- contentL.numberOfLines = 0;
- contentL.text = self.youpaipcontent;
- contentL.textAlignment = NSTextAlignmentCenter;
- [self.view addSubview:contentL];
- [contentL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.offset(16.0f);
- make.right.offset(-16.0f);
- make.top.equalTo(imageV.mas_bottom).offset(10.0f);
- }];
-
- UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- backBtn.layer.cornerRadius = 24.0f;
- backBtn.clipsToBounds = YES;
- [backBtn setTitle:@"返回" forState:UIControlStateNormal];
- [backBtn setTitleColor:HexColorFromRGB(0x75170A) forState:UIControlStateNormal];
- backBtn.titleLabel.font = LCFont16;
- [backBtn setBackgroundImage:[LCTools ColorImage:CGSizeMake(KScreenWidth - 80.0f, 48.0f) FromColors:@[HexColorFromRGB(0xFBD893),HexColorFromRGB(0xD66F47)] ByGradientType:GradientTopToBottom] forState:UIControlStateNormal];
- [backBtn addTarget:self action:@selector(youpaifbackBtnClick) forControlEvents:UIControlEventTouchUpInside];
- [self.view addSubview:backBtn];
- [backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.bottom.offset(-30.0f-SafeHeight);
- make.centerX.equalTo(self.view);
- make.size.mas_offset(CGSizeMake(KScreenWidth - 80.0f, 48.0f));
- }];
- }
- - (void)youpaifbackBtnClick{
- [self.navigationController popViewControllerAnimated:YES];
- }
- @end
|