Commit ebd70446 authored by 勾芒's avatar 勾芒

caoyunxiao

parent e1a2aca9
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor purpleColor];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
......
...@@ -16,6 +16,16 @@ ...@@ -16,6 +16,16 @@
* 数据源 * 数据源
*/ */
@property (nonatomic,strong) NSMutableArray *CustomerresultArray; @property (nonatomic,strong) NSMutableArray *CustomerresultArray;
/**
* 当前页数
*/
@property (nonatomic,assign) int indexPage;
/**
* 总页数
*/
@property (nonatomic,assign) int totalPages;
@end @end
@implementation AllCustomerViewController @implementation AllCustomerViewController
...@@ -39,18 +49,55 @@ ...@@ -39,18 +49,55 @@
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
[self uiConfigAction]; [self uiConfigAction];
[self getShoppersAssociatedCustomer];
} }
#pragma mark -视图渲染完成
- (void)viewDidAppear:(BOOL)animated
{
//下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = 1;
page.rows = 10;
condition.page = page;
[self getShoppersAssociatedCustomer:condition isRemove:YES];
}];
headerRefresh.stateLabel.hidden = YES;
headerRefresh.lastUpdatedTimeLabel.hidden = YES;
self.allCustomerTableview.mj_header = headerRefresh;
[self.allCustomerTableview.mj_header beginRefreshing];
//上拉加载
self.allCustomerTableview.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.rows = 10;
if (self.indexPage ++ > self.totalPages) {
[self.allCustomerTableview.mj_footer endRefreshingWithNoMoreData];
}else
{
page.page = self.indexPage ++;
condition.page = page;
[self getShoppersAssociatedCustomer:condition isRemove:NO];
}
}];
}
#pragma mark -UI #pragma mark -UI
- (void)uiConfigAction - (void)uiConfigAction
{ {
self.indexPage = 1;
self.allCustomerTableview.dataSource = self; self.allCustomerTableview.dataSource = self;
self.allCustomerTableview.delegate = self; self.allCustomerTableview.delegate = self;
self.searchTextfield.delegate = self; self.searchTextfield.delegate = self;
self.view.backgroundColor = kMainGrayColor;
self.allCustomerTableview.backgroundColor = [UIColor clearColor];
self.searchTextfield.returnKeyType = UIReturnKeySearch; self.searchTextfield.returnKeyType = UIReturnKeySearch;
//调整布局 //调整布局
...@@ -87,20 +134,20 @@ ...@@ -87,20 +134,20 @@
#pragma mark -获取导购关联客户 #pragma mark -获取导购关联客户
- (void)getShoppersAssociatedCustomer - (void)getShoppersAssociatedCustomer:(ConsumerQueryCondition *)condition isRemove:(BOOL)remove
{ {
[self CreateMBProgressHUDLoding]; [self CreateMBProgressHUDLoding];
ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = 0;
condition.page = page;
[[NetworkRequestClassManager Manager] NetworkRequestWithURL:[NSString stringWithFormat:@"%@%@",ServerAddress,@"/consumer/query"] WithRequestType:0 WithParameter:condition WithReturnValueBlock:^(id returnValue) { [[NetworkRequestClassManager Manager] NetworkRequestWithURL:[NSString stringWithFormat:@"%@%@",ServerAddress,@"/consumer/query"] WithRequestType:0 WithParameter:condition WithReturnValueBlock:^(id returnValue) {
[self RemoveMBProgressHUDLoding]; [self RemoveMBProgressHUDLoding];
[self endRefreshingForTableView:self.allCustomerTableview];
if ([returnValue[@"code"] isEqualToNumber:@0]) { if ([returnValue[@"code"] isEqualToNumber:@0]) {
if (remove) {
[self.CustomerresultArray removeAllObjects];
}
ConsumerPageResult *Customerresult = [[ConsumerPageResult alloc]initWithDictionary:returnValue[@"data"] error:nil]; ConsumerPageResult *Customerresult = [[ConsumerPageResult alloc]initWithDictionary:returnValue[@"data"] error:nil];
self.totalPages = (int)returnValue[@"data"][@"totalPages"];
for (TOConsumerEntity *objc in Customerresult.results) { for (TOConsumerEntity *objc in Customerresult.results) {
MyclientEntityModel *myclientModel = [[MyclientEntityModel alloc]init]; MyclientEntityModel *myclientModel = [[MyclientEntityModel alloc]init];
...@@ -133,6 +180,7 @@ ...@@ -133,6 +180,7 @@
} WithFailureBlock:^(id error) { } WithFailureBlock:^(id error) {
[self endRefreshingForTableView:self.allCustomerTableview];
[self RemoveMBProgressHUDLoding]; [self RemoveMBProgressHUDLoding];
}]; }];
} }
...@@ -156,7 +204,7 @@ ...@@ -156,7 +204,7 @@
} }
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{ {
return 116; return 125;
} }
...@@ -227,7 +275,8 @@ ...@@ -227,7 +275,8 @@
NSInteger result = [self compareOneDay:date withAnotherDay:date1]; NSInteger result = [self compareOneDay:date withAnotherDay:date1];
ConsumerQueryCondition *searchCustomer = [[ConsumerQueryCondition alloc]init]; ConsumerQueryCondition *searchCustomer = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init]; DataPage *page = [[DataPage alloc]init];
page.page = 0; page.page = 1;
page.rows = 10;
searchCustomer.page = page; searchCustomer.page = page;
//比较两个NSDate的大小 //比较两个NSDate的大小
...@@ -293,7 +342,8 @@ ...@@ -293,7 +342,8 @@
ConsumerQueryCondition *searchCustomer = [[ConsumerQueryCondition alloc]init]; ConsumerQueryCondition *searchCustomer = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init]; DataPage *page = [[DataPage alloc]init];
page.page = 0; page.page = 1;
page.rows = 10;
searchCustomer.page = page; searchCustomer.page = page;
searchCustomer.nameEquals = self.searchTextfield.text; searchCustomer.nameEquals = self.searchTextfield.text;
searchCustomer.mobileEquals = self.searchTextfield.text; searchCustomer.mobileEquals = self.searchTextfield.text;
...@@ -319,9 +369,28 @@ ...@@ -319,9 +369,28 @@
[self RemoveMBProgressHUDLoding]; [self RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) { if ([returnValue[@"code"] isEqualToNumber:@0]) {
ConsumerPageResult *result = [[ConsumerPageResult alloc]initWithDictionary:returnValue error:nil]; [self.CustomerresultArray removeAllObjects];
NSLog(@"%@",result); ConsumerPageResult *result = [[ConsumerPageResult alloc]initWithDictionary:returnValue[@"data"] error:nil];
[self SuccessMBProgressView:@"成功"]; self.totalPages = (int)returnValue[@"data"][@"totalPages"];
for (TOConsumerEntity *objc in result.results) {
MyclientEntityModel *myclientModel = [[MyclientEntityModel alloc]init];
myclientModel.fid = objc.fid;
myclientModel.createName = objc.createName;
myclientModel.createBy = objc.createBy;
myclientModel.createDate = objc.createDate;
myclientModel.sysOrgCode = objc.sysOrgCode;
myclientModel.name = objc.name;
myclientModel.mobile = objc.mobile;
myclientModel.province = objc.province;
myclientModel.city = objc.city;
myclientModel.country = objc.country;
myclientModel.address = objc.address;
myclientModel.picture = objc.picture;
myclientModel.lastVisitedTime = objc.lastVisitedTime;
[self.CustomerresultArray addObject:myclientModel];
}
[self.allCustomerTableview reloadData];
} }
else else
{ {
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
[self.customerHeader sd_setImageWithURL:[NSURL URLWithString:_Model.picture] placeholderImage:ReplaceImage]; [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:_Model.picture] placeholderImage:ReplaceImage];
self.customerName.text = _Model.name; self.customerName.text = _Model.name;
self.customerPhoneName.text = _Model.mobile; self.customerPhoneName.text = _Model.mobile;
self.serviceName.text = _Model.createName;
self.customerAddress.text = _Model.address;
self.cutomerTime.text = _Model.lastVisitedTime;
} }
......
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
*/ */
@property (nonatomic,assign) int indexPage; @property (nonatomic,assign) int indexPage;
/**
* 总页数
*/
@property (nonatomic,assign) int totalPages;
@end @end
@implementation ClientViewController @implementation ClientViewController
...@@ -58,6 +63,39 @@ ...@@ -58,6 +63,39 @@
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) { if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO; self.navigationController.interactivePopGestureRecognizer.enabled = NO;
} }
//下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = 1;
condition.page = page;
page.rows = 10;
[self.informationTableview.mj_footer resetNoMoreData];
[self getShoppersAssociatedCustomer:condition isRemoveArray:YES];
}];
headerRefresh.stateLabel.hidden = YES;
headerRefresh.lastUpdatedTimeLabel.hidden = YES;
self.informationTableview.mj_header =headerRefresh;
//进入刷新状态
[self.informationTableview.mj_header beginRefreshing];
//上拉加载
self.informationTableview.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
if (self.indexPage ++ > self.totalPages) {
[self.informationTableview.mj_footer endRefreshingWithNoMoreData];
}else
{
page.page = self.indexPage ++;
page.rows = 10;
condition.page = page;
[self getShoppersAssociatedCustomer:condition isRemoveArray:NO];
}
}];
} }
- (void)viewWillDisappear:(BOOL)animated - (void)viewWillDisappear:(BOOL)animated
...@@ -87,7 +125,7 @@ ...@@ -87,7 +125,7 @@
self.addpersonInformationButton.layer.cornerRadius = kCornerRadius; self.addpersonInformationButton.layer.cornerRadius = kCornerRadius;
self.changePersonInformationButton.layer.masksToBounds = YES; self.changePersonInformationButton.layer.masksToBounds = YES;
self.changePersonInformationButton.layer.cornerRadius = kCornerRadius; self.changePersonInformationButton.layer.cornerRadius = kCornerRadius;
self.indexPage = 0; self.indexPage = 1;
//隐藏更改客户按钮 //隐藏更改客户按钮
self.changePersonInformationButton.hidden = YES; self.changePersonInformationButton.hidden = YES;
...@@ -98,33 +136,7 @@ ...@@ -98,33 +136,7 @@
self.searchPersonInformationField.delegate = self; self.searchPersonInformationField.delegate = self;
//监听键盘落下的通知 //监听键盘落下的通知
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(KeyboadrDismiss) name:UIKeyboardWillHideNotification object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(KeyboadrDismiss) name:UIKeyboardWillHideNotification object:nil];
//下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = 0;
condition.page = page;
page.rows = 10;
[self getShoppersAssociatedCustomer:condition isRemoveArray:YES];
}];
headerRefresh.stateLabel.hidden = YES;
headerRefresh.lastUpdatedTimeLabel.hidden = YES;
self.informationTableview.mj_header =headerRefresh;
//进入刷新状态
[self.informationTableview.mj_header beginRefreshing];
//上拉加载
self.informationTableview.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = self.indexPage ++;
page.rows = 10;
condition.page = page;
[self getShoppersAssociatedCustomer:condition isRemoveArray:NO];
}];
} }
...@@ -143,11 +155,12 @@ ...@@ -143,11 +155,12 @@
if (remove) { if (remove) {
[self.CustomerresultArray removeAllObjects]; [self.CustomerresultArray removeAllObjects];
} }
ConsumerPageResult *Customerresult = [[ConsumerPageResult alloc]initWithDictionary:returnValue[@"data"] error:nil]; NSDictionary *datas = returnValue[@"data"];
ConsumerPageResult *Customerresult = [[ConsumerPageResult alloc]initWithDictionary:datas error:nil];
self.totalPages = [datas[@"totalpages"] intValue];
for (TOConsumerEntity *objc in Customerresult.results) { for (TOConsumerEntity *objc in Customerresult.results) {
MyclientEntityModel *myclientModel = [[MyclientEntityModel alloc]init]; MyclientEntityModel *myclientModel = [[MyclientEntityModel alloc]init];
myclientModel.fid = objc.fid; myclientModel.fid = objc.fid;
myclientModel.createName = objc.createName; myclientModel.createName = objc.createName;
myclientModel.createBy = objc.createBy; myclientModel.createBy = objc.createBy;
...@@ -304,6 +317,7 @@ ...@@ -304,6 +317,7 @@
if ([sender.currentTitle isEqualToString:@"退出当前客户"]) { if ([sender.currentTitle isEqualToString:@"退出当前客户"]) {
[[NSNotificationCenter defaultCenter]postNotificationName:REFRESHSHOPPINGCAR object:@(0)];
self.customerNameField.text = nil; self.customerNameField.text = nil;
self.customerAddress.text = nil; self.customerAddress.text = nil;
self.phoneNumberField.text = nil; self.phoneNumberField.text = nil;
......
...@@ -165,9 +165,19 @@ ...@@ -165,9 +165,19 @@
{ {
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardwithCYX" bundle:nil]; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardwithCYX" bundle:nil];
OrderdetailsViewController *orderdetails = [storyboard instantiateViewControllerWithIdentifier:@"orderdetails"]; OrderdetailsViewController *orderdetails = [storyboard instantiateViewControllerWithIdentifier:@"orderdetails"];
orderdetails.orderCode = [[[self.orderRecordArray objectAtIndex_opple:indexPath.row] order] orderNumber];
TOOrderEntity *model = [[self.orderRecordArray objectAtIndex_opple:indexPath.row] order];
orderdetails.orderCode = model.orderNumber;
orderdetails.sectionTitle = @[@"订单信息",@"客户信息",@"收货信息",@"商品信息",@"附件信息"]; orderdetails.sectionTitle = @[@"订单信息",@"客户信息",@"收货信息",@"商品信息",@"附件信息"];
orderdetails.isShowattachment = YES; orderdetails.isShowattachment = YES;
if ([model.orderState isEqualToString:@"006"]) {
orderdetails.isShowPayButton = YES;
orderdetails.isShowPrintButton = YES;
}else if ([model.orderState isEqualToString:@"001"])
{
orderdetails.isShowPayButton = YES;
}
[self.navigationController pushViewController:orderdetails animated:YES]; [self.navigationController pushViewController:orderdetails animated:YES];
} }
} }
......
...@@ -21,13 +21,15 @@ ...@@ -21,13 +21,15 @@
_model = model; _model = model;
[self.goodsHeader sd_setImageWithURL:[NSURL URLWithString:_model.goods.pictures] placeholderImage:ReplaceImage]; [self.goodsHeader sd_setImageWithURL:[NSURL URLWithString:_model.goods.pictures] placeholderImage:ReplaceImage];
self.goodsName.text = _model.goods.name; self.goodsName.text = _model.goods.name;
self.goodsNumber.text = _model.goods.number; self.goodsNumber.text = [NSString stringWithFormat:@"数量 X%@",_model.goods.number];
self.clinchPrice.text = [_model.goods.costPrice stringValue]; self.clinchPrice.text = [NSString stringWithFormat:@"成交价 ¥%@",[_model.goods.costPrice stringValue]];
//计算总价格 //计算总价格
NSInteger number = [_model.goods.number integerValue]; NSInteger number = [_model.goods.number integerValue];
NSInteger price = [_model.goods.costPrice integerValue]; NSInteger price = [_model.goods.costPrice integerValue];
NSInteger allPrice = number*price; NSInteger allPrice = number*price;
self.totalPrice.text = [NSString stringWithFormat:@"%ld",allPrice]; self.totalPrice.text = [NSString stringWithFormat:@"%ld",allPrice];
} }
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
make.left.equalTo(self.orderAll.mas_left).offset(13); make.left.equalTo(self.orderAll.mas_left).offset(13);
make.top.equalTo(self.orderAll.mas_bottom).offset(10); make.top.equalTo(self.orderAll.mas_bottom).offset(10);
}]; }];
} }
...@@ -37,7 +36,7 @@ ...@@ -37,7 +36,7 @@
- (void)setModel:(OrderBill *)model - (void)setModel:(OrderBill *)model
{ {
_model = model; _model = model;
self.orderDate.text = [self dateAsString:_model.order.orderTime]; self.orderDate.text = _model.order.createDate;
self.orderSerialNumber.text = _model.order.orderNumber; self.orderSerialNumber.text = _model.order.orderNumber;
self.shoppersName.text = _model.employee.userName; self.shoppersName.text = _model.employee.userName;
self.customerName.text = _model.consumer.name; self.customerName.text = _model.consumer.name;
...@@ -55,6 +54,12 @@ ...@@ -55,6 +54,12 @@
} }
self.orderTotalPrice.text = [NSString stringWithFormat:@"%ld",goodsAllprice]; self.orderTotalPrice.text = [NSString stringWithFormat:@"%ld",goodsAllprice];
if ([_model.order.orderState isEqualToString:@"002"]) {
self.delecteOrder.hidden = NO;
}else
{
self.delecteOrder.hidden = YES;
}
//订单状态图片 //订单状态图片
self.orderStateImageView.image = [BaseViewController ReturnOrderStateImageWithStateCode:[_model.order.orderState integerValue]]; self.orderStateImageView.image = [BaseViewController ReturnOrderStateImageWithStateCode:[_model.order.orderState integerValue]];
......
...@@ -60,31 +60,15 @@ ...@@ -60,31 +60,15 @@
} }
#pragma mark -视图渲染完成
#pragma mark -UI - (void)viewDidAppear:(BOOL)animated
- (void)uiConfigAction
{ {
self.searchCustomerOrder.delegate = self;
self.view.backgroundColor = kTCColor(238, 238, 238);
self.customerOrderTableView.dataSource = self;
self.customerOrderTableView.delegate = self;
self.customerOrderTableView.backgroundColor = [UIColor clearColor];
self.StyleButton = [screeningButton buttonWithType:UIButtonTypeCustom];
self.StyleButton.frame = CGRectMake(ScreenWidth-250, 20, 150, 30);
self.StyleButton.backgroundColor = kTCColor(131, 131, 131);
[self.StyleButton setTitle:@"订单状态" forState:UIControlStateNormal];
[self.StyleButton addTarget:self action:@selector(OrderStateButtonClick:) forControlEvents:UIControlEventTouchUpInside];
[self.StyleButton setImage:TCImage(@"down_arr") forState:UIControlStateNormal];
self.StyleButton.layer.masksToBounds = YES;
self.StyleButton.layer.cornerRadius = 10;
[self.orderStateBackView addSubview:self.StyleButton];
//下拉刷新 //下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{ MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
OrderBill *allOrder = [[OrderBill alloc]init]; OrderBill *allOrder = [[OrderBill alloc]init];
//分页 //分页
DataPage *page = [[DataPage alloc]init]; DataPage *page = [[DataPage alloc]init];
page.page = 0; page.page = 1;
page.rows = 10; page.rows = 10;
//订单 //订单
TOOrderEntity *Neworder = [[TOOrderEntity alloc]init]; TOOrderEntity *Neworder = [[TOOrderEntity alloc]init];
...@@ -120,6 +104,26 @@ ...@@ -120,6 +104,26 @@
} }
#pragma mark -UI
- (void)uiConfigAction
{
self.searchCustomerOrder.delegate = self;
self.view.backgroundColor = kTCColor(238, 238, 238);
self.customerOrderTableView.dataSource = self;
self.customerOrderTableView.delegate = self;
self.customerOrderTableView.backgroundColor = [UIColor clearColor];
self.StyleButton = [screeningButton buttonWithType:UIButtonTypeCustom];
self.StyleButton.frame = CGRectMake(ScreenWidth-250, 20, 150, 30);
self.StyleButton.backgroundColor = kTCColor(131, 131, 131);
[self.StyleButton setTitle:@"订单状态" forState:UIControlStateNormal];
[self.StyleButton addTarget:self action:@selector(OrderStateButtonClick:) forControlEvents:UIControlEventTouchUpInside];
[self.StyleButton setImage:TCImage(@"down_arr") forState:UIControlStateNormal];
self.StyleButton.layer.masksToBounds = YES;
self.StyleButton.layer.cornerRadius = 10;
[self.orderStateBackView addSubview:self.StyleButton];
}
#pragma mark -获取导购下客户订单 ----isdelecte 表示是否清空数组 #pragma mark -获取导购下客户订单 ----isdelecte 表示是否清空数组
- (void)getGuideAllcustomerOrder:(BOOL)isdelecte WithorderBill:(OrderBill *)allOrder - (void)getGuideAllcustomerOrder:(BOOL)isdelecte WithorderBill:(OrderBill *)allOrder
{ {
...@@ -150,16 +154,12 @@ ...@@ -150,16 +154,12 @@
[self endRefreshingForTableView:self.customerOrderTableView]; [self endRefreshingForTableView:self.customerOrderTableView];
[self RemoveMBProgressHUDLoding]; [self RemoveMBProgressHUDLoding];
}]; }];
} }
#pragma mark -订单状态筛选 #pragma mark -订单状态筛选
- (void)OrderStateButtonClick:(UIButton *)button - (void)OrderStateButtonClick:(UIButton *)button
{ {
...@@ -237,43 +237,36 @@ ...@@ -237,43 +237,36 @@
allOrder.order = Neworder; allOrder.order = Neworder;
NSString *orderState = nil; NSString *orderState = nil;
for (int i=0; i<self.orderStateArray.count; i++) { //全部订单
//全部订单 if ([title isEqualToString:@"全部订单"]) {
if ([title isEqualToString:[self.orderStateArray objectAtIndex_opple:i]]) { orderState = nil;
orderState = nil; }
break; //待支付
} else if ([title isEqualToString:@"待支付"]) {
//待支付 orderState = @"001";
if ([title isEqualToString:[self.orderStateArray objectAtIndex_opple:i]]) {
orderState = @"001";
break;
}
//已支付
if ([title isEqualToString:[self.orderStateArray objectAtIndex_opple:i]]) {
orderState = @"002";
break;
}
//已发货
if ([title isEqualToString:[self.orderStateArray objectAtIndex_opple:i]]) {
orderState = @"003";
break;
}
//已完成
if ([title isEqualToString:[self.orderStateArray objectAtIndex_opple:i]]) {
orderState = @"006";
break;
}
//已撤销
if ([title isEqualToString:[self.orderStateArray objectAtIndex_opple:i]]) {
orderState = @"005";
break;
}
//已退货
if ([title isEqualToString:[self.orderStateArray objectAtIndex_opple:i]]) {
orderState = @"004";
break;
}
} }
//已支付
else if ([title isEqualToString:@"已支付"]) {
orderState = @"002";
}
//已发货
else if ([title isEqualToString:@"已发货"]) {
orderState = @"003";
}
//已完成
else if ([title isEqualToString:@"已完成"]) {
orderState = @"006";
}
//已撤销
else if ([title isEqualToString:@"已撤销"]) {
orderState = @"005";
}
//已退货
else if ([title isEqualToString:@"已退货"]) {
orderState = @"004";
}
self.indexPage = 0;
Neworder.orderState = orderState; Neworder.orderState = orderState;
[self getGuideAllcustomerOrder:YES WithorderBill:allOrder]; [self getGuideAllcustomerOrder:YES WithorderBill:allOrder];
} }
...@@ -327,6 +320,9 @@ ...@@ -327,6 +320,9 @@
if ([returnValue[@"code"] isEqualToNumber:@0]) { if ([returnValue[@"code"] isEqualToNumber:@0]) {
[self SuccessMBProgressView:@"撤销成功"]; [self SuccessMBProgressView:@"撤销成功"];
model.order.orderState = @"005";
NSIndexPath *indexapath = [NSIndexPath indexPathForRow:cellindex inSection:0];
[self.customerOrderTableView reloadRowsAtIndexPaths:@[indexapath] withRowAnimation:UITableViewRowAnimationLeft];
} }
else else
{ {
......
...@@ -21,24 +21,16 @@ ...@@ -21,24 +21,16 @@
{ {
_model = model; _model = model;
[self.personHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:ReplaceImage]; [self.personHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:ReplaceImage];
self.personName.text = _model.createName; self.personName.text = _model.name;
self.personPhoneNumber.text = _model.mobile; self.personPhoneNumber.text = _model.mobile;
self.recentTime.text = [self stringFromDate:_model.lastVisitedTime]; self.recentTime.text = _model.lastVisitedTime;
self.Guideservices.text = _model.name; self.Guideservices.text = _model.createName;
self.personLocation.text = _model.address; self.personLocation.text = _model.address;
self.setCurrentCustomer.selected = _model.selectedState; self.setCurrentCustomer.selected = _model.selectedState;
} }
#pragma mark -NSDate转NSStirng
- (NSString *)stringFromDate:(NSDate *)date{
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSString *destDateString = [dateFormatter stringFromDate:date];
return destDateString;
}
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{ {
_model = model; _model = model;
self.orderNumber.text = _model.order.orderNumber; self.orderNumber.text = _model.order.orderNumber;
self.orderTime.text = [self dateAsString:_model.order.orderTime]; self.orderTime.text = _model.order.orderTime;
self.orderStatus.text = [BaseViewController ReturnOrderStateTitleWithStateCode:[_model.order.orderState integerValue] withPoint:CGPointMake(self.orderStatus.frame.origin.x, self.orderStatus.frame.origin.y) WithCode:0]; self.orderStatus.text = [BaseViewController ReturnOrderStateTitleWithStateCode:[_model.order.orderState integerValue] withPoint:CGPointMake(self.orderStatus.frame.origin.x, self.orderStatus.frame.origin.y) WithCode:0];
self.orderStatus.textColor = [BaseViewController ReturnOrderStateTitleWithStateCode:[_model.order.orderState integerValue] withPoint:CGPointMake(self.orderStatus.frame.origin.x, self.orderStatus.frame.origin.y) WithCode:1]; self.orderStatus.textColor = [BaseViewController ReturnOrderStateTitleWithStateCode:[_model.order.orderState integerValue] withPoint:CGPointMake(self.orderStatus.frame.origin.x, self.orderStatus.frame.origin.y) WithCode:1];
self.operatorName.text = _model.employee.realName; self.operatorName.text = _model.employee.realName;
......
...@@ -36,4 +36,14 @@ ...@@ -36,4 +36,14 @@
@property (nonatomic,strong) NSArray *sectionTitle; @property (nonatomic,strong) NSArray *sectionTitle;
/**
* 是否显示支付按钮
*/
@property (nonatomic,assign) BOOL isShowPayButton;
/**
* 是否显示预览、打印按钮
*/
@property (nonatomic,assign) BOOL isShowPrintButton;
@end @end
...@@ -54,11 +54,14 @@ ...@@ -54,11 +54,14 @@
{ {
self.orderDetailsTableview.dataSource = self; self.orderDetailsTableview.dataSource = self;
self.orderDetailsTableview.delegate = self; self.orderDetailsTableview.delegate = self;
// [self CreateTableviewHeaderView]; if (self.isShowPrintButton) {
[self CreateTableviewHeaderView];
}
//附加信息cell //附加信息cell
[self.orderDetailsTableview registerNib:[UINib nibWithNibName:@"AdditionalTableViewCell" bundle:nil] forCellReuseIdentifier:@"fifthcell"]; [self.orderDetailsTableview registerNib:[UINib nibWithNibName:@"AdditionalTableViewCell" bundle:nil] forCellReuseIdentifier:@"fifthcell"];
[self CreateTableviewFooterView]; if (self.isShowPayButton) {
[self CreateTableviewFooterView];
}
} }
......
...@@ -13,19 +13,18 @@ ...@@ -13,19 +13,18 @@
- (void)awakeFromNib { - (void)awakeFromNib {
[super awakeFromNib]; [super awakeFromNib];
// Initialization code // Initialization code
[self.customerHeader sd_setImageWithURL:[NSURL URLWithString:[Customermanager manager].customerName] placeholderImage:REPLACEIMAGE];
self.customerName.text = [Customermanager manager].customerName;
self.companyName.text = [Customermanager manager].customerName;
// self.emailName.text = [Customermanager manager]
self.companyLocation.text = [Customermanager manager].companyAddress;
self.customerPhoneNumber.text = [Customermanager manager].customerPhoneNumber;
} }
#pragma mark -赋值
- (void)setModel:(TOConsumerEntity *)model
{
_model = model;
self.customerName.text = _model.name;
[self.customerHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:ReplaceImage];
self.customerNumbers.text = _model.mobile;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated { - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
......
...@@ -62,6 +62,11 @@ ...@@ -62,6 +62,11 @@
*/ */
@property (nonatomic,assign) int resultCount; @property (nonatomic,assign) int resultCount;
/**
* 总页数
*/
@property (nonatomic,assign) int totalPages;
...@@ -117,6 +122,58 @@ ...@@ -117,6 +122,58 @@
} }
#pragma mark 视图渲染完成
- (void)viewDidAppear:(BOOL)animated
{
//下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
//默认数据
GoodsCondition *conditon = [[GoodsCondition alloc]init];
//分页数据
DataPage *Newpage = [[DataPage alloc]init];
Newpage.page = 1;
Newpage.rows = 10;
conditon.page = Newpage;
//搜索
if (_selectedCode) {
conditon.categoryEquals = _selectedCode;
conditon.nameLike = _selectedCode;
}
[self.productCollectionView.mj_footer resetNoMoreData];
[self getScreeningdatasisRemoveArray:YES];
[self getGoodsListDatasisRemove:YES Withobject:conditon];
}];
headerRefresh.stateLabel.hidden = YES;
headerRefresh.lastUpdatedTimeLabel.hidden = YES;
self.productCollectionView.mj_header = headerRefresh;
[self.productCollectionView.mj_header beginRefreshing];
//上拉加载
self.productCollectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
//默认数据
GoodsCondition *conditon = [[GoodsCondition alloc]init];
//分页数据
DataPage *Newpage = [[DataPage alloc]init];
if (self.indexPage ++ > self.totalPages) {
[self.productCollectionView.mj_footer endRefreshingWithNoMoreData];
}else
{
Newpage.page = self.indexPage ++;
Newpage.rows = 10;
conditon.page = Newpage;
//搜索
if (_selectedCode) {
conditon.categoryEquals = _selectedCode;
conditon.nameLike = _selectedCode;
}
[self getGoodsListDatasisRemove:NO Withobject:conditon];
}
}];
}
#pragma mark -获取商品列表数据 #pragma mark -获取商品列表数据
- (void)getGoodsListDatasisRemove:(BOOL)remove Withobject:(GoodsCondition *)conditon - (void)getGoodsListDatasisRemove:(BOOL)remove Withobject:(GoodsCondition *)conditon
{ {
...@@ -186,6 +243,7 @@ ...@@ -186,6 +243,7 @@
if ([returnValue[@"code"] isEqualToNumber:@0]) { if ([returnValue[@"code"] isEqualToNumber:@0]) {
GoodsResponse *sponse = [[GoodsResponse alloc]initWithDictionary:returnValue[@"data"] error:nil]; GoodsResponse *sponse = [[GoodsResponse alloc]initWithDictionary:returnValue[@"data"] error:nil];
self.totalPages = (int)returnValue[@"data"][@"totalPages"];
//返回结果 //返回结果
finish(sponse); finish(sponse);
} }
...@@ -207,7 +265,7 @@ ...@@ -207,7 +265,7 @@
#pragma mark -布局 #pragma mark -布局
- (void)uiConfigAction - (void)uiConfigAction
{ {
self.indexPage = 0; self.indexPage = 1;
self.productCollectionLayout.itemSize = CGSizeMake((ScreenWidth-100)/3, (ScreenWidth-100)/3); self.productCollectionLayout.itemSize = CGSizeMake((ScreenWidth-100)/3, (ScreenWidth-100)/3);
self.productCollectionLayout.sectionInset = UIEdgeInsetsMake(20, 30, 20, 30); self.productCollectionLayout.sectionInset = UIEdgeInsetsMake(20, 30, 20, 30);
self.productCollectionLayout.minimumLineSpacing = 20; self.productCollectionLayout.minimumLineSpacing = 20;
...@@ -216,89 +274,10 @@ ...@@ -216,89 +274,10 @@
self.productCollectionView.delegate = self; self.productCollectionView.delegate = self;
self.productCollectionView.alwaysBounceVertical = YES; self.productCollectionView.alwaysBounceVertical = YES;
[self CreatescreeningButton]; [self CreatescreeningButton];
//搜索关键字
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(searchInputString:) name:SEARCHSTRING object:nil];
//返回根视图
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(popTorootviewController:) name:POPROOTCONTROLLER object:nil];
//下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
//默认数据
GoodsCondition *conditon = [[GoodsCondition alloc]init];
//分页数据
DataPage *Newpage = [[DataPage alloc]init];
Newpage.page = self.indexPage;
Newpage.rows = 10;
conditon.page = Newpage;
//搜索
if (_selectedCode) {
conditon.categoryEquals = _selectedCode;
conditon.nameLike = _selectedCode;
}
[self getScreeningdatasisRemoveArray:YES];
[self getGoodsListDatasisRemove:YES Withobject:conditon];
}];
headerRefresh.stateLabel.hidden = YES;
headerRefresh.lastUpdatedTimeLabel.hidden = YES;
self.productCollectionView.mj_header = headerRefresh;
[self.productCollectionView.mj_header beginRefreshing];
//上拉加载
self.productCollectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
//默认数据
GoodsCondition *conditon = [[GoodsCondition alloc]init];
//分页数据
DataPage *Newpage = [[DataPage alloc]init];
Newpage.page = self.indexPage ++;
Newpage.rows = 10;
conditon.page = Newpage;
//搜索
if (_selectedCode) {
conditon.categoryEquals = _selectedCode;
conditon.nameLike = _selectedCode;
}
[self getGoodsListDatasisRemove:NO Withobject:conditon];
}];
}
#pragma mark -返回根视图
- (void)popTorootviewController:(NSNotification *)not
{
[self.navigationController popToViewController:[self.navigationController.viewControllers firstObject] animated:NO];
} }
//#pragma mark -搜索关键字
//- (void)searchInputString:(NSNotification *)not
//{
// //默认数据
// GoodsCondition *conditon = [[GoodsCondition alloc]init];
// //分页数据
// DataPage *Newpage = [[DataPage alloc]init];
// Newpage.page = 0;
// conditon.page = Newpage;
// conditon.nameLike = not.object;
//
// __weak typeof(self)weakSelf = self;
// [self getGoodsListdatas:conditon returnResponse:^(GoodsResponse *response) {
//
// if (response.goodsEntity.count == 0) {
//
// [self ErrorMBProgressView:@"暂无数据"];
// return ;
// }
// weakSelf.datasArray = [NSMutableArray arrayWithArray:response.goodsEntity];
// [weakSelf.productCollectionView reloadData];
// }];
//}
#pragma mark -筛选按钮 #pragma mark -筛选按钮
...@@ -339,6 +318,7 @@ ...@@ -339,6 +318,7 @@
cell.cellindex = indexPath.item; cell.cellindex = indexPath.item;
//加入购物车 //加入购物车
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
__weak typeof(ProductCollectionViewCell *) weakCell = cell;
[cell setReturnCellCgpoint:^void(CGPoint centerPoint,NSInteger cellindex) { [cell setReturnCellCgpoint:^void(CGPoint centerPoint,NSInteger cellindex) {
//判断是否有当前客户 //判断是否有当前客户
...@@ -351,7 +331,7 @@ ...@@ -351,7 +331,7 @@
[self addGoodsShoppingbags:model complate:^{ [self addGoodsShoppingbags:model complate:^{
NSLog(@"加入购物车完成"); NSLog(@"加入购物车完成");
}]; }];
[weakSelf StartAddShoppingCarAnimationWithimage:TCImage(@"欧") withStartpoint:centerPoint]; [weakSelf StartAddShoppingCarAnimationWithimage:weakCell.productImageView.image withStartpoint:centerPoint];
}]; }];
return cell; return cell;
...@@ -369,8 +349,10 @@ ...@@ -369,8 +349,10 @@
CGPoint controlPoint = CGPointMake(endPoint.x, startPoint.x); CGPoint controlPoint = CGPointMake(endPoint.x, startPoint.x);
UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 40, 40)]; UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 60, 42)];
imageView.layer.position = point; imageView.layer.position = point;
// imageView.layer.masksToBounds = YES;
// imageView.layer.cornerRadius = 50;
imageView.tag = 100; imageView.tag = 100;
imageView.image = image; imageView.image = image;
......
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
*/ */
@property (nonatomic,assign) int indexPage; @property (nonatomic,assign) int indexPage;
/**
* 总页数
*/
@property (nonatomic,assign) int totalPages;
@end @end
...@@ -73,6 +78,41 @@ ...@@ -73,6 +78,41 @@
} }
#pragma mark -视图渲染完成
- (void)viewDidAppear:(BOOL)animated
{
//下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
//默认数据
SceneCondition *condition = [[SceneCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = 1;
page.rows = 10;
condition.page = page;
[self.seceneLibararyCollectionView.mj_footer resetNoMoreData];
[self getSceneLibrarydatas:condition isRemove:YES];
}];
headerRefresh.stateLabel.hidden = YES;
headerRefresh.lastUpdatedTimeLabel.hidden = YES;
self.seceneLibararyCollectionView.mj_header = headerRefresh;
[self.seceneLibararyCollectionView.mj_header beginRefreshing];
//上拉加载
self.seceneLibararyCollectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
//默认数据
SceneCondition *condition = [[SceneCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
if (self.indexPage ++ > self.totalPages) {
[self.seceneLibararyCollectionView.mj_footer endRefreshingWithNoMoreData];
}
page.page = self.indexPage ++;
page.rows = 10;
condition.page = page;
[self getSceneLibrarydatas:condition isRemove:NO];
}];
}
#pragma mark -UI #pragma mark -UI
- (void)uiConfigAction - (void)uiConfigAction
{ {
...@@ -102,33 +142,7 @@ ...@@ -102,33 +142,7 @@
self.SpaceButton.layer.cornerRadius = 10; self.SpaceButton.layer.cornerRadius = 10;
[self.backView addSubview:self.StyleButton]; [self.backView addSubview:self.StyleButton];
[self.backView addSubview:self.SpaceButton]; [self.backView addSubview:self.SpaceButton];
self.indexPage = 0; self.indexPage = 1;
//下拉刷新
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
//默认数据
SceneCondition *condition = [[SceneCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = self.indexPage;
page.rows = 10;
condition.page = page;
[self getSceneLibrarydatas:condition isRemove:YES];
}];
headerRefresh.stateLabel.hidden = YES;
headerRefresh.lastUpdatedTimeLabel.hidden = YES;
self.seceneLibararyCollectionView.mj_header = headerRefresh;
[self.seceneLibararyCollectionView.mj_header beginRefreshing];
//上拉加载
self.seceneLibararyCollectionView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
//默认数据
SceneCondition *condition = [[SceneCondition alloc]init];
DataPage *page = [[DataPage alloc]init];
page.page = self.indexPage ++;
page.rows = 10;
condition.page = page;
[self getSceneLibrarydatas:condition isRemove:NO];
}];
} }
#pragma mark -获取场景筛选数据 #pragma mark -获取场景筛选数据
...@@ -167,6 +181,7 @@ ...@@ -167,6 +181,7 @@
[self.responseArray removeAllObjects]; [self.responseArray removeAllObjects];
} }
SceneResponse *response = [[SceneResponse alloc]initWithDictionary:returnValue[@"data"] error:nil]; SceneResponse *response = [[SceneResponse alloc]initWithDictionary:returnValue[@"data"] error:nil];
self.indexPage = (int)returnValue[@"data"][@"totalPages"];
for (TOSceneEntity *model in response.list) { for (TOSceneEntity *model in response.list) {
[self.responseArray addObject:model]; [self.responseArray addObject:model];
} }
......
...@@ -18,8 +18,13 @@ ...@@ -18,8 +18,13 @@
//增加地址 //增加地址
- (void)addAddressCell:(AddressModel *)model; - (void)addAddressCell:(AddressModel *)model;
//修改地址
- (void)ChangeAddresscell:(AddressModel *)model Withcellindex:(NSInteger)cellindex;
@end @end
@interface AddressViewController : BaseViewController @interface AddressViewController : BaseViewController
...@@ -119,7 +124,10 @@ ...@@ -119,7 +124,10 @@
@property (nonatomic,assign) id<delecteDelegate> delegate; @property (nonatomic,assign) id<delecteDelegate> delegate;
/**
* 选中地址cellindex
*/
@property (nonatomic,assign) NSInteger cellindex;
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
} }
else if ([sender.currentTitle isEqualToString:@"保存"]) else if ([sender.currentTitle isEqualToString:@"保存"])
{ {
[self ChangeAddressInformationRequest];
} }
} }
...@@ -216,6 +216,56 @@ ...@@ -216,6 +216,56 @@
//} //}
#pragma mark -更改地址
- (void)ChangeAddressInformationRequest
{
TOShippingAddrEntity *address = [[TOShippingAddrEntity alloc]init];
address.consumerId = [Customermanager manager].customerID;
address.name = self.recipientPerson.text;
address.miblephone = self.PhoneNumber.text;
address.city = [self.citySelected currentTitle];
address.address = self.detailsAddress.text;
address.fid = _model.fid;
[self CreateMBProgressHUDLoding];
[[NetworkRequestClassManager Manager] NetworkRequestWithURL:[NSString stringWithFormat:@"%@%@",ServerAddress,@"/shippingAddress/save"] WithRequestType:0 WithParameter:address WithReturnValueBlock:^(id returnValue) {
[self RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) {
AddressModel *model = [[AddressModel alloc]init];
model.name = self.recipientPerson.text;
model.miblephone = self.PhoneNumber.text;
model.city = self.citySelected.currentTitle;
model.address = self.detailsAddress.text;
model.consumerId = [Customermanager manager].customerID;
model.fid = returnValue[@"data"];
model.isSelected = NO;
//修改地址
if ([self.delegate respondsToSelector:@selector(ChangeAddresscell:Withcellindex:)]) {
[self.delegate ChangeAddresscell:model Withcellindex:_cellindex];
}
}
else
{
[self ErrorMBProgressView:returnValue[@"message"]];
}
} WithErrorCodeBlock:^(id errorCodeValue) {
} WithFailureBlock:^(id error) {
NSLog(@"%@",error);
[self RemoveMBProgressHUDLoding];
}];
}
#pragma mark -取消新增地址,或者删除 #pragma mark -取消新增地址,或者删除
- (IBAction)cancelButtonClick:(UIButton *)sender { - (IBAction)cancelButtonClick:(UIButton *)sender {
......
...@@ -78,8 +78,10 @@ ...@@ -78,8 +78,10 @@
</label> </label>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="51b-5f-c5c"> <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="51b-5f-c5c">
<rect key="frame" x="19" y="271" width="120" height="35"/> <rect key="frame" x="19" y="271" width="120" height="35"/>
<color key="backgroundColor" red="1" green="0.70412693910000002" blue="0.69044467629999995" alpha="1" colorSpace="calibratedRGB"/> <color key="backgroundColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<state key="normal" title="取消"/> <state key="normal" title="取消">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections> <connections>
<action selector="cancelButtonClick:" destination="-1" eventType="touchUpInside" id="N17-5d-yqF"/> <action selector="cancelButtonClick:" destination="-1" eventType="touchUpInside" id="N17-5d-yqF"/>
</connections> </connections>
...@@ -97,7 +99,9 @@ ...@@ -97,7 +99,9 @@
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QSY-YC-rrl"> <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QSY-YC-rrl">
<rect key="frame" x="98" y="162" width="160" height="30"/> <rect key="frame" x="98" y="162" width="160" height="30"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/> <color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<state key="normal" title="城市选择"/> <state key="normal" title="城市选择">
<color key="titleColor" red="0.34901960784313724" green="0.67450980392156867" blue="0.86274509803921573" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button> </button>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UeJ-Cx-EfL"> <view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UeJ-Cx-EfL">
<rect key="frame" x="98" y="73" width="160" height="30"/> <rect key="frame" x="98" y="73" width="160" height="30"/>
......
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
#pragma mark -新增或者修改收货地址 #pragma mark -新增或者修改收货地址
- (void)CreateModifyShippingView:(AddressModel *)model - (void)CreateModifyShippingView:(AddressModel *)model Withindex:(NSInteger)cellindex
{ {
AddressViewController *address = [[AddressViewController alloc]init]; AddressViewController *address = [[AddressViewController alloc]init];
...@@ -314,6 +314,7 @@ ...@@ -314,6 +314,7 @@
address.model = model; address.model = model;
address.isChange = YES; address.isChange = YES;
} }
address.cellindex = cellindex;
address.preferredContentSize = CGSizeMake(315, 320); address.preferredContentSize = CGSizeMake(315, 320);
address.modalPresentationStyle = UIModalPresentationFormSheet; address.modalPresentationStyle = UIModalPresentationFormSheet;
UIPopoverPresentationController *pop = address.popoverPresentationController; UIPopoverPresentationController *pop = address.popoverPresentationController;
...@@ -395,6 +396,7 @@ ...@@ -395,6 +396,7 @@
orderDetails.orderCode = returnValue[@"data"]; orderDetails.orderCode = returnValue[@"data"];
orderDetails.sectionTitle = @[@"订单信息",@"客户信息",@"收货信息",@"商品清单"]; orderDetails.sectionTitle = @[@"订单信息",@"客户信息",@"收货信息",@"商品清单"];
orderDetails.isShowattachment = NO; orderDetails.isShowattachment = NO;
orderDetails.isShowPayButton = YES;
[self.navigationController pushViewController:orderDetails animated:YES]; [self.navigationController pushViewController:orderDetails animated:YES];
}else }else
...@@ -463,7 +465,7 @@ ...@@ -463,7 +465,7 @@
//判断是否为选中 //判断是否为选中
if (model.isSelected) { if (model.isSelected) {
[self CreateModifyShippingView:[arr objectAtIndex_opple:i]]; [self CreateModifyShippingView:[arr objectAtIndex_opple:i] Withindex:i];
} }
} }
} }
...@@ -473,7 +475,7 @@ ...@@ -473,7 +475,7 @@
#pragma mark -新增地址 #pragma mark -新增地址
- (void)AddAddressButtonClick - (void)AddAddressButtonClick
{ {
[self CreateModifyShippingView:nil]; [self CreateModifyShippingView:nil Withindex:0];
} }
...@@ -486,6 +488,15 @@ ...@@ -486,6 +488,15 @@
[self.generateOrderTableview insertRowsAtIndexPaths:@[indexpath] withRowAnimation:UITableViewRowAnimationLeft]; [self.generateOrderTableview insertRowsAtIndexPaths:@[indexpath] withRowAnimation:UITableViewRowAnimationLeft];
} }
#pragma mark -修改地址回调
- (void)ChangeAddresscell:(AddressModel *)model Withcellindex:(NSInteger)cellindex
{
[self dismissViewControllerAnimated:YES completion:nil];
[[self.datasArray objectAtIndex_opple:1]replaceObjectAtIndex:cellindex withObject:model];
NSIndexPath *indexpath = [NSIndexPath indexPathForRow:cellindex inSection:1];
[self.generateOrderTableview reloadRowsAtIndexPaths:@[indexpath] withRowAnimation:UITableViewRowAnimationLeft];
}
#pragma mark -删除地址 #pragma mark -删除地址
- (void)delecteCell:(NSString *)addressid - (void)delecteCell:(NSString *)addressid
{ {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
/** /**
* 当前商品数量、成交价 * 当前商品数量、成交价
*/ */
- (void)ChangeGoodsNumber:(int)goodsNumber WithcostPrice:(NSInteger)costprice Withcellindex:(NSInteger)cellindex; - (void)ChangeGoodsNumber:(int)goodsNumber WithcostPrice:(int)costprice Withcellindex:(NSInteger)cellindex;
@end @end
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
@interface ShoppingTableViewCell : UITableViewCell @interface ShoppingTableViewCell : UITableViewCell<UITextFieldDelegate>
/** /**
* 选中 * 选中
...@@ -95,6 +95,9 @@ ...@@ -95,6 +95,9 @@
*/ */
@property (nonatomic,assign) id<ChangeGoodsNumberDelegate>delegate; @property (nonatomic,assign) id<ChangeGoodsNumberDelegate>delegate;
/**
* 提示框回调
*/
@property (nonatomic,copy) void(^promptStringBlock)(NSString *string);
@end @end
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
{ {
self.ClinchPriceBackView.layer.masksToBounds = YES; self.ClinchPriceBackView.layer.masksToBounds = YES;
self.ClinchPriceBackView.layer.cornerRadius = kCornerRadius; self.ClinchPriceBackView.layer.cornerRadius = kCornerRadius;
self.clinchTextfield.delegate = self;
} }
#pragma mark -赋值 #pragma mark -赋值
...@@ -36,9 +37,6 @@ ...@@ -36,9 +37,6 @@
self.clinchTextfield.text = [_model.goods.costPrice stringValue]; self.clinchTextfield.text = [_model.goods.costPrice stringValue];
self.goodsNumbersLabe.text = [NSString stringWithFormat:@"%d",_model.goodsNum]; self.goodsNumbersLabe.text = [NSString stringWithFormat:@"%d",_model.goodsNum];
self.productPriceLabe.text = [_model.goods.costPrice stringValue]; self.productPriceLabe.text = [_model.goods.costPrice stringValue];
} }
#pragma mark -增加或者减少商品 #pragma mark -增加或者减少商品
...@@ -55,6 +53,9 @@ ...@@ -55,6 +53,9 @@
{ {
if (goodsNumber <= 1) { if (goodsNumber <= 1) {
if (self.promptStringBlock) {
self.promptStringBlock(@"个数不能小于1");
}
//不能小于1 //不能小于1
return; return;
} }
...@@ -68,7 +69,9 @@ ...@@ -68,7 +69,9 @@
if (goodsNumber >= [_model.goods.number integerValue]) { if (goodsNumber >= [_model.goods.number integerValue]) {
//不能大于库存 //不能大于库存
if (self.promptStringBlock) {
self.promptStringBlock(@"个数不能大于库存");
}
return; return;
} }
goodsNumber ++; goodsNumber ++;
...@@ -84,7 +87,7 @@ ...@@ -84,7 +87,7 @@
self.productPriceLabe.text = [NSString stringWithFormat:@"¥%ld",[self.goodsNumbersLabe.text integerValue]*[_model.goods.costPrice integerValue]]; self.productPriceLabe.text = [NSString stringWithFormat:@"¥%ld",[self.goodsNumbersLabe.text integerValue]*[_model.goods.costPrice integerValue]];
if ([self.delegate respondsToSelector:@selector(ChangeGoodsNumber:WithcostPrice:Withcellindex:)]) { if ([self.delegate respondsToSelector:@selector(ChangeGoodsNumber:WithcostPrice:Withcellindex:)]) {
[self.delegate ChangeGoodsNumber:[self.goodsNumbersLabe.text intValue] WithcostPrice:[self.clinchTextfield.text integerValue]Withcellindex:_cellindex]; [self.delegate ChangeGoodsNumber:[self.goodsNumbersLabe.text intValue] WithcostPrice:[self.clinchTextfield.text intValue]Withcellindex:_cellindex];
} }
} }
...@@ -100,6 +103,33 @@ ...@@ -100,6 +103,33 @@
} }
#pragma mark -成交价完成修改
- (BOOL)textFieldShouldEndEditing:(UITextField *)textField
{
if (![self isPureInt:textField.text]) {
if (self.promptStringBlock) {
self.promptStringBlock(@"输入格式错误");
return NO;
}
}
//改变价格
self.productPriceLabe.text = [NSString stringWithFormat:@"¥%ld",[self.goodsNumbersLabe.text integerValue]*[textField.text integerValue]];
if ([self.delegate respondsToSelector:@selector(ChangeGoodsNumber:WithcostPrice:Withcellindex:)]) {
[self.delegate ChangeGoodsNumber:[self.goodsNumbersLabe.text intValue] WithcostPrice:[self.clinchTextfield.text intValue]Withcellindex:_cellindex];
}
return YES;
}
#pragma mark - 判断是否是纯数字
- (BOOL)isPureInt:(NSString*)string{
NSScanner* scan = [NSScanner scannerWithString:string];
int val;
return[scan scanInt:&val] && [scan isAtEnd];
}
......
...@@ -153,7 +153,6 @@ ...@@ -153,7 +153,6 @@
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{ {
ShoppingTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Shopping" forIndexPath:indexPath]; ShoppingTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Shopping" forIndexPath:indexPath];
...@@ -166,6 +165,10 @@ ...@@ -166,6 +165,10 @@
[self setSelectedButton:index]; [self setSelectedButton:index];
}]; }];
//提示框回调
[cell setPromptStringBlock:^(NSString *string) {
[self ErrorMBProgressView:string];
}];
return cell; return cell;
} }
...@@ -377,7 +380,7 @@ ...@@ -377,7 +380,7 @@
#pragma mark -改变商品数量 #pragma mark -改变商品数量
- (void)ChangeGoodsNumber:(int)goodsNumber WithcostPrice:(NSInteger)costprice Withcellindex:(NSInteger)cellindex - (void)ChangeGoodsNumber:(int)goodsNumber WithcostPrice:(int)costprice Withcellindex:(NSInteger)cellindex
{ {
//保存商品数量 //保存商品数量
ShopcarModel *model = [self.shopResponseArray objectAtIndex_opple:cellindex]; ShopcarModel *model = [self.shopResponseArray objectAtIndex_opple:cellindex];
...@@ -390,14 +393,34 @@ ...@@ -390,14 +393,34 @@
// [self.shopResponseArray replaceObjectAtIndex:cellindex withObject:Newmodel]; // [self.shopResponseArray replaceObjectAtIndex:cellindex withObject:Newmodel];
[self CalculateSelectedGoodsAllprice]; [self CalculateSelectedGoodsAllprice];
////在服务器保存数量、成交价
//购物车ID
NSString *carid = [[self.shopResponseArray objectAtIndex_opple:cellindex] fid];
//商品id
NSString *goodsis = [[[self.shopResponseArray objectAtIndex_opple:cellindex] goods] fid];
//成交价
NSString *costpriceString = [NSString stringWithFormat:@"%d",costprice];
//商品数量
NSString *goodsNumberString = [NSString stringWithFormat:@"%d",goodsNumber];
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@%@/%@/%@/%@",ServerAddress,@"/shopcart/updateCostPrice/",carid,goodsis,costpriceString,goodsNumberString] WithRequestType:1 WithParameter:nil WithReturnValueBlock:^(id returnValue) {
if ([returnValue[@"code"] isEqualToNumber:@0]) {
NSLog(@"写入服务器成功");
}
} WithErrorCodeBlock:^(id errorCodeValue) {
} WithFailureBlock:^(id error) {
NSLog(@"%@",error);
NSLog(@"写入服务器失败");
}];
} }
#pragma mark -在服务器保存更改后的成交价和数量
- (void)ServerRequestForChangePriceAndNumber
{
}
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@interface CustomTabbarController : UITabBarController @interface CustomTabbarController : UITabBarController<UITabBarControllerDelegate>
......
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
*/ */
@property (nonatomic,strong) UIButton *Newbutton; @property (nonatomic,strong) UIButton *Newbutton;
/**
* 控制器数组
*/
@property (nonatomic,strong) NSArray *vcArray;
@end @end
@implementation CustomTabbarController @implementation CustomTabbarController
...@@ -92,6 +97,7 @@ ...@@ -92,6 +97,7 @@
Toolview *toolview = [[Toolview alloc]initWithFrame:CGRectMake(Zero, Zero, ScreenWidth, NavigationHeight)]; Toolview *toolview = [[Toolview alloc]initWithFrame:CGRectMake(Zero, Zero, ScreenWidth, NavigationHeight)];
toolview.delegate = self; toolview.delegate = self;
toolview.inputField.delegate = self; toolview.inputField.delegate = self;
self.delegate = self;
[self.tabBar addSubview:toolview]; [self.tabBar addSubview:toolview];
} }
...@@ -124,8 +130,8 @@ ...@@ -124,8 +130,8 @@
UINavigationController *cutomerorderNav = [[UINavigationController alloc]initWithRootViewController:customerOrderVC]; UINavigationController *cutomerorderNav = [[UINavigationController alloc]initWithRootViewController:customerOrderVC];
UINavigationController *aboutNav = [[UINavigationController alloc]initWithRootViewController:aboutVC]; UINavigationController *aboutNav = [[UINavigationController alloc]initWithRootViewController:aboutVC];
NSArray *vcArray = [NSArray arrayWithObjects:aboutNav,cutomerorderNav,allcustomerNav,customerNav,productNav,sceneNav,followNav,clientNav,shoppingNav,searchNav, nil]; self.vcArray = [NSArray arrayWithObjects:aboutNav,cutomerorderNav,allcustomerNav,customerNav,productNav,sceneNav,followNav,clientNav,shoppingNav,searchNav, nil];
self.viewControllers = vcArray; self.viewControllers = self.vcArray;
self.selectedIndex = 7; self.selectedIndex = 7;
} }
...@@ -275,6 +281,25 @@ ...@@ -275,6 +281,25 @@
return YES; return YES;
} }
#pragma mark -自定义选中
- (void)setSelectedIndex:(NSUInteger)selectedIndex
{
[super setSelectedIndex:selectedIndex];
[self tabBarController:self didSelectViewController:[self.vcArray objectAtIndex_opple:selectedIndex]];
}
#pragma mark -回到最上层
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
{
if ([viewController isKindOfClass:[UINavigationController class]]) {
UINavigationController *navVC = (UINavigationController *)viewController;
[navVC popToRootViewControllerAnimated:NO];
}
}
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
29F725FE1CE1928F0072FE0E /* opple_objc_json_client.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F725FD1CE1928F0072FE0E /* opple_objc_json_client.m */; }; 29F725FE1CE1928F0072FE0E /* opple_objc_json_client.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F725FD1CE1928F0072FE0E /* opple_objc_json_client.m */; };
29F726011CE1D05D0072FE0E /* ScreeningCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F726001CE1D05D0072FE0E /* ScreeningCollectionReusableView.m */; }; 29F726011CE1D05D0072FE0E /* ScreeningCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F726001CE1D05D0072FE0E /* ScreeningCollectionReusableView.m */; };
29F726041CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F726031CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.m */; }; 29F726041CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F726031CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.m */; };
BF53D4B7E2EE4CFF549FF699 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DB768A1F2B4AFFF8B89F1D1 /* libPods.a */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
...@@ -363,6 +364,7 @@ ...@@ -363,6 +364,7 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
04F9EE221CF27B1D00BD729F /* CoreTelephony.framework in Frameworks */, 04F9EE221CF27B1D00BD729F /* CoreTelephony.framework in Frameworks */,
BF53D4B7E2EE4CFF549FF699 /* libPods.a in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -470,6 +472,15 @@ ...@@ -470,6 +472,15 @@
path = tools; path = tools;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
2902E1301CF2907200268161 /* RefreshHeader */ = {
isa = PBXGroup;
children = (
29D260FE1CEEF16D00A9787D /* MjRefreshHeaderCustom.h */,
29D260FF1CEEF16D00A9787D /* MjRefreshHeaderCustom.m */,
);
name = RefreshHeader;
sourceTree = "<group>";
};
2906B5D31CD8920F000849B4 /* Controller */ = { 2906B5D31CD8920F000849B4 /* Controller */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -532,6 +543,7 @@ ...@@ -532,6 +543,7 @@
2928F7DE1CD085430036D761 /* Tools */ = { 2928F7DE1CD085430036D761 /* Tools */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
2902E1301CF2907200268161 /* RefreshHeader */,
294CF0E91CEDCF250055F1D8 /* PromptinformationView */, 294CF0E91CEDCF250055F1D8 /* PromptinformationView */,
29A9DCAA1CEB63BD00A7567A /* PreviewPDF */, 29A9DCAA1CEB63BD00A7567A /* PreviewPDF */,
2985AE9A1CE72F1500704C91 /* ZXPUnicode */, 2985AE9A1CE72F1500704C91 /* ZXPUnicode */,
...@@ -548,8 +560,6 @@ ...@@ -548,8 +560,6 @@
2928F8351CD09E500036D761 /* CustomButton */, 2928F8351CD09E500036D761 /* CustomButton */,
2928F7E41CD087C20036D761 /* parentclass */, 2928F7E41CD087C20036D761 /* parentclass */,
2928F7E31CD087B60036D761 /* pch */, 2928F7E31CD087B60036D761 /* pch */,
29D260FE1CEEF16D00A9787D /* MjRefreshHeaderCustom.h */,
29D260FF1CEEF16D00A9787D /* MjRefreshHeaderCustom.m */,
); );
path = Tools; path = Tools;
sourceTree = "<group>"; sourceTree = "<group>";
......
{
"images" : [
{
"idiom" : "universal",
"filename" : "aboutus.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
...@@ -14,7 +14,7 @@ PODS: ...@@ -14,7 +14,7 @@ PODS:
- AFNetworking/Serialization (3.1.0) - AFNetworking/Serialization (3.1.0)
- AFNetworking/UIKit (3.1.0): - AFNetworking/UIKit (3.1.0):
- AFNetworking/NSURLSession - AFNetworking/NSURLSession
- IQKeyboardManager (4.0.2) - IQKeyboardManager (4.0.3)
- JSONModel (1.2.0) - JSONModel (1.2.0)
- Masonry (0.6.4) - Masonry (0.6.4)
- MBProgressHUD (0.9.2) - MBProgressHUD (0.9.2)
...@@ -32,9 +32,9 @@ PODS: ...@@ -32,9 +32,9 @@ PODS:
- MMDrawerController/Core - MMDrawerController/Core
- MMDrawerController/Subclass (0.6.0): - MMDrawerController/Subclass (0.6.0):
- MMDrawerController/Core - MMDrawerController/Core
- SDWebImage (3.7.5): - SDWebImage (3.7.6):
- SDWebImage/Core (= 3.7.5) - SDWebImage/Core (= 3.7.6)
- SDWebImage/Core (3.7.5) - SDWebImage/Core (3.7.6)
- SVProgressHUD (2.0.3) - SVProgressHUD (2.0.3)
DEPENDENCIES: DEPENDENCIES:
...@@ -51,14 +51,14 @@ DEPENDENCIES: ...@@ -51,14 +51,14 @@ DEPENDENCIES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67 AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
IQKeyboardManager: 2341089c4ae25fa2fa82ce356a259fcd267dc6b6 IQKeyboardManager: be9695ffc5a52077deb4847608f338771022d6d1
JSONModel: 12523685c4b623553ccf844bbbf7007624317b2c JSONModel: 12523685c4b623553ccf844bbbf7007624317b2c
Masonry: 281802d04d787ea2973179ee8bcb50500579ede2 Masonry: 281802d04d787ea2973179ee8bcb50500579ede2
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1 MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
MJExtension: d86aacb740c87519d20e3cca55b6fa4be6cc7548 MJExtension: d86aacb740c87519d20e3cca55b6fa4be6cc7548
MJRefresh: 743e6404967d1c2c688472ea3ecfde247d872db4 MJRefresh: 743e6404967d1c2c688472ea3ecfde247d872db4
MMDrawerController: e3a54a5570388463ad3b36975251575b50c4e1a0 MMDrawerController: e3a54a5570388463ad3b36975251575b50c4e1a0
SDWebImage: 69c6303e3348fba97e03f65d65d4fbc26740f461 SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9
SVProgressHUD: b0830714205bea1317ea1a2ebc71e5633af334d4 SVProgressHUD: b0830714205bea1317ea1a2ebc71e5633af334d4
COCOAPODS: 0.39.0 COCOAPODS: 0.39.0
...@@ -613,13 +613,13 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -613,13 +613,13 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *createDate; @property (nonatomic, copy) NSString *createDate;
/** /**
* 方法: 取得java.util.Date * 方法: 取得java.util.Date
* *
* *
*/ */
@property (nonatomic, strong) NSDate *onlineTime; @property (nonatomic, copy) NSString *onlineTime;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -949,7 +949,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -949,7 +949,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *createDate; @property (nonatomic, copy) NSString *createDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -967,7 +967,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -967,7 +967,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *updateDate; @property (nonatomic, copy) NSString *updateDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -985,7 +985,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -985,7 +985,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *orderTime; @property (nonatomic, copy) NSString *orderTime;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -1135,7 +1135,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -1135,7 +1135,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *createDate; @property (nonatomic, copy) NSString *createDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -1231,7 +1231,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -1231,7 +1231,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *createDate; @property (nonatomic, copy) NSString *createDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -1249,7 +1249,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -1249,7 +1249,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *updateDate; @property (nonatomic, copy) NSString *updateDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -1573,7 +1573,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -1573,7 +1573,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *createDate; @property (nonatomic, copy) NSString *createDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -1657,7 +1657,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -1657,7 +1657,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *createDate; @property (nonatomic, copy) NSString *createDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -1711,7 +1711,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -1711,7 +1711,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *lastVisitedTime; @property (nonatomic, copy) NSString *lastVisitedTime;
@end /* interface TOConsumerEntity */ @end /* interface TOConsumerEntity */
#endif #endif
...@@ -2334,7 +2334,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -2334,7 +2334,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *createDate; @property (nonatomic, copy) NSString *createDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
...@@ -2352,7 +2352,7 @@ extern NSString * const SORTDIRECTION_DESC; ...@@ -2352,7 +2352,7 @@ extern NSString * const SORTDIRECTION_DESC;
* *
* *
*/ */
@property (nonatomic, strong) NSDate *updateDate; @property (nonatomic, copy) NSString *updateDate;
/** /**
* 方法: 取得java.lang.String * 方法: 取得java.lang.String
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment