// // 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