Commit 7be88176 authored by 曹云霄's avatar 曹云霄

创建了所有的模块控制器并加入tabbar控制器统一管理,完成订单详情页布局、客户详情页布局

parent d5e8b4b0
//
// CustomerdetailsController.h
// AboutViewController.h
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface CustomerdetailsController : BaseViewController
@interface AboutViewController : BaseViewController
@end
//
// CustomerdetailsController.m
// AboutViewController.m
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "CustomerdetailsController.h"
#import "AboutViewController.h"
@interface CustomerdetailsController ()
@interface AboutViewController ()
@end
@implementation CustomerdetailsController
@implementation AboutViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor purpleColor];
}
- (void)didReceiveMemoryWarning {
......
//
// AllpriceTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AllpriceTableViewCell : UITableViewCell
/**
* 商品总数量
*/
@property (weak, nonatomic) IBOutlet UILabel *goodsAllNumber;
/**
* 商品总价格
*/
@property (weak, nonatomic) IBOutlet UILabel *goodsAllPrice;
@end
//
// AllpriceTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "AllpriceTableViewCell.h"
@implementation AllpriceTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
//
// AttachmentInformationTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AttachmentInformationTableViewCell : UITableViewCell
/**
* 是否开票
*/
@property (weak, nonatomic) IBOutlet UILabel *whetherInvoice;
/**
* 发票抬头
*/
@property (weak, nonatomic) IBOutlet UILabel *InvoiceHeader;
/**
* 发票类型
*/
@property (weak, nonatomic) IBOutlet UILabel *invoicetype;
@end
//
// AttachmentInformationTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "AttachmentInformationTableViewCell.h"
@implementation AttachmentInformationTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
......@@ -8,6 +8,9 @@
#import "ClientdetailsViewController.h"
#import "ClientDetailsTableViewCell.h"
#import "OrderTableViewCell.h"
#import "OrderdetailsViewController.h"
@interface ClientdetailsViewController ()<UITableViewDelegate,UITableViewDataSource>
/**
......@@ -47,14 +50,23 @@
self.shoppingBagButton.selected = YES;
self.shoppingBagButton.backgroundColor = [UIColor whiteColor];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (self.shoppingBagButton.selected) {
ClientDetailsTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ClientDetails" forIndexPath:indexPath];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}else if (self.orderRecordButton.selected)
{
OrderTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ordercell" forIndexPath:indexPath];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}
return nil;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
......@@ -64,9 +76,24 @@
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (self.shoppingBagButton.selected) {
return 100;
}
else if (self.orderRecordButton.selected)
{
return 200;
}
return 0;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardwithCYX" bundle:nil];
OrderdetailsViewController *orderdetails = [storyboard instantiateViewControllerWithIdentifier:@"orderdetails"];
[self.navigationController pushViewController:orderdetails animated:YES];
}
......@@ -90,7 +117,8 @@
sender.backgroundColor = [UIColor whiteColor];
sender.selected = YES;
self.orderRecordButton.selected = NO;
self.orderRecordButton.backgroundColor = kMainColor;
self.orderRecordButton.backgroundColor = kMainBlueColor;
[self.ClientdetailsTableview reloadData];
}
#pragma mark -订单记录
......@@ -100,7 +128,8 @@
sender.backgroundColor = [UIColor whiteColor];
sender.selected = YES;
self.shoppingBagButton.selected = NO;
self.shoppingBagButton.backgroundColor = kMainColor;
self.shoppingBagButton.backgroundColor = kMainBlueColor;
[self.ClientdetailsTableview reloadData];
}
......
//
// CommodityListTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CommodityListTableViewCell : UITableViewCell
/**
* 商品图片
*/
@property (weak, nonatomic) IBOutlet UIImageView *goodsHeader;
/**
* 商品名字
*/
@property (weak, nonatomic) IBOutlet UILabel *goodsName;
/**
* 商品数量
*/
@property (weak, nonatomic) IBOutlet UILabel *goodsNumber;
/**
* 成交价格
*/
@property (weak, nonatomic) IBOutlet UILabel *clinchPrice;
/**
* 小计
*/
@property (weak, nonatomic) IBOutlet UILabel *totalPrice;
@end
//
// CommodityListTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "CommodityListTableViewCell.h"
@implementation CommodityListTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
//
// CustomerManagementViewController.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface CustomerManagementViewController : BaseViewController
@end
//
// CustomerManagementViewController.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "CustomerManagementViewController.h"
@interface CustomerManagementViewController ()
@end
@implementation CustomerManagementViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor greenColor];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
//
// FollowHeartViewController.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface FollowHeartViewController : BaseViewController
@end
//
// FollowHeartViewController.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "FollowHeartViewController.h"
@interface FollowHeartViewController ()
@end
@implementation FollowHeartViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor redColor];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
//
// GoodsInformationTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GoodsInformationTableViewCell : UITableViewCell
/**
* 收货人
*/
@property (weak, nonatomic) IBOutlet UILabel *consigneeName;
/**
* 电子邮箱
*/
@property (weak, nonatomic) IBOutlet UILabel *emailName;
/**
* 详细地址
*/
@property (weak, nonatomic) IBOutlet UILabel *detailsAddress;
/**
* 手机号码
*/
@property (weak, nonatomic) IBOutlet UILabel *consigneePhoneNumber;
/**
* 物流公司
*/
@property (weak, nonatomic) IBOutlet UILabel *logisticsCompany;
@end
//
// GoodsInformationTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "GoodsInformationTableViewCell.h"
@implementation GoodsInformationTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
......@@ -9,14 +9,30 @@
#import "LoginViewController.h"
#import "CustomTabbarController.h"
#import "AppDelegate.h"
@interface LoginViewController ()
@interface LoginViewController ()<RightVCselectedDelegate>
@property (weak, nonatomic) IBOutlet UIButton *loginButton;
@property (nonatomic,strong) MMDrawerController *drawerController;
@property (nonatomic,strong) CustomTabbarController *customtabbar;
@end
@implementation LoginViewController
- (CustomTabbarController *)customtabbar
{
if (_customtabbar == nil) {
_customtabbar = [[CustomTabbarController alloc]init];
}
return _customtabbar;
}
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
......@@ -27,9 +43,9 @@
#pragma mark -登陆
- (IBAction)LoginButtonClick:(UIButton *)sender {
CustomTabbarController *customtabbar = [[CustomTabbarController alloc]init];
RightViewController *rightVC = [[RightViewController alloc]init];
self.drawerController = [[MMDrawerController alloc]initWithCenterViewController:customtabbar rightDrawerViewController:rightVC];
rightVC.delegate = self;
self.drawerController = [[MMDrawerController alloc]initWithCenterViewController:self.customtabbar rightDrawerViewController:rightVC];
[self.drawerController setMaximumRightDrawerWidth:RightWidth];
[self.drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
[self.drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
......@@ -39,6 +55,46 @@
}
#pragma mark -RightVCselectedDelegate 方法
- (void)SelectedControllerWithIndex:(NSInteger)index
{
NSInteger selectedIndex;
switch (index) {
case 0:
{
selectedIndex = 4;
}
break;
case 1:
{
selectedIndex = 3;
}
break;
case 2:
{
selectedIndex = 2;
}
break;
case 3:
{
selectedIndex = 1;
}
break;
case 4:
{
selectedIndex = 0;
}
break;
default:
break;
}
self.customtabbar.selectedIndex = selectedIndex;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
//
// OrderInformationTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OrderInformationTableViewCell : UITableViewCell
/**
* 订单编号
*/
@property (weak, nonatomic) IBOutlet UILabel *orderNumber;
/**
* 下单日期
*/
@property (weak, nonatomic) IBOutlet UILabel *orderTime;
/**
* 订单状态
*/
@property (weak, nonatomic) IBOutlet UILabel *orderStatus;
/**
* 操作员
*/
@property (weak, nonatomic) IBOutlet UILabel *operatorName;
@end
//
// OrderInformationTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "OrderInformationTableViewCell.h"
@implementation OrderInformationTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
//
// OrderTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OrderTableViewCell : UITableViewCell
@end
//
// OrderTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "OrderTableViewCell.h"
@implementation OrderTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
//
// OrderdetailsViewController.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface OrderdetailsViewController : BaseViewController
/**
* 订单详情tableview
*/
@property (weak, nonatomic) IBOutlet UITableView *orderDetailsTableview;
@end
//
// OrderdetailsViewController.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "OrderdetailsViewController.h"
#import "OrderInformationTableViewCell.h"
#import "PersonInformationTableViewCell.h"
#import "GoodsInformationTableViewCell.h"
#import "CommodityListTableViewCell.h"
#import "AllpriceTableViewCell.h"
#import "AttachmentInformationTableViewCell.h"
@interface OrderdetailsViewController ()<UITableViewDelegate,UITableViewDataSource>
@end
@implementation OrderdetailsViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self uiConfigAction];
}
#pragma mark - UI
- (void)uiConfigAction
{
self.orderDetailsTableview.dataSource = self;
self.orderDetailsTableview.delegate = self;
// self.orderDetailsTableview.tableFooterView = [UIView new];
[self CreateTableviewHeaderView];
[self CreateTableviewFooterView];
}
#pragma mark -TableviewHeader------根据不同的订单状态判断是否显示
- (void)CreateTableviewHeaderView
{
UIView *headerView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 60)];
//预览
UIButton *previewButton = [UIButton buttonWithType:UIButtonTypeSystem];
previewButton.frame = CGRectMake(50, 15, 150, 30);
[previewButton setTitle:@"预览" forState:UIControlStateNormal];
previewButton.titleLabel.font = [UIFont systemFontOfSize:12];
[previewButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
previewButton.backgroundColor = kMainBlueColor;
previewButton.layer.masksToBounds = YES;
previewButton.layer.cornerRadius = kCornerRadius;
[headerView addSubview:previewButton];
//打印
UIButton *printButton = [UIButton buttonWithType:UIButtonTypeSystem];
printButton.frame = CGRectMake(ScreenWidth-50-150, 15, 150, 30);
[printButton setTitle:@"打印" forState:UIControlStateNormal];
[printButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
printButton.titleLabel.font = [UIFont systemFontOfSize:12];
printButton.layer.masksToBounds = YES;
printButton.layer.cornerRadius = kCornerRadius;
printButton.backgroundColor = kMainBlueColor;
[headerView addSubview:printButton];
//横线
UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(0, 59, ScreenWidth, 1)];
lineView.backgroundColor = kTCColor(193, 193, 193);
[headerView addSubview:lineView];
self.orderDetailsTableview.tableHeaderView = headerView;
}
#pragma mark -TableviewFooterView------根据不同的订单状态判断支付按钮是否显示
- (void)CreateTableviewFooterView
{
UIView *footerView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 100)];
//支付
UIButton *payButton = [UIButton buttonWithType:UIButtonTypeSystem];
payButton.frame = CGRectMake((ScreenWidth-150)/2, 30, 150, 40);
[payButton setTitle:@"支付" forState:UIControlStateNormal];
payButton.titleLabel.font = [UIFont systemFontOfSize:12];
[payButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
payButton.backgroundColor = kMainBlueColor;
payButton.layer.masksToBounds = YES;
payButton.layer.cornerRadius = kCornerRadius;
[footerView addSubview:payButton];
self.orderDetailsTableview.tableFooterView = footerView;
}
#pragma mark - Table view data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
switch (section) {
case 0:
{
return 1;
}
break;
case 1:
{
return 1;
}
break;
case 2:
{
return 1;
}
break;
case 3:
{
return 3;
}
break;
case 4:
{
return 1;
}
break;
default:
break;
}
return 0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
switch (indexPath.section) {
case 0://订单信息
{
OrderInformationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"firstcell" forIndexPath:indexPath];
return cell;
}
break;
case 1://客户信息
{
PersonInformationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"secondcell" forIndexPath:indexPath];
return cell;
}
break;
case 2://收货信息
{
GoodsInformationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"thirdcell" forIndexPath:indexPath];
return cell;
}
break;
case 3://商品清单
{
if (indexPath.row == 2) {
//商品总计
AllpriceTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"sixthcell" forIndexPath:indexPath];
return cell;
}else
{
//单个商品
CommodityListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"fourthcell" forIndexPath:indexPath];
return cell;
}
}
break;
case 4://附件信息
{
AttachmentInformationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"fifthcell" forIndexPath:indexPath];
return cell;
}
break;
default:
break;
}
return nil;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
switch (indexPath.section) {
case 0:
{
return 84;
}
break;
case 1:
{
return 140;
}
break;
case 2:
{
return 110;
}
break;
case 3:
{
//商品总计
if (indexPath.row == 2) {
return 50;
}
else
{
//单个商品
return 80;
}
}
break;
case 4:
{
return 75;
}
break;
default:
break;
}
return 100;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 44)];
view.backgroundColor = kMainGrayColor;
//区头文字
UILabel *Titlelabe = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, ScreenWidth, 34)];
Titlelabe.backgroundColor = [UIColor whiteColor];
Titlelabe.text = @" 订单详情";
Titlelabe.font = [UIFont systemFontOfSize:13];
[view addSubview:Titlelabe];
return view;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 44;
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 5;
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
//
// PersonInformationTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PersonInformationTableViewCell : UITableViewCell
/**
* 客户头像
*/
@property (weak, nonatomic) IBOutlet UIImageView *customerHeader;
/**
* 客户姓名
*/
@property (weak, nonatomic) IBOutlet UILabel *customerName;
/**
* 公司名称
*/
@property (weak, nonatomic) IBOutlet UILabel *companyName;
/**
* 电子邮箱
*/
@property (weak, nonatomic) IBOutlet UILabel *emailName;
/**
* 公司地址
*/
@property (weak, nonatomic) IBOutlet UILabel *companyLocation;
/**
* 手机号码
*/
@property (weak, nonatomic) IBOutlet UILabel *customerPhoneNumber;
/**
* 电话号码
*/
@property (weak, nonatomic) IBOutlet UILabel *customerNumbers;
/**
* QQ
*/
@property (weak, nonatomic) IBOutlet UILabel *customerQQNumber;
@end
//
// PersonInformationTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "PersonInformationTableViewCell.h"
@implementation PersonInformationTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
//
// ProductLibraryViewController.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface ProductLibraryViewController : BaseViewController
@end
//
// ProductLibraryViewController.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "ProductLibraryViewController.h"
@interface ProductLibraryViewController ()
@end
@implementation ProductLibraryViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor blueColor];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
......@@ -8,6 +8,26 @@
#import "BaseViewController.h"
/**
* 右侧控制器选中代理
*/
@protocol RightVCselectedDelegate <NSObject>
/**
* 选中控制器返回当前下标
*
*/
@required
- (void)SelectedControllerWithIndex:(NSInteger)index;
@end
@interface RightViewController : BaseViewController
@property (nonatomic,strong) id<RightVCselectedDelegate>delegate;
@end
......@@ -8,6 +8,12 @@
#import "RightViewController.h"
#import "AppDelegate.h"
@interface RightViewController ()<UITableViewDataSource,UITableViewDelegate>
@property (nonatomic,strong) UITableView *rightTableview;
......@@ -26,7 +32,7 @@
{
if (_dataArray == nil) {
_dataArray = [NSArray arrayWithObjects:@"随心配",@"场景库",@"产品库",@"体验中心",@"客户管理",@"关于", nil];
_dataArray = [NSArray arrayWithObjects:@"体验中心",@"场景库",@"产品库",@"客户管理",@"关于", nil];
}
return _dataArray;
}
......@@ -78,31 +84,10 @@
{
//收起右侧控制器
[SHARED_APPDELEGATE.mmdrawer toggleDrawerSide:MMDrawerSideRight animated:YES completion:nil];
switch (indexPath.row) {
case 0: //随心配
break;
case 1: //场景库
break;
case 2: //产品库
break;
case 3: //体验中心
break;
case 4: //客户管理
break;
case 5://关于
break;
if ([self.delegate respondsToSelector:@selector(SelectedControllerWithIndex:)]) {
default:
break;
[self.delegate SelectedControllerWithIndex:indexPath.row];
}
}
......
//
// SceneLibraryViewController.h
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface SceneLibraryViewController : BaseViewController
@end
//
// SceneLibraryViewController.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "SceneLibraryViewController.h"
@interface SceneLibraryViewController ()
@end
@implementation SceneLibraryViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor grayColor];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
......@@ -10,6 +10,12 @@
#import "CustomTabbarController.h"
#import "Toolview.h"
#import "AppDelegate.h"
#import "FollowHeartViewController.h"
#import "SceneLibraryViewController.h"
#import "ProductLibraryViewController.h"
#import "CustomerManagementViewController.h"
#import "AboutViewController.h"
@interface CustomTabbarController ()<TabbarButtonClickdelegate>
......@@ -29,7 +35,7 @@
{
if (_identifierArray == nil) {
_identifierArray = [NSArray arrayWithObjects:@"shopping",@"Client", nil];
_identifierArray = [NSArray arrayWithObjects:@"shopping",@"Client",@"followheart",@"scenelibrary",@"productlibrary",@"customermanager",@"about", nil];
}
return _identifierArray
;
......@@ -60,21 +66,53 @@
{
self.tabBar.frame = CGRectMake(Zero, Zero, ScreenWidth, NavigationHeight);
Toolview *toolview = [[Toolview alloc]initWithFrame:CGRectMake(Zero, Zero, ScreenWidth, NavigationHeight)];
toolview.delegate = self;
[self.tabBar addSubview:toolview];
}
#pragma mark -添加controller
#pragma mark -添加controller到viewControllers
- (void)addViewcontroller
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardwithCYX" bundle:nil];
ShoppingViewController *shoppingVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray firstObject]];
ShoppingViewController *shoppingVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:0]];
ClientViewController *clientVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:1]];
FollowHeartViewController *followVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:2]];
SceneLibraryViewController *sceneVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:3]];
ProductLibraryViewController *productVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:4]];
CustomerManagementViewController *customerVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:5]];
AboutViewController *aboutVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:6]];
UINavigationController *shoppingNav = [[UINavigationController alloc]initWithRootViewController:shoppingVC];
UINavigationController *clientNav = [[UINavigationController alloc]initWithRootViewController:clientVC];
NSArray *vcArray = [NSArray arrayWithObjects:clientNav,shoppingNav, nil];
UINavigationController *followNav = [[UINavigationController alloc]initWithRootViewController:followVC];
UINavigationController *sceneNav = [[UINavigationController alloc]initWithRootViewController:sceneVC];
UINavigationController *productNav = [[UINavigationController alloc]initWithRootViewController:productVC];
UINavigationController *customerNav = [[UINavigationController alloc]initWithRootViewController:customerVC];
UINavigationController *aboutNav = [[UINavigationController alloc]initWithRootViewController:aboutVC];
NSArray *vcArray = [NSArray arrayWithObjects:aboutNav,customerNav,productNav,sceneNav,followNav,clientNav,shoppingNav, nil];
self.viewControllers = vcArray;
self.selectedIndex = 5;
}
#pragma mark -移除系统自带的UITabBarButton
- (void)viewWillLayoutSubviews {
[super viewWillLayoutSubviews];
for (UIView *view in self.tabBar.subviews) {
if ([view isKindOfClass:NSClassFromString(@"UITabBarButton")]) {
[view removeFromSuperview];
}
}
}
......@@ -99,14 +137,14 @@
//我的客户
case 102:
self.selectedIndex = 0;
self.selectedIndex = 5;
break;
//购物车
case 103:
self.selectedIndex = 1;
self.selectedIndex = 6;
break;
......@@ -116,6 +154,9 @@
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
......@@ -18,7 +18,6 @@
2928F8421CD0ABAC0036D761 /* ShoppingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2928F8411CD0ABAC0036D761 /* ShoppingViewController.m */; };
2933934F1CD3158B000D997B /* instructionsLabe.m in Sources */ = {isa = PBXBuildFile; fileRef = 2933934E1CD3158B000D997B /* instructionsLabe.m */; };
293393551CD3379E000D997B /* ShoppingTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 293393541CD3379E000D997B /* ShoppingTableViewCell.m */; };
293393591CD3563C000D997B /* CustomerdetailsController.m in Sources */ = {isa = PBXBuildFile; fileRef = 293393581CD3563C000D997B /* CustomerdetailsController.m */; };
2949BABD1CD2EFA00049385A /* InformationTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2949BABC1CD2EFA00049385A /* InformationTableViewCell.m */; };
2949BAC21CD3055A0049385A /* MMExampleDrawerVisualStateManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2949BAC11CD3055A0049385A /* MMExampleDrawerVisualStateManager.m */; };
2949BAC41CD3086F0049385A /* weibo.png in Resources */ = {isa = PBXBuildFile; fileRef = 2949BAC31CD3086F0049385A /* weibo.png */; };
......@@ -27,12 +26,6 @@
2962D0791CD1CBC60058829D /* NetworkRequestClassManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2962D0781CD1CBC60058829D /* NetworkRequestClassManager.m */; };
2962D07D1CD1E4490058829D /* NSArray+Objectwithindex.m in Sources */ = {isa = PBXBuildFile; fileRef = 2962D07C1CD1E4490058829D /* NSArray+Objectwithindex.m */; };
2962D0811CD1E6010058829D /* UIView+Frame.m in Sources */ = {isa = PBXBuildFile; fileRef = 2962D0801CD1E6010058829D /* UIView+Frame.m */; };
2962D0881CD1EA350058829D /* 1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2962D0821CD1EA350058829D /* 1.jpg */; };
2962D0891CD1EA350058829D /* 2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2962D0831CD1EA350058829D /* 2.jpg */; };
2962D08A1CD1EA350058829D /* 3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2962D0841CD1EA350058829D /* 3.jpg */; };
2962D08B1CD1EA350058829D /* 4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2962D0851CD1EA350058829D /* 4.jpg */; };
2962D08C1CD1EA350058829D /* 5.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2962D0861CD1EA350058829D /* 5.jpg */; };
2962D08D1CD1EA350058829D /* 6.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 2962D0871CD1EA350058829D /* 6.jpg */; };
29706DA61CD082990003C412 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29706DA51CD082990003C412 /* main.m */; };
29706DA91CD082990003C412 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 29706DA81CD082990003C412 /* AppDelegate.m */; };
29706DAF1CD082990003C412 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29706DAD1CD082990003C412 /* Main.storyboard */; };
......@@ -41,7 +34,20 @@
29706DB71CD082990003C412 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29706DB51CD082990003C412 /* LaunchScreen.storyboard */; };
29807C621CD20C2A00F111B8 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29807C611CD20C2A00F111B8 /* Images.xcassets */; };
29807C651CD20F0F00F111B8 /* StoryboardwithCYX.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29807C641CD20F0F00F111B8 /* StoryboardwithCYX.storyboard */; };
299876271CD9837C00C90D0A /* OrderTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 299876261CD9837C00C90D0A /* OrderTableViewCell.m */; };
299876331CD997DF00C90D0A /* OrderInformationTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 299876321CD997DF00C90D0A /* OrderInformationTableViewCell.m */; };
299876361CD997F100C90D0A /* PersonInformationTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 299876351CD997F100C90D0A /* PersonInformationTableViewCell.m */; };
299876391CD9981800C90D0A /* GoodsInformationTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 299876381CD9981800C90D0A /* GoodsInformationTableViewCell.m */; };
2998763C1CD9983A00C90D0A /* CommodityListTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2998763B1CD9983A00C90D0A /* CommodityListTableViewCell.m */; };
2998763F1CD9985B00C90D0A /* AttachmentInformationTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2998763E1CD9985B00C90D0A /* AttachmentInformationTableViewCell.m */; };
299876421CD99E4000C90D0A /* OrderdetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 299876411CD99E4000C90D0A /* OrderdetailsViewController.m */; };
29A8D3981CD85A58004D558F /* ClientdetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29A8D3971CD85A58004D558F /* ClientdetailsViewController.m */; };
29BB27681CD9D38E009A0813 /* AllpriceTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB27671CD9D38E009A0813 /* AllpriceTableViewCell.m */; };
29BB276C1CD9DE74009A0813 /* FollowHeartViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB276B1CD9DE74009A0813 /* FollowHeartViewController.m */; };
29BB27741CD9DFAC009A0813 /* SceneLibraryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB27731CD9DFAC009A0813 /* SceneLibraryViewController.m */; };
29BB27771CD9DFBA009A0813 /* ProductLibraryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB27761CD9DFBA009A0813 /* ProductLibraryViewController.m */; };
29BB277D1CD9DFCB009A0813 /* CustomerManagementViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB277C1CD9DFCB009A0813 /* CustomerManagementViewController.m */; };
29BB27801CD9DFD7009A0813 /* AboutViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB277F1CD9DFD7009A0813 /* AboutViewController.m */; };
745C665EA695DD3EC6271ADE /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DDC80D439AC474587DD59064 /* libPods.a */; };
/* End PBXBuildFile section */
......@@ -68,8 +74,6 @@
2933934E1CD3158B000D997B /* instructionsLabe.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = instructionsLabe.m; sourceTree = "<group>"; };
293393531CD3379E000D997B /* ShoppingTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShoppingTableViewCell.h; sourceTree = "<group>"; };
293393541CD3379E000D997B /* ShoppingTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShoppingTableViewCell.m; sourceTree = "<group>"; };
293393571CD3563C000D997B /* CustomerdetailsController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomerdetailsController.h; sourceTree = "<group>"; };
293393581CD3563C000D997B /* CustomerdetailsController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomerdetailsController.m; sourceTree = "<group>"; };
2949BABB1CD2EFA00049385A /* InformationTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InformationTableViewCell.h; sourceTree = "<group>"; };
2949BABC1CD2EFA00049385A /* InformationTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InformationTableViewCell.m; sourceTree = "<group>"; };
2949BAC01CD3055A0049385A /* MMExampleDrawerVisualStateManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MMExampleDrawerVisualStateManager.h; sourceTree = "<group>"; };
......@@ -85,12 +89,6 @@
2962D07C1CD1E4490058829D /* NSArray+Objectwithindex.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSArray+Objectwithindex.m"; sourceTree = "<group>"; };
2962D07F1CD1E6010058829D /* UIView+Frame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Frame.h"; sourceTree = "<group>"; };
2962D0801CD1E6010058829D /* UIView+Frame.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Frame.m"; sourceTree = "<group>"; };
2962D0821CD1EA350058829D /* 1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 1.jpg; sourceTree = "<group>"; };
2962D0831CD1EA350058829D /* 2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 2.jpg; sourceTree = "<group>"; };
2962D0841CD1EA350058829D /* 3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 3.jpg; sourceTree = "<group>"; };
2962D0851CD1EA350058829D /* 4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 4.jpg; sourceTree = "<group>"; };
2962D0861CD1EA350058829D /* 5.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 5.jpg; sourceTree = "<group>"; };
2962D0871CD1EA350058829D /* 6.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 6.jpg; sourceTree = "<group>"; };
29706DA11CD082990003C412 /* Lighting.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Lighting.app; sourceTree = BUILT_PRODUCTS_DIR; };
29706DA51CD082990003C412 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
29706DA71CD082990003C412 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
......@@ -102,8 +100,34 @@
29706DB81CD082990003C412 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
29807C611CD20C2A00F111B8 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
29807C641CD20F0F00F111B8 /* StoryboardwithCYX.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = StoryboardwithCYX.storyboard; sourceTree = "<group>"; };
299876251CD9837C00C90D0A /* OrderTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderTableViewCell.h; sourceTree = "<group>"; };
299876261CD9837C00C90D0A /* OrderTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OrderTableViewCell.m; sourceTree = "<group>"; };
299876311CD997DF00C90D0A /* OrderInformationTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderInformationTableViewCell.h; sourceTree = "<group>"; };
299876321CD997DF00C90D0A /* OrderInformationTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OrderInformationTableViewCell.m; sourceTree = "<group>"; };
299876341CD997F100C90D0A /* PersonInformationTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PersonInformationTableViewCell.h; sourceTree = "<group>"; };
299876351CD997F100C90D0A /* PersonInformationTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PersonInformationTableViewCell.m; sourceTree = "<group>"; };
299876371CD9981800C90D0A /* GoodsInformationTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GoodsInformationTableViewCell.h; sourceTree = "<group>"; };
299876381CD9981800C90D0A /* GoodsInformationTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GoodsInformationTableViewCell.m; sourceTree = "<group>"; };
2998763A1CD9983A00C90D0A /* CommodityListTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommodityListTableViewCell.h; sourceTree = "<group>"; };
2998763B1CD9983A00C90D0A /* CommodityListTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommodityListTableViewCell.m; sourceTree = "<group>"; };
2998763D1CD9985B00C90D0A /* AttachmentInformationTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AttachmentInformationTableViewCell.h; sourceTree = "<group>"; };
2998763E1CD9985B00C90D0A /* AttachmentInformationTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AttachmentInformationTableViewCell.m; sourceTree = "<group>"; };
299876401CD99E4000C90D0A /* OrderdetailsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderdetailsViewController.h; sourceTree = "<group>"; };
299876411CD99E4000C90D0A /* OrderdetailsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OrderdetailsViewController.m; sourceTree = "<group>"; };
29A8D3961CD85A58004D558F /* ClientdetailsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ClientdetailsViewController.h; sourceTree = "<group>"; };
29A8D3971CD85A58004D558F /* ClientdetailsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ClientdetailsViewController.m; sourceTree = "<group>"; };
29BB27661CD9D38E009A0813 /* AllpriceTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AllpriceTableViewCell.h; sourceTree = "<group>"; };
29BB27671CD9D38E009A0813 /* AllpriceTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AllpriceTableViewCell.m; sourceTree = "<group>"; };
29BB276A1CD9DE74009A0813 /* FollowHeartViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FollowHeartViewController.h; sourceTree = "<group>"; };
29BB276B1CD9DE74009A0813 /* FollowHeartViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FollowHeartViewController.m; sourceTree = "<group>"; };
29BB27721CD9DFAC009A0813 /* SceneLibraryViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SceneLibraryViewController.h; sourceTree = "<group>"; };
29BB27731CD9DFAC009A0813 /* SceneLibraryViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SceneLibraryViewController.m; sourceTree = "<group>"; };
29BB27751CD9DFBA009A0813 /* ProductLibraryViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProductLibraryViewController.h; sourceTree = "<group>"; };
29BB27761CD9DFBA009A0813 /* ProductLibraryViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProductLibraryViewController.m; sourceTree = "<group>"; };
29BB277B1CD9DFCB009A0813 /* CustomerManagementViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomerManagementViewController.h; sourceTree = "<group>"; };
29BB277C1CD9DFCB009A0813 /* CustomerManagementViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomerManagementViewController.m; sourceTree = "<group>"; };
29BB277E1CD9DFD7009A0813 /* AboutViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AboutViewController.h; sourceTree = "<group>"; };
29BB277F1CD9DFD7009A0813 /* AboutViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AboutViewController.m; sourceTree = "<group>"; };
CA5ED00287EA4EE622158E3C /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
D537F80EFAB9298B3ADA241A /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
DDC80D439AC474587DD59064 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
......@@ -177,6 +201,8 @@
children = (
2906B5D51CD89246000849B4 /* ClientDetailsTableViewCell.h */,
2906B5D61CD89246000849B4 /* ClientDetailsTableViewCell.m */,
299876251CD9837C00C90D0A /* OrderTableViewCell.h */,
299876261CD9837C00C90D0A /* OrderTableViewCell.m */,
);
name = view;
sourceTree = "<group>";
......@@ -184,7 +210,6 @@
2928F7DD1CD085430036D761 /* Class */ = {
isa = PBXGroup;
children = (
293393561CD35608000D997B /* Customerdetails */,
2962D06E1CD1A56B0058829D /* RIghtVC */,
2962D06A1CD1A3FE0058829D /* MyClient */,
2928F83F1CD0AB830036D761 /* Shoppingcart */,
......@@ -199,12 +224,6 @@
isa = PBXGroup;
children = (
2949BABF1CD305340049385A /* MMDrawerManager */,
2962D0821CD1EA350058829D /* 1.jpg */,
2962D0831CD1EA350058829D /* 2.jpg */,
2962D0841CD1EA350058829D /* 3.jpg */,
2962D0851CD1EA350058829D /* 4.jpg */,
2962D0861CD1EA350058829D /* 5.jpg */,
2962D0871CD1EA350058829D /* 6.jpg */,
2949BAC31CD3086F0049385A /* weibo.png */,
2962D07E1CD1E5DD0058829D /* UIView+Frame */,
2962D07A1CD1E3CC0058829D /* NSarray+category */,
......@@ -291,15 +310,6 @@
name = view;
sourceTree = "<group>";
};
293393561CD35608000D997B /* Customerdetails */ = {
isa = PBXGroup;
children = (
293393571CD3563C000D997B /* CustomerdetailsController.h */,
293393581CD3563C000D997B /* CustomerdetailsController.m */,
);
name = Customerdetails;
sourceTree = "<group>";
};
2949BABA1CD2EF800049385A /* view */ = {
isa = PBXGroup;
children = (
......@@ -309,13 +319,13 @@
name = view;
sourceTree = "<group>";
};
2949BABE1CD2F1FE0049385A /* controller */ = {
2949BABE1CD2F1FE0049385A /* Rightcontroller */ = {
isa = PBXGroup;
children = (
2962D06F1CD1A58B0058829D /* RightViewController.h */,
2962D0701CD1A58B0058829D /* RightViewController.m */,
);
name = controller;
name = Rightcontroller;
sourceTree = "<group>";
};
2949BABF1CD305340049385A /* MMDrawerManager */ = {
......@@ -330,6 +340,7 @@
2962D06A1CD1A3FE0058829D /* MyClient */ = {
isa = PBXGroup;
children = (
299876281CD9962800C90D0A /* Orderdetails */,
29A8D3951CD85A3C004D558F /* Clientdetails */,
2949BABA1CD2EF800049385A /* view */,
29807C661CD20F3100F111B8 /* Controller */,
......@@ -340,7 +351,12 @@
2962D06E1CD1A56B0058829D /* RIghtVC */ = {
isa = PBXGroup;
children = (
2949BABE1CD2F1FE0049385A /* controller */,
29BB27691CD9DDF3009A0813 /* FollowHeartVC */,
29BB276D1CD9DEA8009A0813 /* SceneLibraryVC */,
29BB276E1CD9DEDA009A0813 /* ProductLibraryVC */,
29BB27701CD9DF0B009A0813 /* CustomerManagementVC */,
29BB27711CD9DF24009A0813 /* AboutVC */,
2949BABE1CD2F1FE0049385A /* Rightcontroller */,
);
name = RIghtVC;
sourceTree = "<group>";
......@@ -426,6 +442,43 @@
name = Controller;
sourceTree = "<group>";
};
299876281CD9962800C90D0A /* Orderdetails */ = {
isa = PBXGroup;
children = (
299876301CD997A300C90D0A /* view */,
2998762F1CD9979300C90D0A /* controller */,
);
name = Orderdetails;
sourceTree = "<group>";
};
2998762F1CD9979300C90D0A /* controller */ = {
isa = PBXGroup;
children = (
299876401CD99E4000C90D0A /* OrderdetailsViewController.h */,
299876411CD99E4000C90D0A /* OrderdetailsViewController.m */,
);
name = controller;
sourceTree = "<group>";
};
299876301CD997A300C90D0A /* view */ = {
isa = PBXGroup;
children = (
299876311CD997DF00C90D0A /* OrderInformationTableViewCell.h */,
299876321CD997DF00C90D0A /* OrderInformationTableViewCell.m */,
299876341CD997F100C90D0A /* PersonInformationTableViewCell.h */,
299876351CD997F100C90D0A /* PersonInformationTableViewCell.m */,
299876371CD9981800C90D0A /* GoodsInformationTableViewCell.h */,
299876381CD9981800C90D0A /* GoodsInformationTableViewCell.m */,
2998763A1CD9983A00C90D0A /* CommodityListTableViewCell.h */,
2998763B1CD9983A00C90D0A /* CommodityListTableViewCell.m */,
2998763D1CD9985B00C90D0A /* AttachmentInformationTableViewCell.h */,
2998763E1CD9985B00C90D0A /* AttachmentInformationTableViewCell.m */,
29BB27661CD9D38E009A0813 /* AllpriceTableViewCell.h */,
29BB27671CD9D38E009A0813 /* AllpriceTableViewCell.m */,
);
name = view;
sourceTree = "<group>";
};
29A8D3951CD85A3C004D558F /* Clientdetails */ = {
isa = PBXGroup;
children = (
......@@ -435,6 +488,51 @@
name = Clientdetails;
sourceTree = "<group>";
};
29BB27691CD9DDF3009A0813 /* FollowHeartVC */ = {
isa = PBXGroup;
children = (
29BB276A1CD9DE74009A0813 /* FollowHeartViewController.h */,
29BB276B1CD9DE74009A0813 /* FollowHeartViewController.m */,
);
name = FollowHeartVC;
sourceTree = "<group>";
};
29BB276D1CD9DEA8009A0813 /* SceneLibraryVC */ = {
isa = PBXGroup;
children = (
29BB27721CD9DFAC009A0813 /* SceneLibraryViewController.h */,
29BB27731CD9DFAC009A0813 /* SceneLibraryViewController.m */,
);
name = SceneLibraryVC;
sourceTree = "<group>";
};
29BB276E1CD9DEDA009A0813 /* ProductLibraryVC */ = {
isa = PBXGroup;
children = (
29BB27751CD9DFBA009A0813 /* ProductLibraryViewController.h */,
29BB27761CD9DFBA009A0813 /* ProductLibraryViewController.m */,
);
name = ProductLibraryVC;
sourceTree = "<group>";
};
29BB27701CD9DF0B009A0813 /* CustomerManagementVC */ = {
isa = PBXGroup;
children = (
29BB277B1CD9DFCB009A0813 /* CustomerManagementViewController.h */,
29BB277C1CD9DFCB009A0813 /* CustomerManagementViewController.m */,
);
name = CustomerManagementVC;
sourceTree = "<group>";
};
29BB27711CD9DF24009A0813 /* AboutVC */ = {
isa = PBXGroup;
children = (
29BB277E1CD9DFD7009A0813 /* AboutViewController.h */,
29BB277F1CD9DFD7009A0813 /* AboutViewController.m */,
);
name = AboutVC;
sourceTree = "<group>";
};
4333C4B25549A396FC0CD944 /* Frameworks */ = {
isa = PBXGroup;
children = (
......@@ -514,18 +612,12 @@
buildActionMask = 2147483647;
files = (
29807C651CD20F0F00F111B8 /* StoryboardwithCYX.storyboard in Resources */,
2962D08B1CD1EA350058829D /* 4.jpg in Resources */,
2962D0891CD1EA350058829D /* 2.jpg in Resources */,
29706DB71CD082990003C412 /* LaunchScreen.storyboard in Resources */,
2962D08C1CD1EA350058829D /* 5.jpg in Resources */,
29807C621CD20C2A00F111B8 /* Images.xcassets in Resources */,
2962D08D1CD1EA350058829D /* 6.jpg in Resources */,
2949BAC41CD3086F0049385A /* weibo.png in Resources */,
2928F83D1CD0A9CD0036D761 /* qq.png in Resources */,
29706DB41CD082990003C412 /* Assets.xcassets in Resources */,
29706DAF1CD082990003C412 /* Main.storyboard in Resources */,
2962D08A1CD1EA350058829D /* 3.jpg in Resources */,
2962D0881CD1EA350058829D /* 1.jpg in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -584,26 +676,38 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
29BB276C1CD9DE74009A0813 /* FollowHeartViewController.m in Sources */,
2928F8381CD09E730036D761 /* CustomButton.m in Sources */,
2998763F1CD9985B00C90D0A /* AttachmentInformationTableViewCell.m in Sources */,
293393551CD3379E000D997B /* ShoppingTableViewCell.m in Sources */,
2949BAC21CD3055A0049385A /* MMExampleDrawerVisualStateManager.m in Sources */,
29BB27741CD9DFAC009A0813 /* SceneLibraryViewController.m in Sources */,
2928F8421CD0ABAC0036D761 /* ShoppingViewController.m in Sources */,
299876331CD997DF00C90D0A /* OrderInformationTableViewCell.m in Sources */,
2928F7E71CD087FE0036D761 /* BaseViewController.m in Sources */,
299876271CD9837C00C90D0A /* OrderTableViewCell.m in Sources */,
2998763C1CD9983A00C90D0A /* CommodityListTableViewCell.m in Sources */,
2962D0791CD1CBC60058829D /* NetworkRequestClassManager.m in Sources */,
2928F8321CD09E320036D761 /* Toolview.m in Sources */,
29BB27681CD9D38E009A0813 /* AllpriceTableViewCell.m in Sources */,
29BB27771CD9DFBA009A0813 /* ProductLibraryViewController.m in Sources */,
2933934F1CD3158B000D997B /* instructionsLabe.m in Sources */,
299876361CD997F100C90D0A /* PersonInformationTableViewCell.m in Sources */,
2962D0711CD1A58B0058829D /* RightViewController.m in Sources */,
29706DA91CD082990003C412 /* AppDelegate.m in Sources */,
29706DA61CD082990003C412 /* main.m in Sources */,
299876421CD99E4000C90D0A /* OrderdetailsViewController.m in Sources */,
2962D07D1CD1E4490058829D /* NSArray+Objectwithindex.m in Sources */,
299876391CD9981800C90D0A /* GoodsInformationTableViewCell.m in Sources */,
2949BABD1CD2EFA00049385A /* InformationTableViewCell.m in Sources */,
29706DB21CD082990003C412 /* Lighting.xcdatamodeld in Sources */,
2962D0811CD1E6010058829D /* UIView+Frame.m in Sources */,
0447085E1CD7C06B00555827 /* LoginViewController.m in Sources */,
2928F83B1CD0A0CE0036D761 /* CustomTabbarController.m in Sources */,
293393591CD3563C000D997B /* CustomerdetailsController.m in Sources */,
044708611CD7C1E800555827 /* MainSetViewController.m in Sources */,
2906B5D71CD89246000849B4 /* ClientDetailsTableViewCell.m in Sources */,
29BB27801CD9DFD7009A0813 /* AboutViewController.m in Sources */,
29BB277D1CD9DFCB009A0813 /* CustomerManagementViewController.m in Sources */,
2962D06D1CD1A43A0058829D /* ClientViewController.m in Sources */,
29A8D3981CD85A58004D558F /* ClientdetailsViewController.m in Sources */,
);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -34,6 +34,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.automaticallyAdjustsScrollViewInsets = NO;
}
- (void)didReceiveMemoryWarning {
......
......@@ -94,7 +94,9 @@
/**
* 主题蓝色
*/
#define kMainColor [UIColor colorWithRed:89/255.0 green:172/255.0 blue:220/255.0 alpha:1.0]
#define kMainBlueColor [UIColor colorWithRed:89/255.0 green:172/255.0 blue:220/255.0 alpha:1.0]
/**
* 默认圆角系数
......@@ -102,7 +104,10 @@
#define kCornerRadius 3
/**
* 主题灰色
*/
#define kMainGrayColor [UIColor colorWithRed:241/255.0 green:241/255.0 blue:241/255.0 alpha:1.0]
......
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