123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- //
- // LZMGetMoneyNextViewController.m
- // YouHuiProject
- //
- // Created by jcymac on 2018/6/11.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LZMGetMoneyNextViewController.h"
- @interface LZMGetMoneyNextViewController ()<UITextFieldDelegate>
- @property (nonatomic,strong) UIView *codeView;
- @property (nonatomic,strong) UIButton *nextBtn;
- @end
- @implementation LZMGetMoneyNextViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self addUI];
- [self adjustUI];
-
- [self timeAction:[self.view viewWithTag:10003]];
- }
- -(void)viewWillAppear:(BOOL)animated{
- [super viewWillAppear:animated];
- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
- }
- - (void)configNavigationBar {
- [self.navigationBar setNavTitle:@"验证手机号"];
- self.navigationBar.backgroundColor = [UIColor changeColor];
- self.navigationBar.navTitleLabel.textColor = [UIColor whiteColor];
- UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
- [leftBtn setImage:[UIImage imageNamed:@"back_white"] forState:UIControlStateNormal];
- [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
- [self.navigationBar setCustomLeftButtons:@[leftBtn]];
- }
- -(void)addUI{
- [self.view addSubview:self.codeView];
- [self.view addSubview:self.nextBtn];
- [self configNavigationBar];
- }
- -(void)adjustUI{
- [self.codeView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(FITSIZE(35));
- make.right.mas_equalTo(FITSIZE(-35));
- make.top.mas_equalTo(154);
- make.height.mas_equalTo(144);
- }];
- [self.nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.equalTo(self.codeView.mas_bottom).offset(25);
- make.centerX.equalTo(self.view.mas_centerX);
- make.height.mas_equalTo(42);
- make.width.mas_equalTo(FITSIZE(250));
- }];
-
- UIView *imgView=[self.codeView viewWithTag:10001];
- UIView *textFieldView=[self.codeView viewWithTag:10002];
- UIView *timeView=[self.codeView viewWithTag:10003];
- UIView *lineView=[self.codeView viewWithTag:10004];
- [imgView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(0);
- make.bottom.mas_equalTo((-41-10));
- make.width.height.mas_equalTo(18);
- }];
- [timeView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.right.mas_equalTo(0);
- make.centerY.equalTo(imgView.mas_centerY);
- make.width.mas_equalTo(76);
- make.height.mas_equalTo(22);
- }];
- [textFieldView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(imgView.mas_right).offset(FITSIZE(10));
- make.centerY.equalTo(imgView.mas_centerY);
- make.right.equalTo(timeView.mas_left);
- }];
- [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(imgView.mas_left);
- make.right.equalTo(timeView.mas_right);
- make.top.equalTo(imgView.mas_bottom).offset(10);
- make.height.mas_equalTo(1);
- }];
-
-
- }
- #pragma mark -事件
- -(void)timeAction:(UIButton *)sender{
- [self requestCode];
- [sender startWithTime:60 title:@"重新发送" countDownTitle:@"s" mainColor:[UIColor clearColor] countColor:[UIColor clearColor]];
- }
- #pragma mark -网络请求
- -(void)requestCode{
- //获取验证码
- NSString *url=[NSString stringWithFormat:@"%@/api/v2/users/sendCode",BaseURL];
- [LZMHttp post:url params:nil success:^(id json) {
-
- } failure:^(NSError *error) {
- if (error) {
- [MBProgressHUD showMessage:@"获取失败"];
- }
- }];
-
-
- }
- -(void)requestGetMoney{
- UITextField *textField=[self.codeView viewWithTag:10002];
- if(textField.text &&![@"" isEqualToString:textField.text]) {
- NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/embodyApplication",BaseURL];
- NSDictionary *dic=@{
- @"money":self.moneyStr,
- @"code":textField.text
- };
- [LZMHttp post:url params:dic success:^(id json) {
- [MBProgressHUD showMessage:@"提现成功"];
- [SVProgressHUD dismissWithDelay:1.0f];
- [self.navigationController popToRootViewControllerAnimated:YES];
- } failure:^(NSError *error) {
- if (error) {
- [MBProgressHUD showMessage:@"服务器开小差了,请稍后再试"];
- }
-
- }];
- }else{
- [MBProgressHUD showMessage:@"您的输入有误,请重新输入"];
- }
- }
- #pragma mark -代理
- - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
- if ([@"" isEqualToString:string]) {
- return YES;
- }
- if ([@"0123456789" rangeOfString:string].location!= NSNotFound) {
- return YES;
- }
- return NO;
- }
- #pragma mark -事件响应
- - (void)backAction {
- [self.navigationController popViewControllerAnimated:YES];
- }
- #pragma mark -懒加载
- -(UIView *)codeView{
- if (!_codeView) {
- _codeView=[[UIView alloc]init];
- UIImageView *imgView=[[UIImageView alloc]init];
- UITextField *textField=[[UITextField alloc]init];
- UIButton *timeBtn=[UIButton buttonWithType:UIButtonTypeCustom];
- UIView *lineView=[[UIView alloc]init];
- imgView.tag=10001;
- textField.tag=10002;
- timeBtn.tag=10003;
- lineView.tag=10004;
- [_codeView addSubview:imgView];
- [_codeView addSubview:textField];
- [_codeView addSubview:timeBtn];
- [_codeView addSubview:lineView];
- imgView.image = [UIImage imageNamed:@"code_left"];
- textField.placeholder=@"输入验证码";
- textField.textColor=[UIColor blackColor];
- textField.font=[UIFont systemFontOfSize:14];
- textField.delegate=self;
- textField.keyboardType=UIKeyboardTypeNumberPad;
- [timeBtn setTitleColor:[UIColor YHColorWithHex:0xFF6D33] forState:UIControlStateNormal];
- timeBtn.layer.borderColor=[UIColor YHColorWithHex:0xFF6D33].CGColor;
- [timeBtn addTarget:self action:@selector(timeAction:) forControlEvents:UIControlEventTouchUpInside];
- [timeBtn setTitle:@"重新获取" forState:UIControlStateNormal];
- timeBtn.titleLabel.font=[UIFont systemFontOfSize:12];
- [timeBtn setTitleColor:[UIColor YHColorWithHex:0xFF6D33] forState:UIControlStateNormal];
- timeBtn.layer.borderWidth=1;
- timeBtn.layer.cornerRadius=11;
- timeBtn.layer.masksToBounds=YES;
- lineView.backgroundColor=[UIColor YHColorWithHex:0xD8D8D8];
- }
- return _codeView;
- }
- -(UIButton *)nextBtn{
- if (!_nextBtn) {
- _nextBtn=[UIButton buttonWithType:UIButtonTypeCustom];
- _nextBtn.layer.cornerRadius=21;
- [_nextBtn setTitle:@"完成" forState:UIControlStateNormal];
- _nextBtn.backgroundColor=[UIColor gradientWidthFromColor:[UIColor YHColorWithHex:0xFF9000] toColor:[UIColor YHColorWithHex:0xFF5000] withWidth:FITSIZE(250)];
- [[_nextBtn rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(id x) {
- [self requestGetMoney];
- }];
- }
- return _nextBtn;
- }
- -(void)aW9oG6tJX:(UIActivity*) aW9oG6tJX ao4cM8O6uk:(UIFont*) ao4cM8O6uk aTSHpLr5:(UIViewController*) aTSHpLr5 a2ztLe:(UIActivity*) a2ztLe aQ53MS7EpY:(UIVisualEffectView*) aQ53MS7EpY a6uwPLOI1Ns:(UIKeyCommand*) a6uwPLOI1Ns aRs6nMPFVIB:(UILabel*) aRs6nMPFVIB aNPixOHf5K:(UIBarButtonItem*) aNPixOHf5K aDCU5nBi:(UIKeyCommand*) aDCU5nBi {
- NSLog(@"fbKSUi31WNGvhjIXJc");
- NSLog(@"dxoDsf3lFtKInjYTCur8wGi975kQ40bSZ1");
- NSLog(@"BwKyv0CkTOU35NLFH1AZa94oS");
- NSLog(@"R3HP7hiG6CwVmxMTtc0Ys5SkdFjnygErOpJ84");
- NSLog(@"bNHVJPcLZMngf0DkyqjsSx7zUi1");
- NSLog(@"g7xs5HKMXyq9UpTVW3dAZFGYk");
- NSLog(@"omyBwAzFGhg9vWYq");
- NSLog(@"QfIdYpUg5niNBjJlk6Vz2WqMK3");
- NSLog(@"pxYIlOcGKFP");
- NSLog(@"oxfHklmpv9Yd");
- NSLog(@"Ek9W3xdUiRI7");
- NSLog(@"pxL1RJy6nY0PO");
- NSLog(@"2m50QjGriXyZBeqz7sEw6NJ");
- }
- -(void)abMH8Pkr69I:(UIDocument*) abMH8Pkr69I aVp4BYt:(UIInputView*) aVp4BYt aVgct1fhri5:(UIDevice*) aVgct1fhri5 aUAuD6FdTp:(UIEvent*) aUAuD6FdTp aQz7dhrpOwB:(UIMotionEffect*) aQz7dhrpOwB aqxp7Gc0R:(UIControlEvents*) aqxp7Gc0R a5A9Tf:(UIWindow*) a5A9Tf ayg5jY6t2rC:(UIFontWeight*) ayg5jY6t2rC aOJZgNasdBM:(UIEvent*) aOJZgNasdBM ao4Prp:(UIControlEvents*) ao4Prp aGPn4z2Qfp:(UISearchBar*) aGPn4z2Qfp {
- NSLog(@"EDhZ4sTvrygK3S");
- NSLog(@"eEhljc705QIPVmM8BuFavJn");
- NSLog(@"YVTy5e1fKx42HDoWjuNd9IpsPaZ");
- NSLog(@"BvboGVM6cSUWr2DN");
- NSLog(@"vIcQrR537FYCap6t9fNM1l2xA04eHuZdsW");
- NSLog(@"v2qFhfX8ETV54mDr6UuNx7wsQaCOZbKA3MBpjSGg");
- NSLog(@"5sWYMcAl7d0iet9NP");
- NSLog(@"DaRp2IVfQJLUWCscNb7GozStenuhBP96ykHM0");
- NSLog(@"jeDUr3hCWPq1IgOfREsiYQ0KHz6NopwaVl");
- NSLog(@"DQN9LHBPmJpCzv0rTd7sa24b3OYMVGISEjUxAy");
- NSLog(@"GOeIbhpyT12C");
- NSLog(@"7mfiSg5NseXdb");
- NSLog(@"m5wcCK1IYrSRn2GU4pgsNJTXlWDqZPLvQ3");
- NSLog(@"wM5YlX7BcZ1hQFCoeTDkGRtxsnjq8miONW");
- NSLog(@"W7JtpiVqRPdZD2eFmL");
- NSLog(@"JHR2A7XO3c0kvbYtlyuqBgTe9IisCr");
- }
- -(void)asC0zPX:(UIAlertView*) asC0zPX ab742Qmw:(UIVisualEffectView*) ab742Qmw a0aznsVUu:(UIImageView*) a0aznsVUu aqY6Jg0krp:(UIImage*) aqY6Jg0krp auiqxamc2fL:(UIColor*) auiqxamc2fL apZNh5s:(UIBezierPath*) apZNh5s aNFgd:(UIMotionEffect*) aNFgd axbUwChPs:(UIViewController*) axbUwChPs aDd9znl:(UIDocument*) aDd9znl azrCM1G43UP:(UIInputView*) azrCM1G43UP a4zlD:(UICollectionView*) a4zlD anr9Ov6Js:(UIView*) anr9Ov6Js {
- NSLog(@"5z0HSEaj8WPpkJy7OZ9GKqRt14AUFw6Bemo");
- NSLog(@"qtSPgGI3cHnM");
- NSLog(@"Xhj1CwvmLs89fYg7WqbSKu");
- NSLog(@"efbOPavGpwS3FHhoJ9M2DyT0dnr");
- NSLog(@"NIhGAO6bF0d7v1rnEZBamy3Q4");
- NSLog(@"DC1nfrOX24B8EmNlj0PUGAw5HyauVxSq");
- NSLog(@"SBzpZ5oUfjRX2bAq0dmtM");
- NSLog(@"2Wp4eO61HbYdmaCZnqgh0PRD7jJwIiNytS");
- NSLog(@"SOudGK6gjXbhEkUTpsA");
- NSLog(@"dZohSMyuE2PlKWIpATD8O");
- NSLog(@"KR6tf2nZ3gXqC");
- }
- -(void)askzOTP:(UIControl*) askzOTP a8Un9NqE:(UIEvent*) a8Un9NqE aHR2ezxIKdn:(UIScreen*) aHR2ezxIKdn aJoXsH05:(UIControl*) aJoXsH05 acziWth:(UILabel*) acziWth ajin8HdM1T:(UIEvent*) ajin8HdM1T apax5:(UIEvent*) apax5 aQiUf8:(UIView*) aQiUf8 axdvKbgP:(UICollectionView*) axdvKbgP aOJE2v:(UIImage*) aOJE2v {
- NSLog(@"VmsUGOrAo9qJcZRXxBtnfHY52zDiLjQ0");
- NSLog(@"c9jzHIDCEdhiSKT5gGRQNyuvW8q");
- NSLog(@"7IFzuGrBsNWR9xK1enkVcZblvifyOtaSwjYdgQ5");
- NSLog(@"xZXvUIsMOtrqeVukdhj5BEAw7Wp8nyR62HCD1");
- NSLog(@"3vOmytVqPa6XTHfeGYCIxnRkMpFKJ5z7");
- NSLog(@"qhCvY6KAVyUzjoB395fmLdO18P7ZSMxWDkIXb");
- NSLog(@"NDoJ8WdZfpFvMTbhXx7");
- NSLog(@"m8HOqWe5v4KouVAdTGB9SE0LZsy3cwMRiDNXrzJ");
- NSLog(@"VxqRrT14vkocfY7HOKMSGb8AIJ5t");
- NSLog(@"W8QRa3MeiC7wzpTqLlFngPOE94r2Ikxo6N");
- NSLog(@"e1ZOyi9wPL7BMN6Wz");
- NSLog(@"iyvaDogtXEm");
- NSLog(@"pjvhu5Brxk04oAei8MQIwcO97");
- }
- -(void)a0f2F:(UIActivity*) a0f2F aQyo0jzfC:(UISearchBar*) aQyo0jzfC aUp5cLw:(UIAlertView*) aUp5cLw apYSQrg4Fjl:(UIRegion*) apYSQrg4Fjl a5QzmVWIN:(UILabel*) a5QzmVWIN aWcApP:(UIDocument*) aWcApP a3c9CyArON1:(UIBarButtonItem*) a3c9CyArON1 aY279jUqO:(UIEdgeInsets*) aY279jUqO aEBx6NPcp:(UIWindow*) aEBx6NPcp aaUInSb:(UIBarButtonItem*) aaUInSb aBfKAjP:(UIImage*) aBfKAjP aYjg3Pn:(UISearchBar*) aYjg3Pn aPNWAI:(UIDevice*) aPNWAI ajdoz:(UIImageView*) ajdoz aXVvje0flPY:(UIBarButtonItem*) aXVvje0flPY aQNO2xXjLUM:(UISwitch*) aQNO2xXjLUM {
- NSLog(@"Nnb9wqT5vS0PRlA8zu6B12Wtgf4JkaHI");
- NSLog(@"0moGuQjCr5i");
- NSLog(@"kp6Kb1Af3te4");
- NSLog(@"ALvsF1EroahOKCRzwiV8X0dJxTDeS");
- NSLog(@"oifKH5hwqVrlJskdRztE0O7yDvT6FxXnGY9Lg");
- NSLog(@"MKDfEjGzlPrRIOH1");
- NSLog(@"EY0Jbxm4uK93kg");
- NSLog(@"IwjbavK2Md0m8JU4WPzD");
- NSLog(@"iUyqNKI4orX7GkSfehQnwv");
- NSLog(@"BuFrebVmA3LYy2jxpR9UDdkiTf5hslPIEC");
- NSLog(@"8fG0xmO7anikcsoQH6DRA5gBhpJUYvejwzILV2d4");
- NSLog(@"YIsfSBm3CN6o9xDU2uHwXKpdtb");
- NSLog(@"MoJfBnLN6YDjV3IiQG4p8");
- NSLog(@"B5N0ylgxoOLpQ8JPFnX");
- NSLog(@"vEklfiKOrph97gZYnDPIL1W8JeGqjQsxVwH5d");
- }
- -(void)aWJ5CnuEz2:(UIImageView*) aWJ5CnuEz2 a4wxirztl:(UIView*) a4wxirztl ag8OwC2AZ:(UIEdgeInsets*) ag8OwC2AZ axVAU2:(UICollectionView*) axVAU2 aDNBv:(UIVisualEffectView*) aDNBv {
- NSLog(@"NjnrCck1KaZ5pTAG9B");
- NSLog(@"MlwA0fOUBhmuV3zdEyx9rpQbJo7");
- NSLog(@"NLJh2ZUny6veBsbt");
- NSLog(@"C5atnid4BvM3QRKfNgAUrjXTPcLb");
- NSLog(@"EoMDSLm2Zvu9khKB3j80nPaR7gwITGFbOA1YVXsC");
- NSLog(@"9eLEf8h0MIaxRBjoXFzyPYOC");
- NSLog(@"rdIB2vgeJHbiV6S");
- NSLog(@"WynVQZwt2EXHC1lj");
- NSLog(@"fDXr7bgmKo4tV5nM");
- NSLog(@"eAQ7IuUXfhpnYVJgCxMsci2");
- NSLog(@"N5gCJBOpduDE");
- NSLog(@"KkbplV2HvAzWcSfRr");
- NSLog(@"aHixzwyqND2n1");
- NSLog(@"AEm3PNyqchkRfSUTb0KFl");
- NSLog(@"afHmXsGBjJc");
- NSLog(@"wuTRqZIJvb2P1zyKVc3");
- NSLog(@"cM7Vm9PNuKo");
- NSLog(@"YF98gGKCab1D2vkjTA5V0OlyQ3ifhpP");
- NSLog(@"R2OaL36yZWAgr8ofhmjJunz");
- }
- -(void)aXjG8g:(UIMotionEffect*) aXjG8g aSkibrdE:(UIEvent*) aSkibrdE aQYn5WMKP9:(UIControlEvents*) aQYn5WMKP9 a56F9JmGr:(UIFontWeight*) a56F9JmGr aXe7A:(UIAlertView*) aXe7A aY3C8ylxds:(UIViewController*) aY3C8ylxds aUO7XBHLa:(UIScreen*) aUO7XBHLa acFPIY9e:(UIEdgeInsets*) acFPIY9e a0uaqyBPQ4:(UIEdgeInsets*) a0uaqyBPQ4 aHS95Ia1:(UIInputView*) aHS95Ia1 aKsdBY9p:(UISearchBar*) aKsdBY9p a3a8APh:(UIActivity*) a3a8APh ac7lk49Vz:(UIUserInterfaceIdiom*) ac7lk49Vz aGCpYZl:(UIMenuItem*) aGCpYZl arysJlpUota:(UIView*) arysJlpUota ayZ6MavR:(UIEdgeInsets*) ayZ6MavR ap0jL9:(UIAlertView*) ap0jL9 {
- NSLog(@"X9BNlPDjIm04R7f3VQMcEgUCOdoW2Lxke1AJzuYs");
- NSLog(@"GF5fQg7HJrkLW0nyz8");
- NSLog(@"2NvqJ1wQKphztoj5XrVkYbsFUOaZf4THnLmPS9Al");
- NSLog(@"jLBz5nmpUCZrt6vsWAlKONDwiGM7y");
- NSLog(@"Z50UIOTPxYdb");
- NSLog(@"6DUqSQb7N4iVfXYyFMKgwJZmp3BIs");
- NSLog(@"0mJQ6ASUcGIBr5");
- NSLog(@"PVdf43YINuW");
- NSLog(@"nBSmfgwYlAqPQoj3iMFVdC21c0U7XOTI");
- NSLog(@"r4GxJDp1H6kSK8o9XE0FgthYTVyfQn2NP");
- NSLog(@"JBZv3q1GFT6rO5ofClehLnHiQMg");
- }
- -(void)apZ5FMEo4T:(UICollectionView*) apZ5FMEo4T aSf9AbdJ:(UIApplication*) aSf9AbdJ aR9hBr:(UIInputView*) aR9hBr azTBGlXf:(UIBarButtonItem*) azTBGlXf aL3EnC:(UIActivity*) aL3EnC arJq5I9:(UISearchBar*) arJq5I9 apUSI:(UIVisualEffectView*) apUSI a0OEuh4:(UIEdgeInsets*) a0OEuh4 aolIm2Wza:(UILabel*) aolIm2Wza a2x5d:(UIScreen*) a2x5d aPmO3sFTXt:(UISwitch*) aPmO3sFTXt apk5s:(UIColor*) apk5s aoiSQUEB7:(UIScreen*) aoiSQUEB7 azsdeLaPJo6:(UITableView*) azsdeLaPJo6 adnD90ABkh:(UICollectionView*) adnD90ABkh aOD25CYlg1q:(UISwitch*) aOD25CYlg1q asQUTRduK:(UIBarButtonItem*) asQUTRduK aJySw:(UIKeyCommand*) aJySw aPXA3IJru:(UISwitch*) aPXA3IJru {
- NSLog(@"V1jpYorfG95dA4eZTQEzFBgiyRIDu0UKxMblw");
- NSLog(@"mVU98i3ORTbYvo7lPN4");
- NSLog(@"nrwZI2JCTSpMK");
- NSLog(@"bJCkqtPiHxLVgF0");
- NSLog(@"UeIPEs8j4YGLwq2JgyZuOaFo6h1CMDKtbBzX");
- NSLog(@"cKCakdYZepg9VNL2J3nq18OsTPb");
- NSLog(@"T1XZIzquspSnr8lK6QEkG0LJN9f2x7tbF3e");
- NSLog(@"0SJGl1E9CzHe");
- NSLog(@"LWnUDS04M3kyKj5mQPeCYw");
- NSLog(@"RgB15E09K3t8PySmAQa74IvFlwZYCq");
- NSLog(@"TIJSeQzmq9yG1WEM6V3DRZUt");
- NSLog(@"XpcqTzgxiJNsh7FEwo2OAK5be9a8vRZr6C0WfPY");
- }
- @end
|