ifish/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopInfosViewCell.m

50 lines
1.3 KiB
Objective-C

//
// ShopInfosViewCell.m
// Ifish
//
// Created by imac on 17/2/14.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "ShopInfosViewCell.h"
@implementation ShopInfosViewCell
- (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
}
-(void)loadDataWith:(IfishShopInfo *)info atIndex:(NSIndexPath*)indexPath
{
if (indexPath.row==0 &&indexPath.section==1) {
self.InfoTile.text = @"联系电话";
self.InfoDetail.text = info.shopsPhone;
}else if (indexPath.row==1 &&indexPath.section==1){
self.InfoTile.text = @"微信号";
//[self addtouchWith:self.InfoDetail];
if ([info.weixinCode isKindOfClass:[NSNull class]]||!info.weixinCode||[info.weixinCode isEqualToString:@""]) {
info.weixinCode = @"商家暂未设置微信号";
}
self.InfoDetail.text = info.weixinCode;
}else if (indexPath.row==2 &&indexPath.section==1){
self.InfoTile.text = @"详细地址";
self.InfoDetail.text = [NSString stringWithFormat:@"%@%@%@%@",info.shopsProvince,info.shopsCity,info.shopsArea,info.shopsAddress];
}
}
@end