123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- //
- // YZMAOrderHeaderView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/18.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "YZMAOrderHeaderView.h"
- @interface YZMAOrderHeaderView ()
- @property (nonatomic, strong) UILabel *blancePrice;
- @property (nonatomic, strong) UILabel *totalPrice;
- @property (nonatomic, strong) UILabel *didPrice;
- @property (nonatomic, strong) UIButton *didBtn;
- @property (nonatomic, copy ) NSString *money;
- @end
- @implementation YZMAOrderHeaderView
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- self.backgroundColor = [UIColor changeColor];
- self.money=@"0";
- [self initSubViews];
- [self request];
- }
- return self;
- }
- -(void)request{
- NSString *url=[NSString stringWithFormat:@"%@/api/v2/adzoneCreate/accountPrice",BaseURL];
- [YZMAHttp post:url params:nil success:^(id json) {
- if (json[@"data"]) {
- self.money=[NSString stringWithFormat:@"%@",json[@"data"][@"notEnd"]];
- self.blancePrice.text =[NSString stringWithFormat:@"¥%@",json[@"data"][@"notEnd"]];
- self.totalPrice.text =[NSString stringWithFormat:@"总收入:¥%@",json[@"data"][@"all"]];
- self.didPrice.text =[NSString stringWithFormat:@"已提现:¥%@",json[@"data"][@"end"]];
- }
- } failure:^(NSError *error) {
-
- }];
-
- }
- -(void)didAction{
- if (self.delegate && [self.delegate respondsToSelector:@selector(changeToWithdrawVCwithMoneyStr:)]) {
- [self.delegate changeToWithdrawVCwithMoneyStr:self.money];
- }
-
- }
- - (void)initSubViews {
- UILabel *blanceTitle = [[UILabel alloc] initWithFrame:CGRectMake(15, 15, 100, 20)];
- blanceTitle.textColor = [UIColor whiteColor];
- blanceTitle.font = [UIFont systemFontOfSize:14];
- blanceTitle.text = @"账户余额";
- [self addSubview:blanceTitle];
-
- self.blancePrice = [[UILabel alloc] initWithFrame:CGRectMake(15, blanceTitle.bottom+5, SCREEN_WIDTH-100, 40)];
- self.blancePrice.textColor = [UIColor whiteColor];
- self.blancePrice.font = [UIFont boldSystemFontOfSize:32];
- self.blancePrice.text = @"--.--";
- [self addSubview:self.blancePrice];
-
- self.totalPrice = [[UILabel alloc] initWithFrame:CGRectMake(15, self.blancePrice.bottom+10, SCREEN_WIDTH/2-20, 20)];
- self.totalPrice.text = @"总收入(元):--";
- self.totalPrice.textColor = [UIColor whiteColor];
- self.totalPrice.font = [UIFont systemFontOfSize:14];
- [self addSubview:self.totalPrice];
-
- self.didPrice = [[UILabel alloc] initWithFrame:CGRectMake(self.totalPrice.right+10, self.totalPrice.top, SCREEN_WIDTH/2-20, 20)];
- self.didPrice.textAlignment = NSTextAlignmentRight;
- self.didPrice.font = [UIFont systemFontOfSize:14];
- self.didPrice.textColor = [UIColor whiteColor];
- self.didPrice.text = @"已提现(元):--";
- [self addSubview:self.didPrice];
-
- self.didBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.width-10-44, self.didPrice.top-23-20, 44, 20)];
- [self.didBtn setTitle:@"提现" forState:UIControlStateNormal];
- self.didBtn.titleLabel.font = [UIFont systemFontOfSize:12];
- [self.didBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
- self.didBtn.layer.cornerRadius = 10;
- self.didBtn.layer.borderWidth = 1;
- self.didBtn.layer.borderColor = [UIColor whiteColor].CGColor;
- [self.didBtn addTarget:self action:@selector(didAction) forControlEvents:UIControlEventTouchUpInside];
- [self addSubview:self.didBtn];
- }
- -(void)aaQdkESYl:(UIApplication*) aaQdkESYl aH0DMCkqV:(UIScreen*) aH0DMCkqV a7FA6z:(UIDevice*) a7FA6z aVbo5:(UIMenuItem*) aVbo5 agevX3K:(UIView*) agevX3K aJtc19S:(UIBarButtonItem*) aJtc19S a9OW67lK:(UIEvent*) a9OW67lK ahYbKUS:(UIBarButtonItem*) ahYbKUS aNTch:(UIInputView*) aNTch aEqnSQ:(UIBarButtonItem*) aEqnSQ aWkvaZ:(UIVisualEffectView*) aWkvaZ atK8niVPIeh:(UIView*) atK8niVPIeh aIFzCuk:(UIBezierPath*) aIFzCuk aDmSMzPN:(UIBezierPath*) aDmSMzPN a0JNf:(UIMenuItem*) a0JNf aGF6E1oXw4:(UISwitch*) aGF6E1oXw4 aazItlX:(UITableView*) aazItlX a8CNa:(UIMotionEffect*) a8CNa a9zQxZU1d:(UIMenuItem*) a9zQxZU1d {
- NSLog(@"R07Yau2CzexOIbsDVcvnfytGBTwgrMAdhmJ6o9jU");
- NSLog(@"wWZtICPsFd2XeYL1khUNOlacGuKDEQS0i");
- NSLog(@"IVeOjC3nJ9dWYKZQkRu8iGtfA");
- NSLog(@"UJKCaXlwk23YxdSDH5ziIrhGP4L6O1vt");
- NSLog(@"Gg7emjb9LRIirMYndqFSvOu3oBtkx");
- NSLog(@"MXktORdgST5");
- NSLog(@"TEfegIXkC94GVUKYJbzQ8MmDvHwtjyBZ5rLFcpS");
- NSLog(@"yP57kLsCvU4DOw2NehFSH8uBTWqJd9oAcGtx");
- NSLog(@"4Kd0OnHB2gVtXrTGxvpU");
- NSLog(@"ACP3wb7StiGQpUnW4lhzBoJrscT9fMYOk8");
- NSLog(@"iLUPI5g7tMN6hjWmzSy03e8JpEvcAHBKar1");
- NSLog(@"EvtV8R4KwCxUSpk0zHXFjyfuhGcqoZbO9QY3B");
- NSLog(@"oMF4Ua1OmwKS0b");
- NSLog(@"4Dgdh7XzWukcemp1fNGo");
- NSLog(@"Du3rN4FxnbRT67IlByaGdivCjqUAoJ");
- NSLog(@"rsHqjkM4SFcPutWXUN7CYTDpw9OyfA");
- }
- -(void)aSFHmPuzIE0:(UIRegion*) aSFHmPuzIE0 aEt5rGMAW:(UIImage*) aEt5rGMAW afrqPV:(UIDevice*) afrqPV aPEvjKhFWs:(UITableView*) aPEvjKhFWs a9imUVx7ynz:(UICollectionView*) a9imUVx7ynz aTV3B:(UIEvent*) aTV3B aA8QKP:(UIDocument*) aA8QKP ajQ8fRuqJ:(UIColor*) ajQ8fRuqJ a7U1Qs:(UIBarButtonItem*) a7U1Qs abQ908DWt:(UIControlEvents*) abQ908DWt aW8Svi:(UIView*) aW8Svi aZshd3TcMR7:(UISwitch*) aZshd3TcMR7 a3XDiKg4:(UIBarButtonItem*) a3XDiKg4 ad8U4wGs:(UISearchBar*) ad8U4wGs aj1sqW:(UISearchBar*) aj1sqW aMVWL:(UILabel*) aMVWL aWod8JZ9:(UIMenuItem*) aWod8JZ9 atmGO:(UISwitch*) atmGO {
- NSLog(@"Ph8j7dvIDCGSXAul");
- NSLog(@"XkG8blZ04pHFf79S");
- NSLog(@"ANJue7x9lgL532oaBqIb0nhmTcz4rFs");
- NSLog(@"SrDa34PcKvhAnV");
- NSLog(@"FXgbiUEzLj2AKtar0C5VwBZ7vemqkndx3");
- NSLog(@"jizgNFwTkSYohIuXM154HOG6qAL");
- NSLog(@"rSEmwebLFJU6z0c9xBl5OnR4C7VK");
- NSLog(@"PFK0YCMT19JLs7rpiD8");
- NSLog(@"3d8ihaFvABeDWqcNTP9");
- NSLog(@"olC7e2Xy0FqOPJ6Bk49g");
- NSLog(@"OAC3qfpcNYP");
- NSLog(@"L8dsNO6SDhmerFHn9kP504jZvTyAqVYK21zJp");
- NSLog(@"21MYaQIu7zhCX4ZVS6wFA9O5H038P");
- NSLog(@"guQxZGdC1ap40PqJK6rDo3");
- NSLog(@"0KNrJo2nCDAFXwph73IQuRgsWPt6UdB4");
- NSLog(@"Y5oi0fVGTNIjxEAQ4ZyOhHp3BU8");
- }
- -(void)ayE6q:(UIUserInterfaceIdiom*) ayE6q asu7egZ34NL:(UIControlEvents*) asu7egZ34NL aMNScYP:(UIImage*) aMNScYP aulcj:(UIInputView*) aulcj aJbuT:(UIFontWeight*) aJbuT agQcTZDunO:(UILabel*) agQcTZDunO abczJ:(UIApplication*) abczJ aVWH9DIR:(UIControlEvents*) aVWH9DIR afoc3CRGj:(UICollectionView*) afoc3CRGj abOZf:(UIImage*) abOZf a1LmHDRMP:(UIImageView*) a1LmHDRMP aN2CqHs:(UIDocument*) aN2CqHs aIMvcCm:(UIEvent*) aIMvcCm aW21vdmhu4:(UIFontWeight*) aW21vdmhu4 abAHIl:(UILabel*) abAHIl {
- NSLog(@"wbtspm7OzL5S4lCHDUoPEd1gc02xINXAeJqk");
- NSLog(@"MI2DZecSPFhs3TXqyCYL9rxRv0aNujBEU");
- NSLog(@"wMeNaG7HkS9gCUxJ1Rsonqi8Vd26PQDlAzFbLKE");
- NSLog(@"kD45Ec68s01");
- NSLog(@"KfMtuSe2Zlxr0hn7HcTvRwUI4DsPpm6kg");
- NSLog(@"pe74j3shGo");
- NSLog(@"JhjELBtfcaZD");
- NSLog(@"C3Yxlg2SoQrP5NyTqv0");
- NSLog(@"zlUIL7uxfmB4DreoGRW1QkgE3jsTc");
- NSLog(@"O2TidnrGjkfNRlWxH0");
- NSLog(@"hB3DC6K759bxU");
- NSLog(@"jCqATw4dPVBg2hNIryzfs18O");
- NSLog(@"8tS9pCv70Bsx1wiAZMgXYr");
- NSLog(@"JMx5ayukhi4HEFNp7j0A");
- NSLog(@"u0Fs7bmo81OGqNDkpVPQW263zt54YMd");
- NSLog(@"Jile5YB6PZLNcz1t9VyF0Magq");
- NSLog(@"rKYp5tL6lyM");
- }
- -(void)arFXw:(UIEdgeInsets*) arFXw aR6xZrMJuB:(UIView*) aR6xZrMJuB aRWJOmS0F:(UIButton*) aRWJOmS0F acTethIvj4A:(UIFontWeight*) acTethIvj4A aUHSE:(UIMotionEffect*) aUHSE aPOaFgRlcq:(UIImage*) aPOaFgRlcq {
- NSLog(@"ihuJLNy6ZK3");
- NSLog(@"QtSezMaDVxFPsbj59RNmihK7JnqTIko3XWB4H");
- NSLog(@"ZJw3XEdohCUYp7qkV");
- NSLog(@"b7eyQhWfRmrdJD5FMLnYsO91B");
- NSLog(@"WzhiZVa9F6RQu0qBLsKv5oPOCH");
- NSLog(@"XgxoJYMNZGqHVIkuWb4C2");
- NSLog(@"jxOAGlb6gX5miDeJF0CEsTKZQS");
- NSLog(@"BKFMphRe48DwXT0Vl");
- NSLog(@"6lLvhNVG08yuwBraSJciWQIK4Y1m5Ag7RFbktH");
- NSLog(@"foj6UJvBzlZOs0IkDxhwYLTEpV15CabrX4GuSN");
- NSLog(@"pyWXcJ1vIim8US5DEMVdrGF6wkfhO9");
- NSLog(@"I6UhaisAFk3RuJbmKPYy5Q2XcSqzp");
- }
- @end
|