重庆迈尖科技有限公司
2018-08-17 9cd7d6f4d979ecdbd6a09c5e9f5d1bb953a9d69b
no message
4个文件已添加
7个文件已修改
495 ■■■■ 已修改文件
MIduo.xcodeproj/project.pbxproj 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/YTHsharedManger.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/balance/体现/AddIncarnateViewController.m 135 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/balance/体现/IncarnateViewController.m 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/balance/体现/SJAddVerifiNumberView.h 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/balance/体现/SJAddVerifiNumberView.m 124 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/balance/体现/SJAddVerifiStatusView.h 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/balance/体现/SJAddVerifiStatusView.m 85 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/首页/NEWHomeViewController.m 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcodeproj/project.pbxproj
@@ -532,6 +532,8 @@
        2D0802EF211000C60056A64C /* WXBindTipsView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D0802ED211000C50056A64C /* WXBindTipsView.m */; };
        2D08C10B20BFCE2C00A2423B /* LoginViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D08C10820BFCE2900A2423B /* LoginViewController.m */; };
        2D08C10C20BFCE2C00A2423B /* LoginViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2D08C10920BFCE2B00A2423B /* LoginViewController.xib */; };
        2D0966BF2125645300491927 /* SJAddVerifiNumberView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D0966BE2125645300491927 /* SJAddVerifiNumberView.m */; };
        2D0966C221257BCE00491927 /* SJAddVerifiStatusView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D0966C121257BCE00491927 /* SJAddVerifiStatusView.m */; };
        2D0A297720C54CAF00A51A55 /* SJRemoveBoundView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D0A297620C54CAF00A51A55 /* SJRemoveBoundView.m */; };
        2D0D7D1220BFF51B009D5D48 /* MineThirdTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D0D7D1020BFF51B009D5D48 /* MineThirdTableViewCell.m */; };
        2D0D7D1320BFF51B009D5D48 /* MineThirdTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2D0D7D1120BFF51B009D5D48 /* MineThirdTableViewCell.xib */; };
@@ -1606,6 +1608,10 @@
        2D08C10820BFCE2900A2423B /* LoginViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LoginViewController.m; sourceTree = "<group>"; };
        2D08C10920BFCE2B00A2423B /* LoginViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LoginViewController.xib; sourceTree = "<group>"; };
        2D08C10A20BFCE2C00A2423B /* LoginViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LoginViewController.h; sourceTree = "<group>"; };
        2D0966BD2125645300491927 /* SJAddVerifiNumberView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SJAddVerifiNumberView.h; sourceTree = "<group>"; };
        2D0966BE2125645300491927 /* SJAddVerifiNumberView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SJAddVerifiNumberView.m; sourceTree = "<group>"; };
        2D0966C021257BCE00491927 /* SJAddVerifiStatusView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SJAddVerifiStatusView.h; sourceTree = "<group>"; };
        2D0966C121257BCE00491927 /* SJAddVerifiStatusView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SJAddVerifiStatusView.m; sourceTree = "<group>"; };
        2D0A297520C54CAF00A51A55 /* SJRemoveBoundView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SJRemoveBoundView.h; sourceTree = "<group>"; };
        2D0A297620C54CAF00A51A55 /* SJRemoveBoundView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SJRemoveBoundView.m; sourceTree = "<group>"; };
        2D0D7D0F20BFF51B009D5D48 /* MineThirdTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MineThirdTableViewCell.h; sourceTree = "<group>"; };
@@ -2120,6 +2126,10 @@
                2D56113D20EB0DE80047C941 /* SJKitingViewController.h */,
                2D56113E20EB0DE80047C941 /* SJKitingViewController.m */,
                2D56113F20EB0DE80047C941 /* SJKitingViewController.xib */,
                2D0966BD2125645300491927 /* SJAddVerifiNumberView.h */,
                2D0966BE2125645300491927 /* SJAddVerifiNumberView.m */,
                2D0966C021257BCE00491927 /* SJAddVerifiStatusView.h */,
                2D0966C121257BCE00491927 /* SJAddVerifiStatusView.m */,
            );
            path = "体现";
            sourceTree = "<group>";
@@ -4501,6 +4511,7 @@
                1845C4AF209C562E009C639B /* ZXMaxiCodeReader.m in Sources */,
                18D430541E7A304B0007CCB5 /* PriceRangeModel.m in Sources */,
                18966CA720AD7F6A004CD297 /* GDDetailTableViewCell.m in Sources */,
                2D0966C221257BCE00491927 /* SJAddVerifiStatusView.m in Sources */,
                1845C4F0209C562E009C639B /* ZXPDF417CodewordDecoder.m in Sources */,
                1896F2811FD10437009D6EEF /* CoupleCollectionReusableView.m in Sources */,
                18AC53871E5A9840006D1FDF /* UIImageView+YTH.m in Sources */,
@@ -4752,6 +4763,7 @@
                1845C4D7209C562E009C639B /* ZXEAN13Writer.m in Sources */,
                18826A9C1F3C4C9C00A8E7B5 /* XWFilterAnimator+XWSwipe.m in Sources */,
                2D0F7DB620D0F91600355B51 /* SJTransitionView.m in Sources */,
                2D0966BF2125645300491927 /* SJAddVerifiNumberView.m in Sources */,
                1839BF4220849C7F00FD7104 /* GuessYouLike.m in Sources */,
                1845C48F209C562D009C639B /* ZXDimension.m in Sources */,
                18FB099C206B8FAA00006656 /* MineMessageViewController.m in Sources */,
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -6,7 +6,7 @@
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            shouldBeEnabled = "No"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            scope = "0"
@@ -19,13 +19,13 @@
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/&#x754c;&#x9762;/&#x9080;&#x8bf7;/&#x5546;&#x54c1;&#x5206;&#x4eab;/ShonpingShareViewController.m"
            timestampString = "555988233.959499"
            filePath = "MIduo/&#x754c;&#x9762;/&#x4f18;&#x60e0;&#x5238;/classificationViewController.m"
            timestampString = "555908948.249001"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "51"
            endingLineNumber = "51"
            landmarkName = "-back:"
            startingLineNumber = "275"
            endingLineNumber = "275"
            landmarkName = "-childViewController:forIndex:"
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
@@ -35,29 +35,13 @@
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/&#x754c;&#x9762;/&#x7f51;&#x9875;&#x89c6;&#x56fe;/&#x5546;&#x54c1;&#x8be6;&#x60c5;/ButtomCarView.m"
            timestampString = "556013765.121924"
            filePath = "MIduo/&#x754c;&#x9762;/&#x52a8;&#x6001;/DynamicViewController.m"
            timestampString = "556172363.6755069"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "41"
            endingLineNumber = "41"
            landmarkName = "-initWithFrame:"
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/&#x754c;&#x9762;/&#x7f51;&#x9875;&#x89c6;&#x56fe;/&#x5546;&#x54c1;&#x8be6;&#x60c5;/ButtomCarView.m"
            timestampString = "556013765.121978"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "38"
            endingLineNumber = "38"
            landmarkName = "-initWithFrame:"
            startingLineNumber = "229"
            endingLineNumber = "229"
            landmarkName = "-wxShareWithArray:"
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
MIduo/Êý¾Ý/YTHsharedManger.h
@@ -37,6 +37,7 @@
@property (nonatomic , assign)BOOL isminebound;
/// æ˜¯å¦æ˜¯ç‚¹å‡»è´­ç‰©è½¦æˆ–者订单微信登录的判断
@property (nonatomic, assign) BOOL isShopCarWXLogin;
@property (nonatomic, strong) NSString *alipay_helpUrlString;
+ (YTHsharedManger *)startManger;
MIduo/½çÃæ/ÎÒµÄ/balance/ÌåÏÖ/AddIncarnateViewController.m
@@ -8,11 +8,15 @@
#import "AddIncarnateViewController.h"
#import "IncarnateViewController.h"
#import "SJAddVerifiNumberView.h"
#import "SJAddVerifiStatusView.h"
#import "XYRWebViewController.h"
@interface AddIncarnateViewController ()
@property (weak, nonatomic) IBOutlet UITextField *nameText;
@property (weak, nonatomic) IBOutlet UITextField *zhifubaoText;
@property (nonatomic,strong) SJAddVerifiNumberView * addVerifiNumberView;
@property (nonatomic,strong) SJAddVerifiStatusView *addVerifiStatusView;
@property (nonatomic,assign)BOOL isVerifiAccount;
@end
@implementation AddIncarnateViewController
@@ -24,8 +28,13 @@
        [self customergetalipayaccount];
    }
}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [SVProgressHUD dismiss];
}
- (void)customergetalipayaccount {
    
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
@@ -44,6 +53,7 @@
}
- (IBAction)sureTaped:(UIButton *)sender {
    if (self.zhifubaoText.text.length ==0) {
        [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
        [SVProgressHUD showErrorWithStatus:@"请输入账号"];
@@ -55,33 +65,12 @@
        [SVProgressHUD showErrorWithStatus:@"请输入收款人姓名"];
        return;
    }
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
    [dic setObject:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"];
    [dic setObject:self.zhifubaoText.text forKey:@"account"];
    [dic setObject:self.nameText.text forKey:@"name"];
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"user/bindalipay"] param:dic success:^(NSDictionary *object) {
        NSLog(@"%@",object);
        if ([object[@"code"]integerValue] == 0) {
            if (self.isModify) {
                [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
                [SVProgressHUD showSuccessWithStatus:@"修改账户成功"];
            }else{
                [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
                [SVProgressHUD showSuccessWithStatus:@"添加账户成功"];
            }
            [self back];
        } else {
            [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
            [SVProgressHUD showErrorWithStatus:object[@"msg"]];
        }
    } fail:^(id object) {
        NSLog(@"%@",object);
    }];
    self.isVerifiAccount = YES;
    [self.addVerifiNumberView setLabelContentwith:@"为验证你的支付宝账号无误,系统将体现0.1元到你填写的支付宝账号。"];
    self.addVerifiNumberView.titleLabel.text = @"验证账号";
    [self.addVerifiNumberView.sureButton setTitle:@"确定" forState:UIControlStateNormal];
    [[UIApplication sharedApplication].delegate.window addSubview:self.addVerifiNumberView];
}
- (void)back{
    
@@ -94,7 +83,95 @@
        }
    }
}
- (void)sureVerifiTaped:(UIButton *)sender{
    [self.addVerifiNumberView removeFromSuperview];
    if (self.isVerifiAccount) {
        self.isVerifiAccount = NO;
        [SVProgressHUD show];
        NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
        [dic setObject:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"];
        [dic setObject:self.zhifubaoText.text forKey:@"account"];
        [dic setObject:self.nameText.text forKey:@"name"];
        [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"user/bindalipaywithverify"] param:dic success:^(NSDictionary *object) {
            NSLog(@"%@",object);
            [SVProgressHUD dismiss];
            NSInteger code = [object[@"code"]integerValue];
            if (code == 0) {
                if (self.isModify) {
                    self.addVerifiStatusView.contentLabel.text = object[@"msg"];
                    self.addVerifiStatusView.titleLabel.text = @"温馨提示";
                    [[UIApplication sharedApplication].delegate.window addSubview:self.addVerifiStatusView];
                    self.addVerifiStatusView.sureVerfiStatu = ^{
                        [self back];
                    };
                }else{
                    self.addVerifiStatusView.contentLabel.text = object[@"msg"];
                    self.addVerifiStatusView.titleLabel.text = @"温馨提示";
                    [[UIApplication sharedApplication].delegate.window addSubview:self.addVerifiStatusView];
                    self.addVerifiStatusView.sureVerfiStatu = ^{
                        [self back];
                    };
                }
            } else if(code == 1){
                [self.addVerifiNumberView setLabelContentwith:object[@"msg"]];
                self.addVerifiNumberView.titleLabel.text = @"验证失败";
                [self.addVerifiNumberView.sureButton setTitle:@"详情>" forState:UIControlStateNormal];
                [[UIApplication sharedApplication].delegate.window addSubview:self.addVerifiNumberView];
            }else if(code == 2){
                self.addVerifiStatusView.contentLabel.text = object[@"msg"];
                self.addVerifiStatusView.titleLabel.text = @"验证失败";
                self.addVerifiStatusView.sureVerfiStatu = ^{
                };
                [[UIApplication sharedApplication].delegate.window addSubview:self.addVerifiStatusView];
            }else{
                self.addVerifiStatusView.contentLabel.text = object[@"msg"];
                self.addVerifiStatusView.titleLabel.text = @"温馨提示";
                self.addVerifiStatusView.sureVerfiStatu = ^{
                };
                [[UIApplication sharedApplication].delegate.window addSubview:self.addVerifiStatusView];
            }
        } fail:^(id object) {
            [SVProgressHUD dismiss];
            NSLog(@"%@",object);
        }];
    }else{
        NSLog(@"");
        XYRWebViewController *specialJumpVC=[[XYRWebViewController alloc] init];
        specialJumpVC.url = [YTHsharedManger startManger].alipay_helpUrlString;
        specialJumpVC.backToRedBag=^(){
        };
        specialJumpVC.hidesBottomBarWhenPushed=YES;
        [self.navigationController pushViewController:specialJumpVC animated:YES];
    }
}
- (SJAddVerifiNumberView *)addVerifiNumberView{
    if (_addVerifiNumberView) {
        return _addVerifiNumberView;
    }
    _addVerifiNumberView = [[SJAddVerifiNumberView alloc]initWithFrame:CGRectMake(0,0,KScreenW,KScreenH)];
    [_addVerifiNumberView.sureButton addTarget:self action:@selector(sureVerifiTaped:) forControlEvents:UIControlEventTouchUpInside];
    return  _addVerifiNumberView;
}
- (SJAddVerifiStatusView *)addVerifiStatusView{
    if (_addVerifiStatusView) {
        return _addVerifiStatusView;
    }
    _addVerifiStatusView = [[SJAddVerifiStatusView alloc]initWithFrame:CGRectMake(0,0,KScreenW,KScreenH)];
    return  _addVerifiStatusView;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
MIduo/½çÃæ/ÎÒµÄ/balance/ÌåÏÖ/IncarnateViewController.m
@@ -12,6 +12,7 @@
#import "MessageLoginViewController.h"
#import "SJRemoveBoundView.h"
#import "SJKitingViewController.h"
#import "SJAddVerifiStatusView.h"
@interface IncarnateViewController ()<SJRemoveBoundViewDelegate,UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField *balanText;
@property (weak, nonatomic) IBOutlet UIButton *addButton;
@@ -20,6 +21,7 @@
@property (weak, nonatomic) IBOutlet UITextField *zhifuText;
@property (weak, nonatomic) IBOutlet UITextField *nameText;
@property (weak, nonatomic) IBOutlet UIView *addView;
@property (nonatomic,strong)SJAddVerifiStatusView * addVerifiStatusView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightLayout;
@property (weak, nonatomic) IBOutlet UIImageView *rightImage;
@@ -34,6 +36,7 @@
@property (nonatomic, assign) BOOL isHaveDian;
@property (nonatomic, assign) BOOL isFirstZero;
@property (nonatomic, strong) NSDictionary * alipayBindStateDictionary;
@end
@implementation IncarnateViewController
@@ -118,6 +121,18 @@
    [self.navigationController pushViewController:messageVC animated:YES];
}
- (IBAction)addTaped:(UIButton *)sender {
    if (!self.datasource) {
        return;
    }
    if ([self.alipayBindStateDictionary[@"state"]integerValue]) {
        self.addVerifiStatusView.contentLabel.text = self.alipayBindStateDictionary[@"msg"];
        self.addVerifiStatusView.sureVerfiStatu = ^{
        };
        [[UIApplication sharedApplication].delegate.window addSubview:self.addVerifiStatusView];
        return;
    }
    NSString *phoneString = _userInfo[@"phone"];
    if (phoneString.length == 0) {
@@ -224,24 +239,28 @@
        
        NSLog(@"%@",object);
        //        NSInteger code = [object[@"code"]integerValue];
        NSDictionary *dic = object[@"data"];
        self.userInfo = dic[@"user"];
        self->_bindingAccountList = dic[@"bindingAccountList"];
        if (self->_bindingAccountList.count == 0) {
            self.heightLayout.constant = 80;
            self.rightImage.hidden = NO;
            self.addButton.hidden = NO;
            self.modifyButton.hidden = YES;
        if ([object[@"code"]integerValue] == 0) {
            NSDictionary *dic = object[@"data"];
            self.alipayBindStateDictionary = dic[@"alipayBindState"];
            self.userInfo = dic[@"user"];
            self->_bindingAccountList = dic[@"bindingAccountList"];
            
        } else {
            self.heightLayout.constant = 180;
            self.rightImage.hidden = YES;
            self.addButton.hidden = YES;
            self.modifyButton.hidden = NO;
            self.nameLabel.text = self->_bindingAccountList[0][@"name"];
            self.zhifubaoLabel.text = self->_bindingAccountList[0][@"account"];
            if (self->_bindingAccountList.count == 0) {
                self.heightLayout.constant = 80;
                self.rightImage.hidden = NO;
                self.addButton.hidden = NO;
                self.modifyButton.hidden = YES;
            } else {
                self.heightLayout.constant = 180;
                self.rightImage.hidden = YES;
                self.addButton.hidden = YES;
                self.modifyButton.hidden = NO;
                self.nameLabel.text = self->_bindingAccountList[0][@"name"];
                self.zhifubaoLabel.text = self->_bindingAccountList[0][@"account"];
            }
        }
        
    } fail:^(id object) {
        NSLog(@"%@",object);
@@ -349,5 +368,12 @@
        }
    return YES;
}
- (SJAddVerifiStatusView *)addVerifiStatusView{
    if (_addVerifiStatusView) {
        return _addVerifiStatusView;
    }
    _addVerifiStatusView = [[SJAddVerifiStatusView alloc]initWithFrame:CGRectMake(0,0,KScreenW,KScreenH)];
    return  _addVerifiStatusView;
}
@end
MIduo/½çÃæ/ÎÒµÄ/balance/ÌåÏÖ/SJAddVerifiNumberView.h
New file
@@ -0,0 +1,18 @@
//
//  SJAddVerifiNumberView.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SJAddVerifiNumberView : UIView
@property (nonatomic,strong)UIView *contentView;
@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UILabel *contentLabel;
@property (nonatomic,strong)UIButton *sureButton;
@property (nonatomic,strong)UIButton *cancelButton;
- (void)setLabelContentwith:(NSString *)lablecontent;
@end
MIduo/½çÃæ/ÎÒµÄ/balance/ÌåÏÖ/SJAddVerifiNumberView.m
New file
@@ -0,0 +1,124 @@
//
//  SJAddVerifiNumberView.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "SJAddVerifiNumberView.h"
@implementation SJAddVerifiNumberView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithWhite:0.3 alpha:0.7];
        [self addSubview:self.contentView];
    }
    return self;
}
- (void)cancelTaped:(UIButton *)sender{
    [self removeFromSuperview];
}
- (UIView *)contentView{
    if (_contentView) {
        return _contentView;
    }
    _contentView = [[UIView alloc]initWithFrame:CGRectMake(30, KScreenH / 2 - 260 / 2, KScreenW - 60, 260)];
    _contentView.layer.cornerRadius = 10;
    _contentView.layer.masksToBounds = YES;
    _contentView.backgroundColor = [UIColor whiteColor];
    [_contentView addSubview:self.titleLabel];
    UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(self.titleLabel.frame) + 10,_contentView.frame.size.width - 40 , 1)];
    lineView.backgroundColor = XYRBackgroundColor;
    [_contentView addSubview:lineView];
    [_contentView addSubview:self.contentLabel];
    [_contentView addSubview:self.cancelButton];
    [_contentView addSubview:self.sureButton];
    return _contentView;
}
- (UILabel *)titleLabel{
    if (_titleLabel) {
        return _titleLabel;
    }
    _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, _contentView.frame.size.width, 30)];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.font = [UIFont systemFontOfSize:20];
    _titleLabel.text = @"验证账号";
    _titleLabel.textColor =SJColor(98, 98, 98, 1);
    return _titleLabel;
}
- (void)setLabelContentwith:(NSString *)lablecontent{
    // è®¾ç½®label的属性
    self.contentLabel.font = [UIFont systemFontOfSize:18];
    CGFloat labelWidth = self.contentLabel.frame.size.width;
    // åˆ›å»ºæ–‡å­—
    self.contentLabel.text = lablecontent;
    // è®¾ç½®æ–‡å­—属性 è¦å’Œlabel的一致
    NSDictionary *attrs = @{NSFontAttributeName : self.contentLabel.font};
    CGSize maxSize = CGSizeMake(labelWidth, MAXFLOAT);
    // è®¡ç®—文字占据的高度
    CGSize size = [lablecontent boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:attrs context:nil].size;
    // è®¾ç½®label尺寸
    self.contentLabel.frame = CGRectMake(20, CGRectGetMaxY(self.titleLabel.frame) + 30, size.width, size.height);
    self.contentView.frame = CGRectMake(30, KScreenH / 2 - 260 / 2, KScreenW - 60, 160 + size.height);
    _cancelButton .frame = CGRectMake(CGRectGetMinX(self.contentLabel.frame) + 20, CGRectGetMaxY(self.contentLabel.frame) + 20, (self.contentLabel.frame.size.width - 40) / 2, 35);
    _sureButton .frame = CGRectMake(CGRectGetMaxX(self.cancelButton.frame) + 20, CGRectGetMinY(self.cancelButton.frame), self.cancelButton.frame.size.width, self.cancelButton.frame.size.height);
}
- (UILabel *)contentLabel{
    if (_contentLabel) {
        return _contentLabel;
    }
    _contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(self.titleLabel.frame) + 30, _contentView.frame.size.width - 40, 100)];
    _contentLabel.textAlignment = NSTextAlignmentCenter;
    _contentLabel.font = [UIFont systemFontOfSize:18];
    _contentLabel.text = @"为验证你的支付宝账号无误,系统将体现0.1元到你填写的支付宝账号。";
    _contentLabel.numberOfLines = 0;
    _contentLabel.textColor = SJColor(127, 127, 127, 1);
    return _contentLabel;
}
- (UIButton *)cancelButton{
    if (_cancelButton) {
        return _cancelButton;
    }
    _cancelButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _cancelButton .frame = CGRectMake(20, CGRectGetMaxY(self.contentLabel.frame) + 20, (self.contentLabel.frame.size.width - 40) / 2, 35);
    [_cancelButton setTitle:@"取消" forState:UIControlStateNormal];
    [_cancelButton addTarget:self action:@selector(cancelTaped:) forControlEvents:UIControlEventTouchUpInside];
    [_cancelButton setTitleColor:XYRMainColor forState:UIControlStateNormal];
    _cancelButton.layer.borderColor = XYRMainColor.CGColor;
    _cancelButton.layer.borderWidth = 1;
    _cancelButton.layer.cornerRadius = _cancelButton.frame.size.height / 2;
    _cancelButton.layer.masksToBounds = YES;
    _cancelButton.backgroundColor = [UIColor whiteColor];
    return _cancelButton;
}
- (UIButton *)sureButton{
    if (_sureButton) {
        return _sureButton;
    }
    _sureButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _sureButton .frame = CGRectMake(CGRectGetMaxX(self.cancelButton.frame) + 20, CGRectGetMinY(self.cancelButton.frame), self.cancelButton.frame.size.width, self.cancelButton.frame.size.height);
    [_sureButton setTitle:@"确定" forState:UIControlStateNormal];
    [_sureButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    _sureButton.backgroundColor = XYRMainColor;
    _sureButton.layer.cornerRadius = _sureButton.frame.size.height / 2;
    _sureButton.layer.masksToBounds = YES;
//    _sureButton.layer.borderColor = XYRMainColor.CGColor;
//    _sureButton.layer.borderWidth = 1;
    return _sureButton;
}
@end
MIduo/½çÃæ/ÎÒµÄ/balance/ÌåÏÖ/SJAddVerifiStatusView.h
New file
@@ -0,0 +1,19 @@
//
//  SJAddVerifiStatusView.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^SureVerfiStatu)(void);
@interface SJAddVerifiStatusView : UIView
@property (nonatomic,strong)UIView *contentView;
@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UILabel *contentLabel;
@property (nonatomic,strong)UIButton *sureButton;
@property (nonatomic, copy)SureVerfiStatu sureVerfiStatu;
@end
MIduo/½çÃæ/ÎÒµÄ/balance/ÌåÏÖ/SJAddVerifiStatusView.m
New file
@@ -0,0 +1,85 @@
//
//  SJAddVerifiStatusView.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "SJAddVerifiStatusView.h"
@implementation SJAddVerifiStatusView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithWhite:0.3 alpha:0.7];
        [self addSubview:self.contentView];
    }
    return self;
}
- (void)sureTaped:(UIButton *)sender{
    [self removeFromSuperview];
    self.sureVerfiStatu();
}
- (UIView *)contentView{
    if (_contentView) {
        return _contentView;
    }
    _contentView = [[UIView alloc]initWithFrame:CGRectMake(30, KScreenH / 2 - 260 / 2, KScreenW - 60, 260)];
    _contentView.layer.cornerRadius = 10;
    _contentView.layer.masksToBounds = YES;
    _contentView.backgroundColor = [UIColor whiteColor];
    [_contentView addSubview:self.titleLabel];
    UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(self.titleLabel.frame) + 10,_contentView.frame.size.width - 40 , 1)];
    lineView.backgroundColor = XYRBackgroundColor;
    [_contentView addSubview:lineView];
    [_contentView addSubview:self.contentLabel];
    [_contentView addSubview:self.sureButton];
    return _contentView;
}
- (UILabel *)titleLabel{
    if (_titleLabel) {
        return _titleLabel;
    }
    _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, _contentView.frame.size.width, 30)];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.font = [UIFont systemFontOfSize:20];
    _titleLabel.text = @"温馨提示";
    _titleLabel.textColor =SJColor(98, 98, 98, 1);
    return _titleLabel;
}
- (UILabel *)contentLabel{
    if (_contentLabel) {
        return _contentLabel;
    }
    _contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(self.titleLabel.frame) + 30, _contentView.frame.size.width - 40, 100)];
    _contentLabel.textAlignment = NSTextAlignmentCenter;
    _contentLabel.font = [UIFont systemFontOfSize:18];
    _contentLabel.text = @"支付宝账号或姓名有误,请重新填写。";
    _contentLabel.numberOfLines = 0;
    _contentLabel.textColor = SJColor(127, 127, 127, 1);
    return _contentLabel;
}
- (UIButton *)sureButton{
    if (_sureButton) {
        return _sureButton;
    }
    _sureButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _sureButton .frame = CGRectMake(40, CGRectGetMaxY(self.contentLabel.frame) + 20, _contentView.frame.size.width - 80, 35);
    [_sureButton setTitle:@"知道了" forState:UIControlStateNormal];
    [_sureButton addTarget:self action:@selector(sureTaped:) forControlEvents:UIControlEventTouchUpInside];
    [_sureButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    _sureButton.backgroundColor = XYRMainColor;
    _sureButton.layer.cornerRadius = _sureButton.frame.size.height / 2;
    _sureButton.layer.masksToBounds = YES;
    //    _sureButton.layer.borderColor = XYRMainColor.CGColor;
    //    _sureButton.layer.borderWidth = 1;
    return _sureButton;
}
@end
MIduo/½çÃæ/Ê×Ò³/NEWHomeViewController.m
@@ -502,7 +502,10 @@
                   for (NSInteger index = 0; index < array.count; index ++) {
                       
                       NSDictionary *dic = array[index];
                       if ([dic[@"key"] compare:@"alipay_help"] == 0) {//支付宝帮助详情
                           [YTHsharedManger startManger].alipay_helpUrlString =  [NSString stringWithFormat:@"%@", dic[@"value"]];
                       }
                       if ([dic[@"key"] compare:@"weex_file_newer"] == 0) {
                           
                           [YTHsharedManger startManger].weexUrlString =  [NSString stringWithFormat:@"%@", dic[@"value"]];