1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117 |
- //
- // RenGouViewController.m
- // upAPP
- //
- // Created by 樊亮 on 2020/4/3.
- // Copyright © 2020 youke. All rights reserved.
- //
- #import "NewListVC.h"
- #import "ACMediaFrame.h"
- #import "UIView+ACMediaExt.h"
- #import "YDFlexoView.h"
- #import "RadioButton.h"
- #import "DatePickerView.h"
- #import "OSSImageUploader.h"
- #import "ProjectControlsVC.h"
- #import "UIExPickerView.h"
- #import "yetaiModel.h"
- @interface NewListVC ()<UIScrollViewDelegate,UITextViewDelegate,UITextFieldDelegate,pickerDelegate>
- {
- CGFloat _mediaH;
- ACSelectMediaView *_mediaView;
- }
- @property(nonatomic,strong)UILabel *titleLab;
- @property(nonatomic,strong)UITableView *tab;
- @property(nonatomic,strong)NSMutableArray *imageArr;
- @property(nonatomic,strong)UIButton *sendBtn;
- @property(nonatomic,strong)UITextView *describeText;
- @property(nonatomic,strong)UILabel *lbl;
- @property(nonatomic,strong)NSArray *sectionArr;
- @property(nonatomic,strong)NSArray *kehuInfoArr;
- @property(nonatomic,strong)NSArray *projectInfoArr;
- @property(nonatomic,strong)NSArray *contractInfoArr;
- @property(nonatomic,strong)UITextField *nameField;
- @property(nonatomic,strong)UITextField *phoneField;
- @property(nonatomic,strong)UITextField *numberField;
- @property(nonatomic,strong)UITextField *positionField;
- @property(nonatomic,strong)UITextField *mianjiField;
- @property(nonatomic,strong)UILabel *ProjectLab;
- @property(nonatomic,strong)UITextField *SerialField;
- @property(nonatomic,strong)UILabel *dateLab;
- @property(nonatomic,strong)UITextField *typeField;
- @property(nonatomic,strong)UITextField *priceField;
- @property(nonatomic,strong)UITextField *dateField;
- @property(nonatomic,strong)UITextField *areaField;
- @property(nonatomic,strong)UIButton *dateBtn;
- @property(nonatomic,strong)UIScrollView *scrollView;
- @property(nonatomic,strong)UIView *contentView;
- @property(nonatomic,strong)UIView *view1;
- @property(nonatomic,strong)UILabel *titleLab1;
- @property(nonatomic,strong)UILabel *yetaiLLL;//业态
- @property(nonatomic,strong)UIButton *yetaiBtn;//业态
- @property (nonatomic,strong) DatePickerView *datePicker;
- @property (nonatomic,strong) UIExPickerView *yetaiPicker;
- @property (strong, nonatomic) HttpRequestManger *sessionManager;
- @property(nonatomic,strong)NSMutableArray *uploadImages;
- @property(nonatomic,strong)NSMutableArray *dataArr;
- @property(nonatomic,strong)NSMutableArray *dataA;
- @property(nonatomic,strong)NSMutableArray *dataB;
- @property(nonatomic,strong)NSString *yetaiStr;//业态字段
- @property(nonatomic,strong)NSString *yetaiNum;//业态对应value
- @end
- @implementation NewListVC
- - (HttpRequestManger*) sessionManager{
- if (!_sessionManager) {
- _sessionManager = [[HttpRequestManger alloc]init];
- }
- return _sessionManager;
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self.navigationView removeAllLeftButton];
-
- self.view.backgroundColor = [UIColor colorWithHexValue:0xF7F8FA];
-
- _titleLab = [[UILabel alloc]init];
-
- _titleLab.frame = CGRectMake(0,0, kGScreenWidth-60, 30);
- if([_typeString isEqualToString:@"待认购"]){
-
- _titleLab.text = @"录认购";
-
- }else{
-
- _titleLab.text = @"录意向";
- }
- [self.navigationView addTitleView:_titleLab];
-
- kWeakSelf(self);
-
- [self.navigationView addLeftButtonWithImage:[UIImage imageNamed:@"btn_back"] clickCallBack:^(UIView *view) {
-
- [weakself.navigationController popViewControllerAnimated:YES];
-
- }];
-
- [self loadDate];
- [self setUI];
-
- }
- -(void)setUI{
- _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, NaviHeight, kGScreenWidth, kGScreenHeight -NaviHeight -70)];
- _scrollView.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- _scrollView.contentSize = CGSizeMake(kGScreenWidth, kGScreenHeight +150);
- _scrollView.scrollEnabled = YES;//控制控件是否能滚动
- _scrollView.showsHorizontalScrollIndicator = NO;//水平方向的滚动指示
- _scrollView.bounces = YES;
- [self.view addSubview:_scrollView];
-
- UIView *bottomView = [[UIView alloc]initWithFrame:CGRectMake(15, kGScreenHeight -70, kGScreenWidth-30, 50)];
- bottomView.backgroundColor = [UIColor colorWithHexValue:0x64ABFF];
- [self.view addSubview:bottomView];
- _sendBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- _sendBtn.frame = CGRectMake(0, 0, kGScreenWidth-30, 50);
- [_sendBtn setTitle:@"提交" forState:UIControlStateNormal];
- _sendBtn.backgroundColor = [UIColor colorWithHexValue:0x64ABFF];
- [_sendBtn setTintColor:[UIColor whiteColor]];
- [_sendBtn addTarget:self action:@selector(buttonEvent:) forControlEvents:UIControlEventTouchUpInside];
- [bottomView addSubview:_sendBtn];
-
- if([_typeString isEqualToString:@"待认购"]){
- _sectionArr = @[@"认购客户信息",@"认购信息"];
- }else{
- _sectionArr = @[@"认购客户信息",@"意向信息"];
- }
- _kehuInfoArr = @[@"品牌名称:",@"客户姓名:",@"联系方式:",@"公司职位:"];
- //商铺号 业态 面积
- _projectInfoArr =@[@"项目名称:",@"商铺号:",@"意向业态:",@"意向面积:",@"意向价格:",@"认购日期:",@"意向总价:"];
-
- UILabel *titleLa1 = [[UILabel alloc]init];
- titleLa1.textColor = [UIColor blackColor];
- titleLa1.font = TextFont(16.5);
- titleLa1.text = _sectionArr[0];
- [_scrollView addSubview:titleLa1];
-
- [titleLa1 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(120, 15));
- make.left.equalTo(_scrollView.mas_left).offset(15);
- make.top.equalTo(_scrollView.mas_top).offset(15);
- }];
- UIView *view1 =[[UIView alloc]initWithFrame:CGRectMake(0, 45, kGScreenWidth, 180)];
- view1.backgroundColor = [UIColor whiteColor];
- [_scrollView addSubview:view1];
-
- UIImageView *xingImage = [[UIImageView alloc]init];
- xingImage.image = [UIImage imageNamed:@"redxing"];
- [view1 addSubview:xingImage];
- [xingImage mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view1.mas_left).offset(15);
- make.top.equalTo(view1.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *titleLa2 = [[UILabel alloc]init];
- titleLa2.textColor = [UIColor blackColor];
- titleLa2.font = TextFont(15);
- titleLa2.textAlignment = NSTextAlignmentRight;
- [view1 addSubview:titleLa2];
- titleLa2.text = _kehuInfoArr[0];
- [titleLa2 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage.mas_right).offset(3);
- make.top.equalTo(view1.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _nameField = [[UITextField alloc]init];
- _nameField.placeholder =@"请输入品牌名称";
- _nameField.text = self.brandStr;
- _nameField.textAlignment = NSTextAlignmentLeft;
- _nameField.textColor = [UIColor blackColor];
-
- _nameField.font = TextFont(15);
- [view1 addSubview:_nameField];
- [_nameField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 20));
- make.left.equalTo(titleLa2.mas_right).offset(18);
- make.top.equalTo(view1.mas_top).offset(13);
- }];
-
- UIView *line1 = [[UIView alloc]init];
- line1.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view1 addSubview:line1];
- [line1 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view1.mas_left);
- make.top.equalTo(titleLa2.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth, 0.8));
-
- }];
- UIImageView *xingImage1 = [[UIImageView alloc]init];
- xingImage1.image = [UIImage imageNamed:@"redxing"];
- [view1 addSubview:xingImage1];
- [xingImage1 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view1.mas_left).offset(15);
- make.top.equalTo(line1.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *titleLa3 = [[UILabel alloc]init];
- titleLa3.textColor = [UIColor blackColor];
- titleLa3.font = TextFont(15);
- titleLa3.textAlignment = NSTextAlignmentRight;
- [view1 addSubview:titleLa3];
- titleLa3.text = _kehuInfoArr[1];
-
- [titleLa3 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage1.mas_right).offset(3);
- make.top.equalTo(line1.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _phoneField = [[UITextField alloc]init];
- _phoneField.placeholder =@"请输入客户姓名";
- _phoneField.text = _name;
- _phoneField.textAlignment = NSTextAlignmentLeft;
- _phoneField.textColor = [UIColor blackColor];
- _phoneField.keyboardType = UIKeyboardTypeNumberPad;
- _phoneField.delegate =self;
- _phoneField.font = TextFont(15);
- [view1 addSubview:_phoneField];
- [_phoneField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 30));
- make.left.equalTo(titleLa3.mas_right).offset(18);
- make.top.equalTo(line1.mas_top).offset(8);
- }];
-
- [self setUpPhoneTextfield];
- UIView *line2 = [[UIView alloc]init];
- line2.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view1 addSubview:line2];
- [line2 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view1.mas_left);
- make.top.equalTo(titleLa3.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth, 1));
-
- }];
-
- UIImageView *xingImage2 = [[UIImageView alloc]init];
- xingImage2.image = [UIImage imageNamed:@"redxing"];
- [view1 addSubview:xingImage2];
- [xingImage2 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view1.mas_left).offset(15);
- make.top.equalTo(line2.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *titleLa4 = [[UILabel alloc]init];
- titleLa4.textColor = [UIColor blackColor];
- titleLa4.font = TextFont(15);
- titleLa4.textAlignment = NSTextAlignmentRight;
- [view1 addSubview:titleLa4];
- titleLa4.text = _kehuInfoArr[2];
-
- [titleLa4 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage2.mas_right).offset(3);
- make.top.equalTo(line2.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _numberField = [[UITextField alloc]init];
- _numberField.placeholder =@"请输入联系方式";
- _numberField.textAlignment = NSTextAlignmentLeft;
- _numberField.textColor = [UIColor blackColor];
- _numberField.font = TextFont(15);
- [view1 addSubview:_numberField];
- [_numberField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 30));
- make.left.equalTo(titleLa3.mas_right).offset(18);
- make.top.equalTo(line2.mas_top).offset(8);
- }];
- //-----------------------
-
- UIView *lineL = [[UIView alloc]init];
- lineL.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view1 addSubview:lineL];
- [lineL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view1.mas_left);
- make.top.equalTo(titleLa4.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth, 1));
-
- }];
-
- UIImageView *signImg = [[UIImageView alloc]init];
- signImg.image = [UIImage imageNamed:@"redxing"];
- [view1 addSubview:signImg];
- [signImg mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view1.mas_left).offset(15);
- make.top.equalTo(lineL.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *titleL = [[UILabel alloc]init];
- titleL.textColor = [UIColor blackColor];
- titleL.font = TextFont(15);
- titleL.textAlignment = NSTextAlignmentRight;
- [view1 addSubview:titleL];
- titleL.text = _kehuInfoArr[3];
-
- [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(signImg.mas_right).offset(3);
- make.top.equalTo(lineL.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _positionField = [[UITextField alloc]init];
- _positionField.placeholder =@"请输入公司职位";
- _positionField.textAlignment = NSTextAlignmentLeft;
- _positionField.textColor = [UIColor blackColor];
- _positionField.font = TextFont(15);
- [view1 addSubview:_positionField];
- [_positionField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 30));
- make.left.equalTo(titleL.mas_right).offset(18);
- make.top.equalTo(lineL.mas_top).offset(8);
- }];
-
-
-
-
-
- //++++++++++++++++++++++++
-
-
- UILabel *titleLa5 = [[UILabel alloc]init];
- titleLa5.textColor = [UIColor blackColor];
- titleLa5.font = TextFont(16.5);
- titleLa5.text = _sectionArr[1];
- [_scrollView addSubview:titleLa5];
- [titleLa5 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(120, 15));
- make.left.equalTo(_scrollView.mas_left).offset(15);
- make.top.equalTo(view1.mas_bottom).offset(15);
- }];
-
- UIView *view2 =[[UIView alloc]init];
-
- view2.backgroundColor = [UIColor whiteColor];
-
- [_scrollView addSubview:view2];
-
- [view2 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth, 320));
- make.left.equalTo(_scrollView.mas_left);
- make.top.equalTo(titleLa5.mas_bottom).offset(15);
- }];
- //项目名称
- UIImageView *xingImage3 = [[UIImageView alloc]init];
- xingImage3.image = [UIImage imageNamed:@"redxing"];
- [view2 addSubview:xingImage3];
- [xingImage3 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left).offset(15);
- make.top.equalTo(view2.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *titleLa6 = [[UILabel alloc]init];
- titleLa6.textColor = [UIColor blackColor];
- titleLa6.font = TextFont(15);
- titleLa6.textAlignment = NSTextAlignmentRight;
- [view2 addSubview:titleLa6];
- titleLa6.text = _projectInfoArr[0];
-
- [titleLa6 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage3.mas_right).offset(3);
- make.top.equalTo(view2.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
- _ProjectLab = [[UILabel alloc]init];
- _ProjectLab.textColor = [UIColor blackColor];
- _ProjectLab.font = TextFont(15);
- _ProjectLab.textAlignment = NSTextAlignmentLeft;
- [view2 addSubview:_ProjectLab];
- _ProjectLab.text = _projectName;
-
- [_ProjectLab mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 20));
- make.left.equalTo(titleLa6.mas_right).offset(18);
- make.top.equalTo(view2.mas_top).offset(13);
- }];
-
- UIView *line3 = [[UIView alloc]init];
- line3.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view2 addSubview:line3];
- [line3 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left);
- make.top.equalTo(titleLa6.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth,1));
-
- }];
- //商铺号
- UIImageView *xingImage4 = [[UIImageView alloc]init];
- xingImage4.image = [UIImage imageNamed:@"redxing"];
- [view2 addSubview:xingImage4];
- [xingImage4 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left).offset(15);
- make.top.equalTo(line3.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *titleLa7 = [[UILabel alloc]init];
- titleLa7.textColor = [UIColor blackColor];
- titleLa7.font = TextFont(15);
- titleLa7.textAlignment = NSTextAlignmentRight;
- [view2 addSubview:titleLa7];
- titleLa7.text = _projectInfoArr[1];
-
- [titleLa7 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage4.mas_right).offset(3);
- make.top.equalTo(line3.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _SerialField = [[UITextField alloc]init];
- _SerialField.placeholder =@"请输入商铺号";
- _SerialField.textAlignment = NSTextAlignmentLeft;
- _SerialField.textColor = [UIColor blackColor];
- _SerialField.font = TextFont(15);
- [view2 addSubview:_SerialField];
- [_SerialField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 30));
- make.left.equalTo(titleLa7.mas_right).offset(18);
- make.top.equalTo(line3.mas_top).offset(8);
- }];
-
- UIView *line33 = [[UIView alloc]init];
- line33.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view2 addSubview:line33];
- [line33 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left);
- make.top.equalTo(titleLa7.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth,1));
-
- }];
- //新增 业态
- //++++++++++++[@"项目名称:",@"商铺号:",@"业态:",@"面积:",@"价格:",@"认购日期:",@"总价:"];
- UIImageView *yetaiImage = [[UIImageView alloc]init];
- yetaiImage.image = [UIImage imageNamed:@"redxing"];
- [view2 addSubview:yetaiImage];
- [yetaiImage mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left).offset(15);
- make.top.equalTo(line33.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *yetaiLbl = [[UILabel alloc]init];
- yetaiLbl.textColor = [UIColor blackColor];
- yetaiLbl.font = TextFont(15);
- yetaiLbl.textAlignment = NSTextAlignmentRight;
- [view2 addSubview:yetaiLbl];
- yetaiLbl.text = _projectInfoArr[2];
-
- [yetaiLbl mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(yetaiImage.mas_right).offset(3);
- make.top.equalTo(line33.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _yetaiLLL = [[UILabel alloc]init];
- _yetaiLLL.textColor = [UIColor colorWithHexValue:0x898989];
- _yetaiLLL.font = TextFont(15);
- _yetaiLLL.textAlignment = NSTextAlignmentLeft;
- [view2 addSubview:_yetaiLLL];
- _yetaiLLL.text = @"请选择业态";
-
- [_yetaiLLL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(100, 30));
- make.left.equalTo(yetaiLbl.mas_right).offset(18);
- make.top.equalTo(line33.mas_top).offset(8);
- }];
-
-
- UIView *yetailine = [[UIView alloc]init];
- yetailine.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view2 addSubview:yetailine];
- [yetailine mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left);
- make.top.equalTo(yetaiLbl.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth,1));
-
- }];
-
- _yetaiBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- [_yetaiBtn setBackgroundImage:[UIImage imageNamed:@"zhankai1-copy"] forState:UIControlStateNormal];
- [_yetaiBtn addTarget:self action:@selector(yetaiClick:) forControlEvents:UIControlEventTouchUpInside];
- [view2 addSubview:_yetaiBtn];
- [_yetaiBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(22, 22));
- make.left.equalTo(_yetaiLLL.mas_right).offset(8);
- make.top.equalTo(line33.mas_top).offset(10);
-
- }];
-
- //----------------------
-
-
-
-
- //新增面积
- //++++++++++++++++++++++
- UIImageView *mianjiImg = [[UIImageView alloc]init];
- mianjiImg.image = [UIImage imageNamed:@"redxing"];
- [view2 addSubview:mianjiImg];
- [mianjiImg mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left).offset(15);
- make.top.equalTo(yetailine.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *mianjiLbl = [[UILabel alloc]init];
- mianjiLbl.textColor = [UIColor blackColor];
- mianjiLbl.font = TextFont(15);
- mianjiLbl.textAlignment = NSTextAlignmentRight;
- [view2 addSubview:mianjiLbl];
- mianjiLbl.text = _projectInfoArr[3];
-
- [mianjiLbl mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(mianjiImg.mas_right).offset(3);
- make.top.equalTo(yetailine.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _mianjiField = [[UITextField alloc]init];
- _mianjiField.placeholder =@"请输入面积";
- _mianjiField.textAlignment = NSTextAlignmentLeft;
- _mianjiField.textColor = [UIColor blackColor];
- _mianjiField.font = TextFont(15);
- [view2 addSubview:_mianjiField];
- [_mianjiField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 30));
- make.left.equalTo(mianjiLbl.mas_right).offset(18);
- make.top.equalTo(yetailine.mas_top).offset(8);
- }];
-
- UIView *mianjiLine = [[UIView alloc]init];
- mianjiLine.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view2 addSubview:mianjiLine];
- [mianjiLine mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left);
- make.top.equalTo(mianjiLbl.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth,1));
-
- }];
-
-
- //----------------------
-
- //价格
- UIImageView *xingImage5 = [[UIImageView alloc]init];
- xingImage5.image = [UIImage imageNamed:@"redxing"];
- [view2 addSubview:xingImage5];
- [xingImage5 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left).offset(15);
- make.top.equalTo(mianjiLine.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
- UILabel *titleLa8 = [[UILabel alloc]init];
- titleLa8.textColor = [UIColor blackColor];
- titleLa8.font = TextFont(15);
- titleLa8.textAlignment = NSTextAlignmentRight;
- [view2 addSubview:titleLa8];
- titleLa8.text = _projectInfoArr[4];
- [titleLa8 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage5.mas_right).offset(3);
- make.top.equalTo(mianjiLine.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _priceField = [[UITextField alloc]init];
- _priceField.placeholder =@"请输入价格";
- _priceField.textAlignment = NSTextAlignmentLeft;
- _priceField.textColor = [UIColor blackColor];
- _priceField.font = TextFont(15);
- [view2 addSubview:_priceField];
- [_priceField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 30));
- make.left.equalTo(titleLa8.mas_right).offset(18);
- make.top.equalTo(mianjiLine.mas_top).offset(8);
- }];
-
- UIView *line4 = [[UIView alloc]init];
- line4.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view2 addSubview:line4];
- [line4 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left);
- make.top.equalTo(titleLa8.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth,1));
-
- }];
-
- //认购日期
-
- UIImageView *xingImage6 = [[UIImageView alloc]init];
- xingImage6.image = [UIImage imageNamed:@"redxing"];
- [view2 addSubview:xingImage6];
- [xingImage6 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left).offset(15);
- make.top.equalTo(line4.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
-
- UILabel *titleLa9 = [[UILabel alloc]init];
- titleLa9.textColor = [UIColor blackColor];
- titleLa9.font = TextFont(15);
- titleLa9.textAlignment = NSTextAlignmentRight;
- [view2 addSubview:titleLa9];
- titleLa9.text = _projectInfoArr[5];
- [titleLa9 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage6.mas_right).offset(3);
- make.top.equalTo(line4.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _dateLab = [[UILabel alloc]init];
- _dateLab.textColor = [UIColor colorWithHexValue:0x898989];
- _dateLab.font = TextFont(15);
- _dateLab.text = @"请选择";
- _dateLab.textAlignment = NSTextAlignmentLeft;
- [view2 addSubview:_dateLab];
- [_dateLab mas_makeConstraints:^(MASConstraintMaker *make) {
-
- make.size.mas_equalTo(CGSizeMake(100, 30));
- make.left.equalTo(titleLa9.mas_right).offset(18);
- make.top.equalTo(line4.mas_top).offset(8);
- }];
- _dateBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- [_dateBtn setBackgroundImage:[UIImage imageNamed:@"icon_date"] forState:UIControlStateNormal];
- [_dateBtn addTarget:self action:@selector(dateClick:) forControlEvents:UIControlEventTouchUpInside];
- [view2 addSubview:_dateBtn];
- [_dateBtn mas_makeConstraints:^(MASConstraintMaker *make) {
-
- make.size.mas_equalTo(CGSizeMake(22, 22));
- make.left.equalTo(_dateLab.mas_right).offset(8);
- make.top.equalTo(line4.mas_top).offset(10);
-
- }];
- UIView *line5 = [[UIView alloc]init];
- line5.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view2 addSubview:line5];
- [line5 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left);
- make.top.equalTo(titleLa9.mas_bottom).offset(15);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth,1));
-
- }];
-
- UIImageView *xingImage7 = [[UIImageView alloc]init];
- xingImage7.image = [UIImage imageNamed:@"redxing"];
- [view2 addSubview:xingImage7];
- [xingImage7 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left).offset(15);
- make.top.equalTo(line5.mas_top).offset(18);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
-
- UILabel *titleLa10 = [[UILabel alloc]init];
- titleLa10.textColor = [UIColor blackColor];
- titleLa10.font = TextFont(15);
- titleLa10.textAlignment = NSTextAlignmentRight;
- [view2 addSubview:titleLa10];
- titleLa10.text = _projectInfoArr[6];
- [titleLa10 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(xingImage7.mas_right).offset(3);
- make.top.equalTo(line5.mas_top).offset(15);
- make.size.mas_equalTo(CGSizeMake(70, 15));
- }];
-
- _areaField = [[UITextField alloc]init];
- _areaField.placeholder =@"请输入房款总额";
- _areaField.textAlignment = NSTextAlignmentLeft;
- _areaField.textColor = [UIColor blackColor];
- _areaField.font = TextFont(15);
- [view2 addSubview:_areaField];
- [_areaField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth - 150, 30));
- make.left.equalTo(titleLa10.mas_right).offset(18);
- make.top.equalTo(line5.mas_top).offset(8);
- }];
-
- UIView *line6 = [[UIView alloc]init];
- line6.backgroundColor = [UIColor colorWithHexValue:0xf7f8fa];
- [view2 addSubview:line6];
- [line6 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view2.mas_left);
- make.top.equalTo(view2.mas_bottom).offset(-1);
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth,1));
-
- }];
- UIView *view4 =[[UIView alloc]init];
-
- view4.backgroundColor = [UIColor whiteColor];
-
- [_scrollView addSubview:view4];
-
- [view4 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth, 188));
- make.left.equalTo(_scrollView.mas_left);
- make.top.equalTo(view2.mas_bottom);
-
- }];
-
-
-
- UIImageView *xingImage9 = [[UIImageView alloc]init];
- xingImage9.image = [UIImage imageNamed:@"redxing"];
- [view4 addSubview:xingImage9];
- [xingImage9 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(view4.mas_left).offset(15);
- make.top.equalTo(view4.mas_top).offset(12);
- make.size.mas_equalTo(CGSizeMake(8, 8));
-
- }];
-
-
- ACSelectMediaView *mediaView = [[ACSelectMediaView alloc] initWithFrame:CGRectMake(22, 0, [[UIScreen mainScreen] bounds].size.width -22, 1)];
- mediaView.type = ACMediaTypePhotoAndCamera;
- mediaView.maxImageSelected = 6;
- mediaView.uploadStr =@"上传凭证:";
- mediaView.backgroundColor = [UIColor whiteColor];
- mediaView.naviBarBgColor = [UIColor redColor];
- mediaView.rowImageCount = 3;
- mediaView.lineSpacing = 20;
- mediaView.interitemSpacing = 20;
- mediaView.sectionInset = UIEdgeInsetsMake(20, 20, 20, 20);
- [mediaView observeViewHeight:^(CGFloat mediaHeight) {
- _mediaH = mediaHeight;
- if (mediaHeight > 200) {
- _scrollView.contentSize = CGSizeMake(kGScreenWidth, kGScreenHeight +250);
- }else{
- _scrollView.contentSize = CGSizeMake(kGScreenWidth, kGScreenHeight +150);
-
- }
- [view4 mas_updateConstraints:^(MASConstraintMaker *make) {
-
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth, mediaHeight));
- make.left.equalTo(_scrollView.mas_left);
- make.top.equalTo(view2.mas_bottom);
- }];
- }];
- [mediaView observeSelectedMediaArray:^(NSArray<ACMediaModel *> *list) {
- _imageArr = [NSMutableArray array];
- for (ACMediaModel *model in list) {
- UIImage *data = model.image;
- [_imageArr addObject:data];
- }
-
- }];
-
- _mediaView = mediaView;
-
- [view4 addSubview:_mediaView];
-
- UIView *view5 =[[UIView alloc]init];
-
- view5.backgroundColor = [UIColor whiteColor];
-
- [_scrollView addSubview:view5];
-
- [view5 mas_makeConstraints:^(MASConstraintMaker *make) {
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth, 155));
- make.left.equalTo(_scrollView.mas_left);
- make.top.equalTo(view4.mas_bottom).offset(1);
-
- }];
-
- UILabel *titleLa13 = [[UILabel alloc]initWithFrame:CGRectMake(15, 15, 60, 15)];
-
- titleLa13.textColor = [UIColor blackColor];
-
- titleLa13.font = TextFont(15);
- [view5 addSubview:titleLa13];
- titleLa13.text = @"备注:";
-
- _describeText =[[UITextView alloc]init];
-
- _describeText.textColor = [UIColor blackColor];
-
- _describeText.font = TextFont(15);
-
- _describeText.textAlignment = NSTextAlignmentLeft;
-
- _describeText.backgroundColor = [UIColor colorWithHexValue:0xF7F8FA];
- _describeText.textContainerInset = UIEdgeInsetsMake(20, 20, 20, 20);
- _describeText.editable = YES;
- [view5 addSubview:_describeText];
- [_describeText mas_makeConstraints:^(MASConstraintMaker *make) {
-
- make.size.mas_equalTo(CGSizeMake(kGScreenWidth-30, 100));
- make.left.equalTo(view5.mas_left).offset(15);
- make.top.equalTo(titleLa13.mas_bottom).offset(15);
-
- }];
- _lbl = [[UILabel alloc]initWithFrame:CGRectMake(20, 20, 200, 20)];
- _lbl.enabled = NO;
- _lbl.text = @"请填写备注...";
- _lbl.font = [UIFont systemFontOfSize:15];
- _lbl.textColor = [[UIColor colorWithHexValue:0xD3D6DD]colorWithAlphaComponent:0.5];
- [_describeText addSubview:_lbl];
- _describeText.delegate = self;
- // Do any additional setup after loading the view.
- }
- -(void)loadDate{
- kWeakSelf(self);
- NSMutableDictionary *dic =[NSMutableDictionary dictionary];
-
- [self.sessionManager sendPostHttpRequestWithUrl:getBusinessYeTai params:dic bodyBlock:^(id<AFMultipartFormData> formData) {
-
- } progress:^(NSProgress *progressValue) {
-
- } success:^(NSDictionary *response) {
- [ProgressHUD hide];
- NSArray *arr =[NSArray arrayWithArray:response[@"data"]];
- weakself.dataArr = [yetaiModel mj_objectArrayWithKeyValuesArray:arr];
- weakself.dataA = [[NSMutableArray alloc]init];
- weakself.dataB = [[NSMutableArray alloc]init];
- for (int i = 0 ; i < weakself.dataArr.count;i++){
- // yetaiModel *model =[weakself.dataArr objectAtIndex:i];
- yetaiModel *model =weakself.dataArr[i];
- [weakself.dataA addObject:model.dName];
- [weakself.dataB addObject:model.dValue];
- }
- NSLog(@"%@",response);
-
- } failure:^(NSError *error) {
-
- NSLog(@"%@",error);
- [ProgressHUD hide];
- }];
-
- }
- -(void)dateClick:(UIButton *)sender{
- __weak NewListVC * weakself=self;
-
- if (!self.datePicker) {
-
- self.datePicker =[[[NSBundle mainBundle] loadNibNamed:@"DatePickerView" owner:self options:0] lastObject];
- self.datePicker.frame =CGRectMake(0, self.view.frame.size.height-260, self.view.frame.size.width, 260);
- self.datePicker.Datetitle =@"日期选择";
- self.datePicker.cancelBlock = ^{
- [UIView animateWithDuration:5 animations:^{
- [weakself.datePicker removeFromSuperview];
- weakself.datePicker = nil;
- }];
- };
- self.datePicker.sureBlock = ^(NSString *selectDateStr) {
- [weakself.dateLab setText:selectDateStr];
- [UIView animateWithDuration:5 animations:^{
- [weakself.datePicker removeFromSuperview];
- weakself.datePicker = nil;
- }];
- };
- [self.view addSubview:self.datePicker];
-
- }
-
- }
- -(void)yetaiClick:(UIButton *)sender{
- __weak NewListVC * weakself=self;
-
- // if (!self.yetaiPicker) {
- self.yetaiPicker = [[UIExPickerView alloc ] initWithFrame:CGRectMake(0, self.view.frame.size.height-260, self.view.frame.size.width, 260) arr:_dataA];
- weakself.yetaiPicker.delegate = weakself;
- [self.view addSubview:weakself.yetaiPicker];
-
- // }
-
- }
- -(void)setUpPhoneTextfield{
- [self.numberField addTarget:self action:@selector(textFieldDidEndEditing:) forControlEvents:UIControlEventEditingChanged];
- }
- -(void)textFieldDidEndEditing:(UITextField *)textField{
-
- if (textField == _numberField) {
- [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(keyboardWillbeHiden:) name:UIKeyboardWillHideNotification object:nil];
- if ([_numberField.text length] ==11) {
-
- if ([DKGlobal isValidMobileNum:_numberField.text]) {
-
- self.sendBtn.backgroundColor = [UIColor colorWithHexValue:0x64ABFF];
- self.sendBtn.userInteractionEnabled = YES;
-
- }else{
- [ToastView showToast:@"电话号码格式不正确"];
- self.sendBtn.userInteractionEnabled = NO;
- self.sendBtn.backgroundColor = [UIColor lightGrayColor];
-
- }
- }
- }
-
- }
- -(void)keyboardWillbeHiden:(NSNotification *)notification{
-
- if ([_numberField.text length]<11) {
-
- [ToastView showToast:@"电话号码格式不正确"];
- _sendBtn.userInteractionEnabled = NO;
- _sendBtn.backgroundColor = [UIColor lightGrayColor];
- }
-
- }
- -(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
-
- if (range.length +range.location > textField.text.length) {
-
- return NO;
- }
-
- NSUInteger newLength = [textField.text length] +[string length] -range.length;
-
-
- return newLength <=11;
-
-
-
- }
- #pragma mark - UITextView的代理方法
- - (void)textViewDidChange:(UITextView *)textView
- {
- if ([textView.text length] == 0) {
- [_lbl setHidden:NO];
- }else{
- [_lbl setHidden:YES];
- }
- }
- -(void)buttonEvent:(UIButton *)sender{
-
- _uploadImages = [NSMutableArray array];
- if ([_nameField.text length] ==0) {
-
- [ToastView showToast:@"请输入品牌名称"];
- return;
- }else if ([_phoneField.text length] == 0){
- [ToastView showToast:@"请输入客户姓名"];
- return;
- }else if ([_numberField.text length] == 0){
- [ToastView showToast:@"请输入联系方式"];
- return;
- }else if([_positionField.text length] == 0){
- [ToastView showToast:@"请输入公司职位"];//新增
- return;
- }
- else if(_yetaiStr.wordsCount == 0){
- [ToastView showToast:@"请选择业态"];//新增
- return;
- }
- else if([_areaField.text length] == 0){
- [ToastView showToast:@"请输入面积"];//新增
- return;
- }
- else if ([_SerialField.text length] == 0){
- [ToastView showToast:@"请输入商铺号"];
- return;
- }else if ([_priceField.text length] == 0){
- [ToastView showToast:@"请输入价格"];
- return;
- }else if ([_dateLab.text length] < 4){
- [ToastView showToast:@"请选择认购日期"];
- return;
- }else if ([_areaField.text length] == 0){
- [ToastView showToast:@"请输入总价"];
- return;
- }else if ([_imageArr count] == 0){
- [ToastView showToast:@"请至少上传一张凭证"];
- return;
- }
-
- // if (![DKGlobal validateIdentityCard:_numberField.text]) {
- // [ToastView showToast:@"请输入正确格式的身份证号"];
- // return;
- // }
-
- _sendBtn.backgroundColor = [UIColor lightGrayColor];
- _sendBtn.userInteractionEnabled = NO;
- [OSSImageUploader asyncUploadImages:_imageArr complete:^(NSArray<NSString *> *names, UploadImageState state) {
- if (state ==1) {
- for (NSString *name in names) {
- NSString *imageName =[NSString stringWithFormat:@"/%@",name];
- [_uploadImages addObject:imageName];
- }
- NSLog(@"上传成功");
- NSLog(@"%@",_uploadImages);
- NSMutableDictionary *dic =[NSMutableDictionary dictionary];
- dispatch_async(dispatch_get_main_queue(), ^{
- dic[@"orderNo"] = self.orderNo;
- dic[@"orderStatus"] = @"4";
- dic[@"picPath"] =[_uploadImages componentsJoinedByString:@","];
- dic[@"customerName"] = _phoneField.text;
- dic[@"mobile"] = _numberField.text;
- dic[@"roomNo"] = _SerialField.text;
- dic[@"price"] = _priceField.text;
- dic[@"subscribeTime"] =_dateLab.text;
- dic[@"houseMoneyTotal"] = _areaField.text;
- dic[@"description"] = _describeText.text;
- dic[@"customerPosition"] = _positionField.text;//公司职务
- dic[@"customerBusiness"] =self.yetaiStr;//业态
- dic[@"brandName"] = _nameField.text;//品牌名称
- dic[@"acreage"] = _mianjiField.text;//面积
- });
- [ProgressHUD show];
- kWeakSelf(self);
- [self.sessionManager sendPostHttpRequestWithUrl:sendApproveInfo params:dic bodyBlock:^(id<AFMultipartFormData> formData) {
-
- } progress:^(NSProgress *progressValue) {
-
- } success:^(NSDictionary *response) {
- [ProgressHUD hide];
- NSLog(@"%@",response);
- for (UIViewController *controller in weakself.navigationController.viewControllers) {
- if ([controller isKindOfClass:[ProjectControlsVC class]]) {
-
- if ([self.typeString isEqualToString:@"待到访"]) {
-
- [DKGlobal sharedInstance].typeName =@"3";
- [[NSNotificationCenter defaultCenter]postNotificationName:@"changeIndex1" object:nil];
- }else{
- [DKGlobal sharedInstance].typeName =@"4";
- [[NSNotificationCenter defaultCenter]postNotificationName:@"changeIndex2" object:nil];
- }
-
- [DKGlobal sharedInstance].tagString = @"";
-
-
- if ([self.isSearch isEqualToString:@"1"]) {
-
- ProjectControlsVC *projectVC = [[ProjectControlsVC alloc]init];
-
- projectVC.projectID = self.projectID;
-
- projectVC.projectType = self.projectType;
-
- projectVC.projectName = self.projectName;
-
- projectVC.isSearch = weakself.isSearch;
-
- [weakself.navigationController pushViewController:projectVC animated:YES];
- }else{
-
- [weakself.navigationController popToViewController:controller animated:YES];
- }
-
- // [weakself.navigationController popToViewController:controller animated:YES];
-
- return;
- }
- }
-
- } failure:^(NSError *error) {
- _sendBtn.backgroundColor = [UIColor colorWithHexValue:0x64ABFF];
- _sendBtn.userInteractionEnabled = YES;
- NSLog(@"%@",error);
- [ProgressHUD hide];
- }];
-
- }else{
- NSLog(@"上传失败");
- }
-
- }];
- }
- //回调方法
- - (void)selectIndex:(NSInteger)index
- {
- //根据索引取出传入数组的值
- NSLog(@"%ld",(long)index);
- self.yetaiStr = self.dataB[index];
- self.yetaiNum = self.dataB[index];
- self.yetaiLLL.text = self.dataA[index];
- }
- - (void)dealloc {
- if (_sessionManager) {
- [_sessionManager cancelAllTask];
- }
- [[NSNotificationCenter defaultCenter] removeObserver:self];
- DebugLog(@"%@没有造成循环引用", [self class]);
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- @end
|