| | |
| | | 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 */; }; |
| | |
| | | 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>"; }; |
| | |
| | | 2D56113D20EB0DE80047C941 /* SJKitingViewController.h */, |
| | | 2D56113E20EB0DE80047C941 /* SJKitingViewController.m */, |
| | | 2D56113F20EB0DE80047C941 /* SJKitingViewController.xib */, |
| | | 2D0966BD2125645300491927 /* SJAddVerifiNumberView.h */, |
| | | 2D0966BE2125645300491927 /* SJAddVerifiNumberView.m */, |
| | | 2D0966C021257BCE00491927 /* SJAddVerifiStatusView.h */, |
| | | 2D0966C121257BCE00491927 /* SJAddVerifiStatusView.m */, |
| | | ); |
| | | path = "ä½ç°"; |
| | | sourceTree = "<group>"; |
| | |
| | | 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 */, |
| | |
| | | 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 */, |
| | |
| | | <BreakpointProxy |
| | | BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> |
| | | <BreakpointContent |
| | | shouldBeEnabled = "Yes" |
| | | shouldBeEnabled = "No" |
| | | ignoreCount = "0" |
| | | continueAfterRunningActions = "No" |
| | | scope = "0" |
| | |
| | | shouldBeEnabled = "Yes" |
| | | ignoreCount = "0" |
| | | continueAfterRunningActions = "No" |
| | | filePath = "MIduo/界面/邀请/商品分享/ShonpingShareViewController.m" |
| | | timestampString = "555988233.959499" |
| | | filePath = "MIduo/界面/优惠券/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> |
| | |
| | | shouldBeEnabled = "Yes" |
| | | ignoreCount = "0" |
| | | continueAfterRunningActions = "No" |
| | | filePath = "MIduo/界面/网页视图/商品详情/ButtomCarView.m" |
| | | timestampString = "556013765.121924" |
| | | filePath = "MIduo/界面/动态/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/界面/网页视图/商品详情/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> |
| | |
| | | @property (nonatomic , assign)BOOL isminebound; |
| | | /// æ¯å¦æ¯ç¹å»è´ç©è½¦æè
订å微信ç»å½ç夿 |
| | | @property (nonatomic, assign) BOOL isShopCarWXLogin; |
| | | @property (nonatomic, strong) NSString *alipay_helpUrlString; |
| | | |
| | | + (YTHsharedManger *)startManger; |
| | | |
| | |
| | | |
| | | #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 |
| | |
| | | |
| | | [self customergetalipayaccount]; |
| | | } |
| | | |
| | | } |
| | | - (void)viewWillDisappear:(BOOL)animated{ |
| | | [super viewWillDisappear:animated]; |
| | | [SVProgressHUD dismiss]; |
| | | |
| | | } |
| | | - (void)customergetalipayaccount { |
| | | |
| | | NSMutableDictionary *dic = [[NSMutableDictionary alloc] init]; |
| | |
| | | } |
| | | |
| | | - (IBAction)sureTaped:(UIButton *)sender { |
| | | |
| | | if (self.zhifubaoText.text.length ==0) { |
| | | [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window]; |
| | | [SVProgressHUD showErrorWithStatus:@"请è¾å
¥è´¦å·"]; |
| | |
| | | [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{ |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | - (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. |
| | |
| | | #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; |
| | |
| | | @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; |
| | |
| | | @property (nonatomic, assign) BOOL isHaveDian; |
| | | @property (nonatomic, assign) BOOL isFirstZero; |
| | | |
| | | @property (nonatomic, strong) NSDictionary * alipayBindStateDictionary; |
| | | @end |
| | | |
| | | @implementation IncarnateViewController |
| | |
| | | [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) { |
| | | |
| | |
| | | |
| | | 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); |
| | |
| | | } |
| | | return YES; |
| | | } |
| | | - (SJAddVerifiStatusView *)addVerifiStatusView{ |
| | | if (_addVerifiStatusView) { |
| | | return _addVerifiStatusView; |
| | | } |
| | | _addVerifiStatusView = [[SJAddVerifiStatusView alloc]initWithFrame:CGRectMake(0,0,KScreenW,KScreenH)]; |
| | | return _addVerifiStatusView; |
| | | } |
| | | |
| | | @end |
New file |
| | |
| | | // |
| | | // 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 |
New file |
| | |
| | | // |
| | | // 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 |
New file |
| | |
| | | // |
| | | // 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 |
New file |
| | |
| | | // |
| | | // 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 |
| | |
| | | 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"]]; |