// // RightViewController.m // Lighting // // Created by 曹云霄 on 16/4/28. // Copyright © 2016年 上海勾芒科技有限公司. All rights reserved. // #import "RightViewController.h" #import "AppDelegate.h" #import "RightControlSectionView.h" #import "RightControlTableViewCell.h" @interface RightViewController () @property (weak, nonatomic) IBOutlet UITableView *rightTableview; /** * section数据源 */ @property (nonatomic,strong) NSMutableArray *dataArray; /** * 客户管理下级菜单 */ @property (nonatomic,strong) NSArray *subSectionArray; /** * 控制section 闭合开启 */ @property (nonatomic,strong) NSMutableArray *sectionClosedArray; /** * 图片数组 */ @property (nonatomic,strong) NSArray *imageArray; /** * 指示线 */ @property (nonatomic,strong) UIView *lineView; @end @implementation RightViewController /** * 初始化数据源 * * @return NSArray */ - (NSMutableArray *)dataArray { if (_dataArray == nil) { _dataArray = [NSMutableArray arrayWithObjects:@"体验中心",@"体验中心3D",@"场景库",@"产品库",@"客户管理",@"学习中心",@"关于", nil]; //判断是否有学习中心权限 if ([[Shoppersmanager manager].shoppers.employee.userKey rangeOfString:@"学习人员"].location == NSNotFound) { [_dataArray removeObject:@"学习中心"]; } } return _dataArray; } - (NSArray *)subSectionArray { if (!_subSectionArray) { _subSectionArray = @[@"",@"",@"",@"",@[@"所有客户",@"客户订单"],@"",@""]; } return _subSectionArray; } - (NSMutableArray *)sectionClosedArray { if (!_sectionClosedArray) { _sectionClosedArray = [NSMutableArray array]; //** @0表示闭合,@1表示开启 */ for (int i=0; i