// // ShopAlreadyCertifyViewCell.m // Ifish // // Created by imac on 17/2/9. // Copyright © 2017年 lianlian. All rights reserved. // #import "ShopAlreadyCertifyViewCell.h" #import "UIImageView+WebCache.h" @implementation ShopAlreadyCertifyViewCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code //UIImageView *imagView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"merchant_iocn_background"]]; //[self setBackgroundView:imagView]; /*NSString *str= @" 查看店铺"; NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:str]; NSTextAttachment *attch = [[NSTextAttachment alloc] init]; attch.image = [UIImage imageNamed:@"merchant_iocn_shop"]; attch.bounds = CGRectMake(0,-2,17,14); NSAttributedString *attristr=[NSAttributedString attributedStringWithAttachment:attch]; [attri insertAttributedString:attristr atIndex:0]; [self.shopDetailBtn setAttributedTitle:attri forState:UIControlStateNormal]; [attri addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0,str.length+1)]; [attri addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:11] range:NSMakeRange(0,str.length+1)]; self.shopDetailBtn.layer.masksToBounds = YES; self.shopDetailBtn.layer.cornerRadius = 5; self.shopUserIcon.layer.masksToBounds = YES; self.shopUserIcon.layer.cornerRadius = 5;*/ self.shopUserIcon.layer.masksToBounds = YES; self.shopUserIcon.layer.cornerRadius = 5; } -(void)loadDataWith:(CertificationShopModel*)model{ UserModel *userModel=[dataContorl getUserInfo]; [self.shopUserIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]]; self.shopAdderess.text =[NSString stringWithFormat:@"详细地址:%@%@%@%@",model.shopsProvince,model.shopsCity,model.shopsArea,model.shopsAddress]; self.shopTel.text = [NSString stringWithFormat:@"联系方式:%@",model.shopsPhone]; self.shopUserName.text = userModel.nickName; self.shopName.text = model.shopsName; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end