123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- //
- // YOUPAILZLiveVerifyResultVC.m
- // VQU
- //
- // Created by CY on 2021/6/15.
- // Copyright © 2021 leo. All rights reserved.
- //
- #import "YOUPAILZLiveVerifyResultVC.h"
- @interface YOUPAILZLiveVerifyResultVC ()
- @end
- @implementation YOUPAILZLiveVerifyResultVC
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.view.backgroundColor = [UIColor whiteColor];
- [self youpaifinitUI];
- }
- - (void)youpaifinitUI{
- UIImage *image;
- NSString *titleStr = @"";
- NSString *contentStr = @"";
- NSString *btnStr = @"";
- if (self.youpaipstate == LZLiveVerifyStateWithSuccess) {
- image = [UIImage imageNamed:@"vqu_images_L_live_verify_success"];
- titleStr = @"审核通过";
- contentStr =@"恭喜您已通过真人认证,请开启您的花蝶交友之旅吧~";
- btnStr =@"好的";
- }else if (self.youpaipstate == LZLiveVerifyStateWithInReview){
- image = [UIImage imageNamed:@"vqu_images_L_live_verify_inreview"];
- titleStr = @"审核中";
- contentStr =@"认证审核中,1小时内完成,认证结果会通过系统通知告知您。";
- btnStr =@"好的";
- }else if (self.youpaipstate == LZLiveVerifyStateWithInError){
- image = [UIImage imageNamed:@"vqu_images_L_live_verify_error"];
- titleStr = @"审核失败";
- contentStr =@"很抱歉,您的认证信息中有部分信息未能通过审核,请重新填写。";
- btnStr =@"重新填写";
- }
-
- self.title = titleStr;
- UIImageView *imageV = [[UIImageView alloc] initWithImage:image];
- [self.view addSubview:imageV];
- [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.centerX.equalTo(self.view);
- make.top.mas_equalTo(ScaleSize(187));
- make.size.mas_offset(CGSizeMake(ScaleSize(214.0f), ScaleSize(187.0f)));
- }];
-
- UILabel *contentL = [[UILabel alloc] init];
- contentL.textColor = HexColorFromRGB(0xA3AABE);
- contentL.font = LCFont13;
- contentL.numberOfLines = 0;
- contentL.text = contentStr;
- contentL.textAlignment = NSTextAlignmentCenter;
- [self.view addSubview:contentL];
- [contentL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.offset(35.0f);
- make.right.offset(-35.0f);
- make.top.equalTo(imageV.mas_bottom).offset(2.5f);
- make.height.mas_equalTo(37);
- }];
- //按钮
- UIButton *youpaipBtn = [UIButton new];
- [self.view addSubview:youpaipBtn];
- [youpaipBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(47.5);
- make.right.mas_equalTo(-47.5);
- make.bottom.mas_equalTo(-75);
- make.height.mas_equalTo(49);
- }];
- [youpaipBtn setTitle:btnStr forState:UIControlStateNormal];
- youpaipBtn.layer.cornerRadius = 24.5;
- youpaipBtn.layer.masksToBounds = YES;
- [youpaipBtn setBackgroundImage:[LCTools ColorImage:CGSizeMake(KScreenWidth-47.5*2, 49) FromColors:@[LZBFB6FFColor,LZ7C69FEColor] ByGradientType:1] forState:UIControlStateNormal];
-
- [youpaipBtn addTarget:self action:@selector(youpaiWithInReviewClick) forControlEvents:UIControlEventTouchUpInside];
-
-
-
- }
- -(void)youpaiWithInReviewClick{
-
- if (self.youpaipstate == LZLiveVerifyStateWithInError) {
- if (self.sex == 2) {
- [self.navigationController popToRootViewControllerAnimated:YES];
- }else{
- [self.navigationController popViewControllerAnimated:NO];
- if (self.didReviewClickBlock) {
- self.didReviewClickBlock();
- }
- }
-
- }else{
- [self.navigationController popToRootViewControllerAnimated:YES];
- }
-
-
-
- }
- @end
|