Initial commit

This commit is contained in:
ifish
2017-08-15 16:59:01 +08:00
commit bdc83e07ef
5766 changed files with 423223 additions and 0 deletions
@@ -0,0 +1,15 @@
//
// MemberDetailViewController.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "WhiteNavBaseViewController.h"
#import "MemberNanageListData.h"
@interface MemberDetailViewController : WhiteNavBaseViewController
@property (nonatomic,strong) MemberNanageListData *userData;
@property (nonatomic,strong) NSString *shopId;
@end
@@ -0,0 +1,426 @@
//
// MemberDetailViewController.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberDetailViewController.h"
#import "ShopMemberDetailViewInfoCell.h"
#import "EditeMemberTitleViewCell.h"
#import "MemeberEditeViewCustomCell.h"
#import "MemberEditeViewLocationCell.h"
#import "MemberDetailMarkViewCell.h"
#import "MemberDetailMarkDetailViewCell.h"
#import "MemberEditeCommitBtnViewCell.h"
#import "ShopUserDatailData.h"
#import "UIControl+YT.h"
#import "MBProgressHUD.h"
#define CELLTAGATINDEX 9990111
#import "ChinaPlckerView.h"
#import "KebordExternAddTextInputView.h"
#import "IfishSessionViewController.h"
@interface MemberDetailViewController ()<UITableViewDelegate,UITableViewDataSource,MBProgressHUDDelegate,ChinaPlckerViewDelegate,UIActionSheetDelegate>
@property (nonatomic,strong) UITableView *tableView;
@property (nonatomic,strong) ShopUserDatailData *userInfo;
@property(nonatomic,strong) MBProgressHUD *progressHud;
@property(nonatomic,strong) UIActionSheet *levelSheet;
@end
@implementation MemberDetailViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self addTitleViewWithTitle:@"会员详情"];
self.userInfo =[[ShopUserDatailData alloc] init];
[self creatTab];
[self loadShopUserInfos];
}
-(void)creatTab{
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,self.view.frame.size.height) style:UITableViewStyleGrouped];
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.tableView.showsVerticalScrollIndicator = NO;
self.tableView.backgroundColor = TABLE_BACKGROUD_COLOR;
[self.view addSubview:self.tableView];
self.automaticallyAdjustsScrollViewInsets = YES;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
if (section ==0) {
return 1;
}else if (section ==1){
return 6;
}
return 3;
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
return 3;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
if (indexPath.section ==0) {
ShopMemberDetailViewInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ShopMemberDetailViewInfoCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"ShopMemberDetailViewInfoCell" owner:self options:nil]lastObject];
}
[cell loadataWith:self.userData andUserInfo:self.userInfo];
[cell.chatBtn addTarget:self action:@selector(chatBtnClick) forControlEvents:UIControlEventTouchUpInside];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}else if (indexPath.section ==1&&indexPath.row ==0){
EditeMemberTitleViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"EditeMemberTitleViewCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"EditeMemberTitleViewCell" owner:self options:nil]lastObject];
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}else if (indexPath.section ==1&&indexPath.row >0&&indexPath.row<5){
MemeberEditeViewCustomCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MemeberEditeViewCustomCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"MemeberEditeViewCustomCell" owner:self options:nil]lastObject];
}
NSArray *titles = @[@"会员等级",@"备注名称",@"手机号码",@"所在地址"];
[cell initTitles:titles AtRowIndex:indexPath.row userDatailData:self.userInfo];
cell.tag =CELLTAGATINDEX + indexPath.row;
if (indexPath.row==1||indexPath.row==4) {
cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}else if (indexPath.section ==1&&indexPath.row ==5){
MemberEditeViewLocationCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MemberEditeViewLocationCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"MemberEditeViewLocationCell" owner:self options:nil]lastObject];
}
cell.tag =CELLTAGATINDEX + 20;
if ([self.userInfo.address isKindOfClass:[NSNull class]]||!self.userInfo.address) {
self.userInfo.address = @"用户详情地址";
}
cell.locationDetail.text = self.userInfo.address;
cell.locationDetail.userInteractionEnabled = NO;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}else if (indexPath.section ==2&&indexPath.row ==0){
MemberDetailMarkViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MemberDetailMarkViewCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"MemberDetailMarkViewCell" owner:self options:nil]lastObject];
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}else if (indexPath.section ==2&&indexPath.row ==1){
MemberDetailMarkDetailViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MemberDetailMarkDetailViewCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"MemberDetailMarkDetailViewCell" owner:self options:nil]lastObject];
}
cell.tag =CELLTAGATINDEX + 40;
if ([self.userInfo.remark isKindOfClass:[NSNull class]]||!self.userInfo.remark) {
self.userInfo.remark = @"可在此备注品牌/型号/日期/鱼种类/数量/价格等信息";
}
cell.markTexView.text = self.userInfo.remark;
cell.markTexView.userInteractionEnabled = NO;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}else if (indexPath.section ==2&&indexPath.row ==2){
MemberEditeCommitBtnViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MemberEditeCommitBtnViewCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"MemberEditeCommitBtnViewCell" owner:self options:nil]lastObject];
}
[cell.sureBtn addTarget:self action:@selector(upDateUserInfo) forControlEvents:UIControlEventTouchUpInside];
cell.sureBtn.yt_acceptEventInterval = 2;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}
return nil;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
if (indexPath.section==0) {
return 90.0f;
}else if (indexPath.section ==1&&indexPath.row >=0&&indexPath.row<5){
return 44.0f;
}else if (indexPath.section ==1&&indexPath.row ==5){
return 88.0f;
}else if (indexPath.section ==2&&indexPath.row ==0){
return 35.0f;
}else if (indexPath.section ==2&&indexPath.row ==1){
return 76.0f;
}
return 90.0f;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 0.1f;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
if (section==1) {
return 10.0f;
}
return 5.0f;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if (indexPath.row==1&&indexPath.section==1) {
//等级
[self creatLevelSheet];
}else if (indexPath.row==2&&indexPath.section==1){
//备注名
NSString *name = _userInfo.userName;
[self creatExternKeyBordWith:name AtIndex:indexPath];
}else if (indexPath.row==3&&indexPath.section==1){
//手机号
NSString *phone = _userInfo.phoneNumber;
[self creatExternKeyBordWith:phone AtIndex:indexPath];
}else if (indexPath.row==4&&indexPath.section==1){
//省市区
[self showChinaPic];
}else if (indexPath.row==5&&indexPath.section==1){
//详细地址
[self creatExternKeyBordWith:self.userInfo.address AtIndex:indexPath];
}else if (indexPath.row==1&&indexPath.section==2){
//详细备注
[self creatExternKeyBordWith:self.userInfo.remark AtIndex:indexPath];
}
}
-(void)creatExternKeyBordWith:(NSString*)holdText AtIndex:(NSIndexPath *)indexPath{
__weak typeof (self)weskSelf=self;
KebordExternAddTextInputView *commentView =[[KebordExternAddTextInputView alloc] initWithFrame:[UIApplication sharedApplication].keyWindow.bounds];
//commentView.palceholderText = holdText;
commentView.customText = holdText;
[[UIApplication sharedApplication].keyWindow addSubview:commentView];
commentView.doneTextInfoHandler = ^(NSString *conttent){
NSArray *pathArr = @[indexPath];
if (indexPath.row==2&&indexPath.section==1) {
weskSelf.userInfo.userName=conttent;
}else if (indexPath.row==3&&indexPath.section==1){
weskSelf.userInfo.phoneNumber=conttent;
}else if (indexPath.row==5&&indexPath.section==1){
weskSelf.userInfo.address=conttent;
}else if (indexPath.row==1&&indexPath.section==2){
weskSelf.userInfo.remark=conttent;
}
[weskSelf.tableView reloadRowsAtIndexPaths:pathArr withRowAnimation:UITableViewRowAnimationNone];
NSLog(@"conttent:%@",conttent);
};
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
#pragma mark - 获取会员详情
-(void)loadShopUserInfos{
__weak typeof (self)weskSelf=self;
[AFHttpTool getShopsUserInfo:weskSelf.userData.userID shopId:weskSelf.shopId success:^(id response) {
NSDictionary *reDic=[NSJSONSerialization JSONObjectWithData:response options:NSJSONReadingMutableContainers error:nil];
NSDictionary *dataDic=reDic[@"data"];
if ([reDic[@"result"] isEqualToString:@"100"]) {
ShopUserDatailData *data = [[ShopUserDatailData alloc] initWithDict:dataDic];
weskSelf.userInfo = data;
}
[weskSelf.tableView reloadData];
} failure:^(NSError *err) {
}];
}
#pragma mark - upDateUserInfo 更新会员信息
-(void)upDateUserInfo{
[self showProgress];
__weak typeof (self)weskSelf=self;
if ([_userInfo.province isKindOfClass:[NSNull class]]||!_userInfo.province) {
_userInfo.province = @"";
}
if ([_userInfo.city isKindOfClass:[NSNull class]]||!_userInfo.city) {
_userInfo.city = @"";
}
if ([_userInfo.area isKindOfClass:[NSNull class]]||!_userInfo.city) {
_userInfo.area = @"";
}
[AFHttpTool updateShopsUserInfo:_userData.userID shopId:weskSelf.shopId memberLevel:_userInfo.memberLevel userName:_userInfo.userName phoneNumber:_userInfo.phoneNumber province:_userInfo.province city:_userInfo.city area:_userInfo.area address:_userInfo.address remark:_userInfo.remark success:^(id response) {
NSDictionary *reDic=[NSJSONSerialization JSONObjectWithData:response options:NSJSONReadingMutableContainers error:nil];
//NSDictionary *dataDic=reDic[@"data"];
if ([reDic[@"result"] isEqualToString:@"100"]) {
[weskSelf.view makeToast:@"修改成功"];
}else{
[weskSelf.view makeToast:@"请求异常"];
}
[weskSelf.progressHud hide:YES];
} failure:^(NSError *err) {
[self.view makeToast:@"请求异常"];
[weskSelf.progressHud hide:YES];
}];
}
-(void)showProgress{
self.progressHud = [[MBProgressHUD alloc] initWithView:self.view];
[self.view addSubview:self.progressHud];
self.progressHud.mode=MBProgressHUDModeCustomView;
self.progressHud.customView = [[UIView alloc] init];
self.progressHud.delegate = self;
self.progressHud.labelText = @"更新中...";
}
#pragma mark - chatBtnClick和会员聊天
-(void)chatBtnClick{
UserModel*model=[dataContorl getUserInfo];
NSString *myAcount = [NSString stringWithFormat:@"%@",model.userId];
NSString *tarGetAcount = [NSString stringWithFormat:@"%@",self.userInfo.userId];
if ([myAcount isEqualToString:tarGetAcount]) {
[self.view makeToast:@"不能和自己聊天哦"];
return;
}
[[NIMSDK sharedSDK].loginManager login:myAcount token:model.neteaseToken completion:^(NSError *error) {
if (!error) {
NSLog(@"登录成功");
//创建session
NIMSession *session = [NIMSession session:tarGetAcount type:NIMSessionTypeP2P];
//创建聊天页,这个页面继承自 NIMKit 中的组件 NIMSessionViewController
IfishSessionViewController *vc = [[IfishSessionViewController alloc] initWithSession:session];
//导航颜色
vc.navState = 1;
[self.navigationController pushViewController:vc animated:YES];
}else{
NSLog(@"登录失败");
}
}];
}
#pragma mark - 等级sheet
-(void)creatLevelSheet{
_levelSheet = [[UIActionSheet alloc] initWithTitle:@"等级选择" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"1级",@"2级",@"3级", nil];
[_levelSheet showInView:self.view];
}
#pragma mark--UIActionSheetDelegate
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
if (actionSheet==self.levelSheet) {
if (buttonIndex==actionSheet.cancelButtonIndex) {
return;
}
switch (buttonIndex) {
case 0:
{
self.userInfo.memberLevel= @"1";
}
break;
case 1:
{
self.userInfo.memberLevel= @"2";
}
break;
case 2:
{
self.userInfo.memberLevel= @"3";
}
break;
default:
break;
}
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:1];
NSArray *pathArr = @[indexPath];
[self.tableView reloadRowsAtIndexPaths:pathArr withRowAnimation:UITableViewRowAnimationNone];
}
}
#pragma mark - 选择省市区
-(void)showChinaPic
{
[ChinaPlckerView customChinaPicker:self superView:self.view];
}
#pragma mark - ChinaPlckerViewDelegate
- (void)chinaPlckerViewDelegateChinaModel:(ChinaArea *)chinaModel{
self.userInfo.province = chinaModel.provinceModel.NAME;
self.userInfo.city = chinaModel.cityModel.NAME;
self.userInfo.area = chinaModel.areaModel.NAME;
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:4 inSection:1];
NSArray *pathArr = @[indexPath];
[self.tableView reloadRowsAtIndexPaths:pathArr withRowAnimation:UITableViewRowAnimationNone];
}
/*
#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
@@ -0,0 +1,14 @@
//
// MemberManageViewController.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "WhiteNavBaseViewController.h"
@interface MemberManageViewController : WhiteNavBaseViewController
@property(nonatomic,strong) NSString *shopId;
@end
@@ -0,0 +1,221 @@
//
// MemberManageViewController.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberManageViewController.h"
#import "MemberManageListViewCell.h"
#import "JHRefresh.h"
#import "MemberNanageListData.h"
#import "MemberDetailViewController.h"
@interface MemberManageViewController ()<UITableViewDelegate,UITableViewDataSource>
{
BOOL _isLoadMore;
}
@property(nonatomic)BOOL isLoadMore;
@property (nonatomic,strong) UITableView *tableView;
@property (nonatomic,strong) NSMutableArray *listDataArr;
@property (nonatomic) NSInteger firstResult;
@property(nonatomic,copy) NSString *total;
@property(nonatomic) int page;
@end
@implementation MemberManageViewController
- (void)viewDidLoad {
//商家会员列表
[super viewDidLoad];
// Do any additional setup after loading the view.
_listDataArr = [[NSMutableArray alloc] init];
_firstResult =0;
_total =@"0";
_page = 0;
[self addTitleViewWithTitle:@"会员管理"];
[self creatTab];
[self initData];
[self creatReatRefreshView];
}
-(void)initData{
[self loadPageDataWith:_firstResult];
}
-(void)loadPageDataWith:(NSInteger)first
{
__weak typeof (self)weskSelf=self;
NSInteger pagesize = 20;
NSString *userId =[dataContorl dataControlGetUserIdInfo];
[AFHttpTool getPageShopsUserInfo:first pageSize:pagesize userId:userId shopsId:self.shopId success:^(id response) {
NSDictionary *reDic=[NSJSONSerialization JSONObjectWithData:response options:NSJSONReadingMutableContainers error:nil];
NSArray *dataArr=reDic[@"data"];
if ([reDic[@"result"] isEqualToString:@"100"]) {
NSString *firstResult=reDic[@"firstResult"];
_firstResult = [firstResult integerValue];
NSString *total=reDic[@"total"];
_total = total;
for (NSDictionary *dict in dataArr) {
MemberNanageListData *data = [[MemberNanageListData alloc] initWithDict:dict];
[_listDataArr addObject:data];
}
if (dataArr&&![dataArr isKindOfClass:[NSNull class]]) {
//dataArr = [[NSArray alloc] init];
if ([dataArr count]!=0) {
[weskSelf.tableView reloadData];
}else{
[weskSelf resetNoDataView];
}
}
}else{
[weskSelf.view makeToast:@"请求异常"];
}
[weskSelf endRefreshing];
} failure:^(NSError *err) {
[weskSelf endRefreshing];
[weskSelf.view makeToast:@"请求异常"];
}];
}
-(void)creatReatRefreshView{
//上拉加载更多
__weak typeof (self)weskSelf=self;
[_tableView addRefreshFooterViewWithAniViewClass:[JHRefreshCommonAniView class] beginRefresh:^{
if (weskSelf.isLoadMore) {
return ;
}
weskSelf.isLoadMore=YES;
NSInteger pagecount =[_total integerValue]/20+1;
if (weskSelf.page<pagecount-1) {
weskSelf.page++;
NSInteger first=(NSInteger)weskSelf.page*20;
[weskSelf loadPageDataWith:first];
}else{
[weskSelf endRefreshing];
[weskSelf.view makeToast:@"已无更多数据"];
}
}];
}
-(void)endRefreshing{
if (_isLoadMore) {
_isLoadMore=NO;
[_tableView footerEndRefreshing];
}
}
-(void)creatTab{
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,self.view.frame.size.height) style:UITableViewStyleGrouped];
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.tableView.showsVerticalScrollIndicator = NO;
self.tableView.backgroundColor = TABLE_BACKGROUD_COLOR;
[self.view addSubview:self.tableView];
self.automaticallyAdjustsScrollViewInsets = YES;
}
-(void)resetNoDataView{
[self.tableView removeFromSuperview];
self.view.backgroundColor =TABLE_BACKGROUD_COLOR;
UIImageView *backImg = [[UIImageView alloc] initWithFrame:CGRectMake(self.view.frame.size.width/2 - 98/2 ,self.view.frame.size.height/4, 108, 98)];
backImg.image = [UIImage imageNamed:@"nurse_empty_picture"];
[self.view addSubview:backImg];
UILabel *title=[[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(backImg.frame) + 30, self.view.frame.size.width,20)];
title.text = @"还里空空如也";
title.textAlignment = NSTextAlignmentCenter;
title.font =[UIFont systemFontOfSize:15];
title.textColor = RGB(51, 51, 51);
[self.view addSubview:title];
UILabel *title2=[[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(title.frame) + 7, self.view.frame.size.width,20)];
title2.text = @"您还木有会员~";
title2.font =[UIFont systemFontOfSize:12];
title2.textAlignment = NSTextAlignmentCenter;
title2.textColor = RGB(153, 153, 153);
[self.view addSubview:title2];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return self.listDataArr.count;
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
return 1;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
MemberManageListViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MemberManageListViewCell"];
if (!cell) {
cell = [[[NSBundle mainBundle]loadNibNamed:@"MemberManageListViewCell" owner:self options:nil]lastObject];
}
MemberNanageListData *data = _listDataArr[indexPath.row];
[cell loadList:data];
return cell;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 70.0f;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 0.1f;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 10.0f;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
MemberDetailViewController *detailVC = [[MemberDetailViewController alloc] init];
MemberNanageListData *data = _listDataArr[indexPath.row];
detailVC.userData =data;
detailVC.shopId= self.shopId;
[self.navigationController pushViewController:detailVC animated:YES];
}
/*
#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
@@ -0,0 +1,18 @@
//
// MemberNanageListData.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MemberNanageListData : NSObject
@property(nonatomic,copy) NSString *userID;
@property(nonatomic,copy) NSString *userName;
@property(nonatomic,copy) NSString *nickName;
@property(nonatomic,copy) NSString *userImg;
@property(nonatomic,copy) NSString *loginTime;
-(instancetype)initWithDict:(NSDictionary *)dict;
@end
@@ -0,0 +1,25 @@
//
// MemberNanageListData.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberNanageListData.h"
@implementation MemberNanageListData
-(instancetype)initWithDict:(NSDictionary *)dict
{
if (self=[super init]) {
_userID = [dict objectForKey:@"userId"];
_userName = [dict objectForKey:@"userName"];
_nickName= [dict objectForKey:@"nickName"];
_userImg = [dict objectForKey:@"userImg"];
_loginTime = [dict objectForKey:@"loginTime"];
}
return self;
}
@end
@@ -0,0 +1,26 @@
//
// ShopUserDatailData.h
// Ifish
//
// Created by imac on 17/4/13.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ShopUserDatailData : NSObject
@property(nonatomic,copy) NSString *userId;
@property(nonatomic,copy) NSString *shopsId;
@property(nonatomic,copy) NSString *memberLevel;
@property(nonatomic,copy) NSString *userName;
@property(nonatomic,copy) NSString *phoneNumber;
@property(nonatomic,copy) NSString *province;
@property(nonatomic,copy) NSString *city;
@property(nonatomic,copy) NSString *area;
@property(nonatomic,copy) NSString *address;
@property(nonatomic,copy) NSString *remark;
@property(nonatomic,copy) NSString *deviceNum;
@property(nonatomic,copy) NSString *cameraNum;
-(instancetype)initWithDict:(NSDictionary *)dict;
@end
@@ -0,0 +1,32 @@
//
// ShopUserDatailData.m
// Ifish
//
// Created by imac on 17/4/13.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "ShopUserDatailData.h"
@implementation ShopUserDatailData
-(instancetype)initWithDict:(NSDictionary *)dict{
if (self=[super init]) {
_userId = [dict objectForKey:@"userId"];
_shopsId = [dict objectForKey:@"shopsId"];
_memberLevel = [dict objectForKey:@"memberLevel"];
_userName = [dict objectForKey:@"userName"];
_phoneNumber = [dict objectForKey:@"phoneNumber"];
_province = [dict objectForKey:@"province"];
_city = [dict objectForKey:@"city"];
_area = [dict objectForKey:@"area"];
_address = [dict objectForKey:@"address"];
_remark = [dict objectForKey:@"remark"];
_deviceNum = [dict objectForKey:@"deviceNum"];
_cameraNum = [dict objectForKey:@"cameraNum"];
}
return self;
}
@end
@@ -0,0 +1,13 @@
//
// EditeMemberTitleViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface EditeMemberTitleViewCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// EditeMemberTitleViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "EditeMemberTitleViewCell.h"
@implementation EditeMemberTitleViewCell
- (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
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="EditeMemberTitleViewCell" rowHeight="44" id="KGk-i7-Jjw" customClass="EditeMemberTitleViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="编辑资料" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="krY-J1-1At">
<rect key="frame" x="15" y="11" width="61.5" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="ZFN-wd-vJw"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5CL-nE-xAN">
<rect key="frame" x="0.0" y="43" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="pVA-Pz-bsd"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="5CL-nE-xAN" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="8f4-3h-bwu"/>
<constraint firstAttribute="trailing" secondItem="5CL-nE-xAN" secondAttribute="trailing" id="LRR-TD-YaI"/>
<constraint firstItem="krY-J1-1At" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Ujg-4k-1Uf"/>
<constraint firstAttribute="bottom" secondItem="5CL-nE-xAN" secondAttribute="bottom" constant="-1" id="bo9-wS-fIS"/>
<constraint firstItem="krY-J1-1At" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="qNT-VH-6uG"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,23 @@
//
// KebordExternAddTextInputView.h
// Ifish
//
// Created by imac on 17/4/14.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface KebordExternAddTextInputView : UIView
@property (nonatomic, strong) UITextField *inputTextField;
@property (nonatomic, strong) UIButton *doneButton;
@property (nonatomic, copy) void (^doneTextInfoHandler)(NSString *content);
@property (nonatomic, strong) UIView *InfoInputView;
@property (nonatomic, copy) NSString *palceholderText;
@property (nonatomic, copy) NSString *customText;
-(void)setPalceholderText:(NSString *)palceholderText;
-(void)setCustomText:(NSString *)customText;
@end
@@ -0,0 +1,173 @@
//
// KebordExternAddTextInputView.m
// Ifish
//
// Created by imac on 17/4/14.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "KebordExternAddTextInputView.h"
@interface KebordExternAddTextInputView ()<UITextFieldDelegate>
@end
@implementation KebordExternAddTextInputView
-(instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
self.backgroundColor = [UIColor clearColor];
//self.alpha = 0.3;
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dismissSelfViewTap)];
[self addGestureRecognizer:tap];
[self creatInpuView];
//黑色背景 个人强烈建议加上 需求不要去掉
UIView *holdView =[[UIView alloc] initWithFrame:frame];
holdView.backgroundColor = [UIColor blackColor];
holdView.alpha = 0.3;
[self addSubview:holdView];
[self bringSubviewToFront:self.InfoInputView];
}
return self;
}
-(void)creatInpuView{
NSArray *commentInputNibs = [[NSBundle mainBundle]loadNibNamed:@"KebordExternAddTextInputView" owner:self options:nil];
UIView *commentInputView = [commentInputNibs objectAtIndex:0];
self.InfoInputView = commentInputView;
self.inputTextField = [commentInputView.subviews objectAtIndex:0];
self.doneButton = [commentInputView.subviews objectAtIndex:1];
self.doneButton.clipsToBounds = YES;
//self.doneButton.layer.cornerRadius = self.doneButton.frame.size.height/2;
self.doneButton.layer.cornerRadius = 3;
self.inputTextField.delegate = self;
[self.inputTextField becomeFirstResponder];
self.InfoInputView .frame = CGRectMake(0, self.frame.size.height-self.InfoInputView .frame.size.height, self.frame.size.width, self.InfoInputView .frame.size.height);
[self addSubview:self.InfoInputView];
[self bringSubviewToFront:self.InfoInputView ];
[self.doneButton addTarget:self action:@selector(sendCommend) forControlEvents:UIControlEventTouchUpInside];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillHide:)
name:UIKeyboardWillHideNotification
object:nil];
}
-(void)setPalceholderText:(NSString *)palceholderText
{
_palceholderText = palceholderText;
}
-(void)setCustomText:(NSString *)customText
{
_customText = customText;
//设置默认文本
self.inputTextField.text = _customText;
}
- (void)sendCommend
{
if (self.inputTextField.text.length > 100) {
[self makeToast:@"内容不能超过100字"];
return;
}
if (self.inputTextField.text.length == 0) {
[self makeToast:@"内容不能为空"];
return;
}
if (self.doneTextInfoHandler) {
self.doneTextInfoHandler(self.inputTextField.text);
}
[self dismissKeyboard];
}
- (void)dismissKeyboard
{
if ([self.inputTextField becomeFirstResponder]) {
[self.inputTextField resignFirstResponder];
}
}
-(void)dismissSelfViewTap{
[self removeFromSuperview];
}
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField;
{
if (textField ==self.inputTextField) {
textField.placeholder = _palceholderText;
}
return YES;
}
-(BOOL)textFieldShouldReturn:(UITextField *)textField{
if (textField ==self.inputTextField) {
[self sendCommend];
}
return YES;
}
- (void)keyboardWillShow:(NSNotification*)notification {
// get keyboard size and loctaion
CGRect keyboardBounds;
[[notification.userInfo valueForKey:UIKeyboardFrameEndUserInfoKey] getValue: &keyboardBounds];
NSNumber *duration = [notification.userInfo objectForKey:UIKeyboardAnimationDurationUserInfoKey];
NSNumber *curve = [notification.userInfo objectForKey:UIKeyboardAnimationCurveUserInfoKey];
// Need to translate the bounds to account for rotation.
keyboardBounds = [self convertRect:keyboardBounds toView:nil];
// get a rect for the textView frame
CGRect commentInputViewFrame = self.InfoInputView.frame;
commentInputViewFrame.origin.y = self.bounds.size.height - (keyboardBounds.size.height + commentInputViewFrame.size.height);
// animations settings
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDuration:[duration doubleValue]];
[UIView setAnimationCurve:[curve intValue]];
// set views with new info
self.InfoInputView.frame = commentInputViewFrame;
[UIView commitAnimations];
}
- (void) keyboardWillHide:(NSNotification *)note
{
[self dismissSelfView];
}
-(void)dismissSelfView
{
[self removeFromSuperview];
}
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
self.InfoInputView = nil;
self.inputTextField = nil;
}
@end
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="vIb-qL-ENL">
<rect key="frame" x="8" y="10" width="224" height="30"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" returnKeyType="done"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VYd-Or-tNp">
<rect key="frame" x="258" y="10" width="46" height="30"/>
<color key="backgroundColor" red="0.26274509800000001" green="0.72941176470000002" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="46" id="NCn-Ae-VQu"/>
<constraint firstAttribute="height" constant="30" id="R78-Oa-Ive"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" title="完成"/>
</button>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="VYd-Or-tNp" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="6sh-Dr-qre"/>
<constraint firstAttribute="trailing" secondItem="VYd-Or-tNp" secondAttribute="trailing" constant="16" id="7d6-3B-9ze"/>
<constraint firstItem="vIb-qL-ENL" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="Drg-ue-jGb"/>
<constraint firstItem="VYd-Or-tNp" firstAttribute="leading" secondItem="vIb-qL-ENL" secondAttribute="trailing" constant="26" id="GbO-OV-KEG"/>
<constraint firstItem="vIb-qL-ENL" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="8" id="Z1T-GN-PDH"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="8" y="106"/>
</view>
</objects>
</document>
@@ -0,0 +1,14 @@
//
// MemberDetailMarkDetailViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberDetailMarkDetailViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UITextView *markTexView;
@end
@@ -0,0 +1,24 @@
//
// MemberDetailMarkDetailViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberDetailMarkDetailViewCell.h"
@implementation MemberDetailMarkDetailViewCell
- (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
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberDetailMarkDetailViewCell" id="KGk-i7-Jjw" customClass="MemberDetailMarkDetailViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="76"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="75.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="FPM-np-E3Q">
<rect key="frame" x="15" y="8" width="297" height="59"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uy5-ST-Hy1">
<rect key="frame" x="0.0" y="75" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="fCq-Vx-S7B"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="FPM-np-E3Q" firstAttribute="trailing" secondItem="H2p-sc-9uM" secondAttribute="trailingMargin" id="EEc-Rc-fXb"/>
<constraint firstAttribute="trailing" secondItem="uy5-ST-Hy1" secondAttribute="trailing" id="MHt-LX-L9j"/>
<constraint firstItem="FPM-np-E3Q" firstAttribute="bottom" secondItem="H2p-sc-9uM" secondAttribute="bottomMargin" id="QoL-OQ-DgX"/>
<constraint firstItem="FPM-np-E3Q" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" id="VmR-vq-Ufv"/>
<constraint firstAttribute="bottom" secondItem="uy5-ST-Hy1" secondAttribute="bottom" constant="-0.5" id="jJG-Ub-g3o"/>
<constraint firstItem="FPM-np-E3Q" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="mWS-Tx-2uL"/>
<constraint firstItem="uy5-ST-Hy1" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="u3C-Kk-Wb8"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="markTexView" destination="FPM-np-E3Q" id="hxd-Ej-LMC"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,13 @@
//
// MemberDetailMarkViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberDetailMarkViewCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// MemberDetailMarkViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberDetailMarkViewCell.h"
@implementation MemberDetailMarkViewCell
- (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
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberDetailMarkViewCell" rowHeight="35" id="KGk-i7-Jjw" customClass="MemberDetailMarkViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="34.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="详细备注" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PZK-HZ-Ytf">
<rect key="frame" x="15" y="9.5" width="57.5" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UB5-R5-XOZ">
<rect key="frame" x="0.0" y="34" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="geU-9P-j1s"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="UB5-R5-XOZ" secondAttribute="trailing" id="7hS-Jt-Odm"/>
<constraint firstItem="PZK-HZ-Ytf" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="As0-34-pd5"/>
<constraint firstItem="PZK-HZ-Ytf" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="ILj-n6-bBE"/>
<constraint firstItem="UB5-R5-XOZ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="S8y-Y8-wQP"/>
<constraint firstAttribute="bottom" secondItem="UB5-R5-XOZ" secondAttribute="bottom" constant="-0.5" id="pc0-gx-HFa"/>
</constraints>
</tableViewCellContentView>
<point key="canvasLocation" x="25" y="51.5"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,14 @@
//
// MemberEditeCommitBtnViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberEditeCommitBtnViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;
@end
@@ -0,0 +1,27 @@
//
// MemberEditeCommitBtnViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberEditeCommitBtnViewCell.h"
@implementation MemberEditeCommitBtnViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
_sureBtn.layer.masksToBounds = YES;
_sureBtn.layer.cornerRadius = 5;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberEditeCommitBtnViewCell" id="KGk-i7-Jjw" customClass="MemberEditeCommitBtnViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="90"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="89"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zBs-w6-Qdm">
<rect key="frame" x="20" y="29" width="280" height="44"/>
<color key="backgroundColor" red="0.0" green="0.72156862745098038" blue="0.93725490196078431" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="280" id="9YA-t1-dhs"/>
<constraint firstAttribute="height" constant="44" id="kdE-Vy-Xab"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<state key="normal" title="确 定"/>
</button>
</subviews>
<constraints>
<constraint firstItem="zBs-w6-Qdm" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="Zfc-pA-gQq"/>
<constraint firstItem="zBs-w6-Qdm" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="21" id="hAi-z7-XgG"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="sureBtn" destination="zBs-w6-Qdm" id="oI3-L7-rkr"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,15 @@
//
// MemberEditeViewLocationCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberEditeViewLocationCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UITextView *locationDetail;
@end
@@ -0,0 +1,24 @@
//
// MemberEditeViewLocationCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberEditeViewLocationCell.h"
@implementation MemberEditeViewLocationCell
- (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
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberEditeViewLocationCell" id="KGk-i7-Jjw" customClass="MemberEditeViewLocationCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="88"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="87"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="tnJ-RL-Jtt">
<rect key="frame" x="15" y="8" width="298" height="72"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
</subviews>
<constraints>
<constraint firstItem="tnJ-RL-Jtt" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="8" id="4A9-Yd-eqI"/>
<constraint firstAttribute="bottom" secondItem="tnJ-RL-Jtt" secondAttribute="bottom" constant="8" id="9gF-6x-wTY"/>
<constraint firstAttribute="trailing" secondItem="tnJ-RL-Jtt" secondAttribute="trailing" constant="7" id="Hsr-dj-kCa"/>
<constraint firstItem="tnJ-RL-Jtt" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="yPh-Aj-ade"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="locationDetail" destination="tnJ-RL-Jtt" id="T7q-Yp-H5u"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,18 @@
//
// MemberManageListViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MemberNanageListData.h"
@interface MemberManageListViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *huiYuanImg;
@property (weak, nonatomic) IBOutlet UILabel *huiYuanName;
@property (weak, nonatomic) IBOutlet UILabel *lastLoginTime;
-(void)loadList:(MemberNanageListData*)data;
@end
@@ -0,0 +1,34 @@
//
// MemberManageListViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberManageListViewCell.h"
#import "UIImageView+WebCache.h"
@implementation MemberManageListViewCell
- (void)awakeFromNib {
[super awakeFromNib];
self.huiYuanImg.layer.masksToBounds = YES;
self.huiYuanImg.layer.cornerRadius = self.huiYuanImg.frame.size.height/2;
}
-(void)loadList:(MemberNanageListData*)data
{
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
[self.huiYuanImg sd_setImageWithURL:[NSURL URLWithString:str]];
self.huiYuanName.text = [NSString stringWithFormat:@"%@(%@)",data.nickName,data.userName];
self.lastLoginTime.text = [NSString stringWithFormat:@"最后登录时间:%@",data.loginTime];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberManageListViewCell" rowHeight="60" id="KGk-i7-Jjw" customClass="MemberManageListViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="60"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="UcP-H7-edU">
<rect key="frame" x="10" y="5" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="LdW-LO-iCK"/>
<constraint firstAttribute="height" constant="50" id="Nd5-DE-lcH"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vtU-Xx-jGN">
<rect key="frame" x="0.0" y="59" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="4oa-0B-0Ae"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="会员名 (备注名)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Spv-Zm-dEc">
<rect key="frame" x="65" y="8" width="255" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="4i5-Iy-HVL"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="最后登录时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RC7-ig-e86">
<rect key="frame" x="65" y="31" width="255" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="YAN-if-Xht"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="RC7-ig-e86" secondAttribute="trailing" constant="-8" id="MAg-gq-8Gb"/>
<constraint firstItem="RC7-ig-e86" firstAttribute="top" secondItem="Spv-Zm-dEc" secondAttribute="bottom" constant="8" id="Wz7-Ma-Smb"/>
<constraint firstItem="vtU-Xx-jGN" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="XJD-Bg-8wj"/>
<constraint firstAttribute="trailingMargin" secondItem="Spv-Zm-dEc" secondAttribute="trailing" constant="-8" id="f8b-y8-6Xd"/>
<constraint firstItem="Spv-Zm-dEc" firstAttribute="leading" secondItem="UcP-H7-edU" secondAttribute="trailing" constant="5" id="iKP-a3-aDS"/>
<constraint firstItem="UcP-H7-edU" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="2" id="iOW-8E-fkM"/>
<constraint firstItem="RC7-ig-e86" firstAttribute="leading" secondItem="UcP-H7-edU" secondAttribute="trailing" constant="5" id="oBs-QL-PQ8"/>
<constraint firstItem="UcP-H7-edU" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="rki-B0-tF3"/>
<constraint firstItem="Spv-Zm-dEc" firstAttribute="top" secondItem="UcP-H7-edU" secondAttribute="top" constant="3" id="saT-2D-EPD"/>
<constraint firstAttribute="bottom" secondItem="vtU-Xx-jGN" secondAttribute="bottom" constant="-0.5" id="t7X-nY-ceg"/>
<constraint firstAttribute="trailing" secondItem="vtU-Xx-jGN" secondAttribute="trailing" id="x2i-DC-IbO"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="huiYuanImg" destination="UcP-H7-edU" id="vEF-z3-Xsq"/>
<outlet property="huiYuanName" destination="Spv-Zm-dEc" id="c3Y-eo-fGc"/>
<outlet property="lastLoginTime" destination="RC7-ig-e86" id="FS5-8K-hzv"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,18 @@
//
// MemeberEditeViewCustomCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShopUserDatailData.h"
@interface MemeberEditeViewCustomCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *kindLabel;
@property (weak, nonatomic) IBOutlet UILabel *kindDeail;
-(void)initTitles:(NSArray *)titles AtRowIndex:(NSInteger)row userDatailData:(ShopUserDatailData*)user;
@end
@@ -0,0 +1,64 @@
//
// MemeberEditeViewCustomCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemeberEditeViewCustomCell.h"
@implementation MemeberEditeViewCustomCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)initTitles:(NSArray *)titles AtRowIndex:(NSInteger)row userDatailData:(ShopUserDatailData*)user
{
//row 从分区row1 算起
_kindLabel.text = titles[row-1];
if (row==1) {
if (!user.memberLevel||[user.memberLevel isKindOfClass:[NSNull class]]) {
user.memberLevel = @"1";
}
_kindDeail.text = [NSString stringWithFormat:@"%@级",user.memberLevel];
}else if (row==2){
if (!user.userName ||[user.userName isKindOfClass:[NSNull class]]) {
user.userName = @"设置备注名";
}
_kindDeail.text = user.userName;
}else if (row==3){
if (!user.phoneNumber) {
user.phoneNumber = @"设置会员手机号";
}
_kindDeail.text = user.phoneNumber;
}else if (row==4){
if ([user.province isKindOfClass:[NSNull class]]) {
user.province = @"";
}
if ([user.city isKindOfClass:[NSNull class]]) {
user.city = @"";
}
if ([user.area isKindOfClass:[NSNull class]]) {
user.area = @"";
}
NSString *loaction = [NSString stringWithFormat:@"%@%@%@",user.province,user.city,user.area];
_kindDeail.text = loaction;
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemeberEditeViewCustomCell" rowHeight="44" id="KGk-i7-Jjw" customClass="MemeberEditeViewCustomCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rnB-Hj-Jbb">
<rect key="frame" x="15" y="14" width="64" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="Rk8-HH-Wyn"/>
<constraint firstAttribute="width" constant="64" id="S0h-7p-soZ"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wez-bC-LyH">
<rect key="frame" x="107" y="14" width="205" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="GxK-7e-kbS"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ScB-fK-aFk">
<rect key="frame" x="15" y="43" width="399" height="1"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="NC3-ZH-Psk"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="wez-bC-LyH" secondAttribute="trailing" id="1dC-kI-TZO"/>
<constraint firstItem="rnB-Hj-Jbb" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="DVu-Fq-ADL"/>
<constraint firstItem="wez-bC-LyH" firstAttribute="leading" secondItem="rnB-Hj-Jbb" secondAttribute="trailing" constant="28" id="EOd-hc-hML"/>
<constraint firstAttribute="trailing" secondItem="ScB-fK-aFk" secondAttribute="trailing" constant="-94" id="UIw-iV-3AH"/>
<constraint firstItem="ScB-fK-aFk" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Voj-Ur-QLv"/>
<constraint firstAttribute="bottom" secondItem="ScB-fK-aFk" secondAttribute="bottom" id="Yod-rF-l3A"/>
<constraint firstItem="wez-bC-LyH" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="cki-Fh-nEc"/>
<constraint firstItem="rnB-Hj-Jbb" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="h4v-if-iGW"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="kindDeail" destination="wez-bC-LyH" id="F5D-NU-9QM"/>
<outlet property="kindLabel" destination="rnB-Hj-Jbb" id="6lL-cG-QW4"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,21 @@
//
// ShopMemberDetailViewInfoCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShopUserDatailData.h"
#import "MemberNanageListData.h"
@interface ShopMemberDetailViewInfoCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *memberuserImg;
@property (weak, nonatomic) IBOutlet UILabel *memberName;
@property (weak, nonatomic) IBOutlet UILabel *lastLogTime;
@property (weak, nonatomic) IBOutlet UILabel *deviceNumber;
@property (weak, nonatomic) IBOutlet UILabel *cameraNumber;
@property (weak, nonatomic) IBOutlet UIButton *chatBtn;
-(void)loadataWith:(MemberNanageListData *)data andUserInfo:(ShopUserDatailData *)user;
@end
@@ -0,0 +1,55 @@
//
// ShopMemberDetailViewInfoCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "ShopMemberDetailViewInfoCell.h"
#import "UIImageView+WebCache.h"
@implementation ShopMemberDetailViewInfoCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
_chatBtn.layer.masksToBounds = YES;
_chatBtn.layer.cornerRadius = 5;
_memberuserImg.layer.masksToBounds = YES;
_memberuserImg.layer.cornerRadius = _memberuserImg.frame.size.height/2;
}
-(void)loadataWith:(MemberNanageListData*)data andUserInfo:(ShopUserDatailData *)user{
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
[_memberuserImg sd_setImageWithURL:[NSURL URLWithString:str]];
_memberName.text = data.nickName;
_lastLogTime.text = [NSString stringWithFormat:@"最后登录时间%@",data.loginTime];;
NSString *dnumStr = [NSString stringWithFormat:@"%@",user.deviceNum];
if (!user.deviceNum||[user.deviceNum isKindOfClass:[NSNull class]]) {
dnumStr = @"0";
}
NSMutableAttributedString * deviceNumberString = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"水族箱%@个",dnumStr]];
[deviceNumberString addAttribute:NSForegroundColorAttributeName value:RGB(255.0, 199.0, 92.0) range:NSMakeRange(3,dnumStr.length)];
_deviceNumber.attributedText = deviceNumberString;
NSString *cameraStr = [NSString stringWithFormat:@"%@",user.cameraNum];
if (!user.cameraNum||[user.cameraNum isKindOfClass:[NSNull class]]) {
cameraStr = @"0";
}
NSMutableAttributedString * cameraNumberString = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"摄像头%@个",cameraStr]];
[cameraNumberString addAttribute:NSForegroundColorAttributeName value:RGB(255.0, 199.0, 92.0) range:NSMakeRange(3,cameraStr.length)];
_cameraNumber.attributedText = cameraNumberString;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="ShopMemberDetailViewInfoCell" id="KGk-i7-Jjw" customClass="ShopMemberDetailViewInfoCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="90"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="90"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="LqL-EC-6gX">
<rect key="frame" x="17" y="15" width="61" height="61"/>
<constraints>
<constraint firstAttribute="width" constant="61" id="gdA-vr-ohl"/>
<constraint firstAttribute="height" constant="61" id="kuo-is-UsB"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="会员名" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dbK-nM-sxY">
<rect key="frame" x="86" y="24" width="147" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="a5y-S1-t4F"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ndq-5j-AIm">
<rect key="frame" x="86" y="44" width="147" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="QHC-85-cyE"/>
<constraint firstAttribute="width" constant="147" id="vwQ-Sz-W6E"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zqD-4l-KO5">
<rect key="frame" x="86" y="61" width="28.5" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="Sw5-Ks-y7z"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YNh-jZ-Oag">
<rect key="frame" x="241" y="18" width="68" height="27"/>
<color key="backgroundColor" red="0.0" green="0.72156862745098038" blue="0.93725490196078431" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="27" id="7OO-Da-ebO"/>
<constraint firstAttribute="width" constant="68" id="VVs-Uf-CmC"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<inset key="imageEdgeInsets" minX="-10" minY="0.0" maxX="0.0" maxY="0.0"/>
<state key="normal" title="聊天" image="live_sharechat_iocn.png"/>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="o7g-Pq-IIg">
<rect key="frame" x="128.5" y="61" width="28.5" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="fmm-M3-MWL"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="YNh-jZ-Oag" secondAttribute="trailing" constant="3" id="31K-j1-KG5"/>
<constraint firstItem="YNh-jZ-Oag" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="10" id="4hh-WK-OAQ"/>
<constraint firstItem="Ndq-5j-AIm" firstAttribute="leading" secondItem="LqL-EC-6gX" secondAttribute="trailing" constant="8" id="7Rw-V7-xPB"/>
<constraint firstItem="zqD-4l-KO5" firstAttribute="leading" secondItem="LqL-EC-6gX" secondAttribute="trailing" constant="8" id="7ll-Rv-MTP"/>
<constraint firstItem="Ndq-5j-AIm" firstAttribute="top" secondItem="dbK-nM-sxY" secondAttribute="bottom" constant="5" id="B3F-pY-u9Y"/>
<constraint firstItem="o7g-Pq-IIg" firstAttribute="top" secondItem="Ndq-5j-AIm" secondAttribute="bottom" constant="2" id="GI3-zK-rK5"/>
<constraint firstItem="zqD-4l-KO5" firstAttribute="top" secondItem="Ndq-5j-AIm" secondAttribute="bottom" constant="2" id="I7j-P0-be2"/>
<constraint firstItem="dbK-nM-sxY" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="16" id="Oeq-dA-wqt"/>
<constraint firstItem="LqL-EC-6gX" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="UOx-VS-shA"/>
<constraint firstItem="zqD-4l-KO5" firstAttribute="top" secondItem="Ndq-5j-AIm" secondAttribute="bottom" constant="2" id="bmx-5q-fZJ"/>
<constraint firstItem="dbK-nM-sxY" firstAttribute="leading" secondItem="LqL-EC-6gX" secondAttribute="trailing" constant="8" id="das-A1-XNV"/>
<constraint firstItem="YNh-jZ-Oag" firstAttribute="leading" secondItem="dbK-nM-sxY" secondAttribute="trailing" constant="8" id="qHJ-bY-Pmp"/>
<constraint firstItem="o7g-Pq-IIg" firstAttribute="leading" secondItem="zqD-4l-KO5" secondAttribute="trailing" constant="14" id="r5v-4Y-UxO"/>
<constraint firstItem="LqL-EC-6gX" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="9" id="xxn-NZ-y19"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="cameraNumber" destination="o7g-Pq-IIg" id="MDP-st-nWk"/>
<outlet property="chatBtn" destination="YNh-jZ-Oag" id="wWH-k5-tcw"/>
<outlet property="deviceNumber" destination="zqD-4l-KO5" id="Mmb-4E-E0q"/>
<outlet property="lastLogTime" destination="Ndq-5j-AIm" id="hgc-Kp-yAF"/>
<outlet property="memberName" destination="dbK-nM-sxY" id="Dd4-um-nBn"/>
<outlet property="memberuserImg" destination="LqL-EC-6gX" id="wfv-5d-B3N"/>
</connections>
</tableViewCell>
</objects>
<resources>
<image name="live_sharechat_iocn.png" width="11" height="11"/>
</resources>
</document>