YOUPAILZPaySuccessVC.m 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // YOUPAILZPaySuccessVC.m
  3. // VQU
  4. //
  5. // Created by CY on 2021/8/26.
  6. // Copyright © 2021 MS. All rights reserved.
  7. //
  8. #import "YOUPAILZPaySuccessVC.h"
  9. @interface YOUPAILZPaySuccessVC ()
  10. @end
  11. @implementation YOUPAILZPaySuccessVC
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. self.title = @"支付成功";
  15. self.view.backgroundColor = [UIColor whiteColor];
  16. [self youpaifinitUI];
  17. }
  18. - (void)youpaifinitUI{
  19. UIImageView *imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"vqu_images_pay_success"]];
  20. [self.view addSubview:imageV];
  21. [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
  22. make.centerX.equalTo(self.view);
  23. make.top.offset(NavBarHeight + 70.0f);
  24. make.size.mas_offset(CGSizeMake(ScaleSize(114.0f), ScaleSize(98.0f)));
  25. }];
  26. UILabel *contentL = [[UILabel alloc] init];
  27. contentL.textColor = LZ273145Color;
  28. contentL.font = LCFont17;
  29. contentL.numberOfLines = 0;
  30. contentL.text = self.youpaipcontent;
  31. contentL.textAlignment = NSTextAlignmentCenter;
  32. [self.view addSubview:contentL];
  33. [contentL mas_makeConstraints:^(MASConstraintMaker *make) {
  34. make.left.offset(16.0f);
  35. make.right.offset(-16.0f);
  36. make.top.equalTo(imageV.mas_bottom).offset(10.0f);
  37. }];
  38. UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  39. backBtn.layer.cornerRadius = 24.0f;
  40. backBtn.clipsToBounds = YES;
  41. [backBtn setTitle:@"返回" forState:UIControlStateNormal];
  42. [backBtn setTitleColor:HexColorFromRGB(0x75170A) forState:UIControlStateNormal];
  43. backBtn.titleLabel.font = LCFont16;
  44. [backBtn setBackgroundImage:[LCTools ColorImage:CGSizeMake(KScreenWidth - 80.0f, 48.0f) FromColors:@[HexColorFromRGB(0xFBD893),HexColorFromRGB(0xD66F47)] ByGradientType:GradientTopToBottom] forState:UIControlStateNormal];
  45. [backBtn addTarget:self action:@selector(youpaifbackBtnClick) forControlEvents:UIControlEventTouchUpInside];
  46. [self.view addSubview:backBtn];
  47. [backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  48. make.bottom.offset(-30.0f-SafeHeight);
  49. make.centerX.equalTo(self.view);
  50. make.size.mas_offset(CGSizeMake(KScreenWidth - 80.0f, 48.0f));
  51. }];
  52. }
  53. - (void)youpaifbackBtnClick{
  54. [self.navigationController popViewControllerAnimated:YES];
  55. }
  56. @end