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

40 lines
1.1 KiB
Objective-C

//
// ShopDetailThredViewCell.m
// Ifish
//
// Created by imac on 17/1/17.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "ShopDetailThredViewCell.h"
#import "UIImageView+WebCache.h"
@implementation ShopDetailThredViewCell
- (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
{
//获取系统当前的时间戳
NSDate* dat = [NSDate dateWithTimeIntervalSinceNow:0];
NSTimeInterval time=[dat timeIntervalSince1970]*1000;
NSString *timeString = [NSString stringWithFormat:@"%.0f",time];
NSString * imgUrl = [NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,info.userId,info.picture4,timeString];
// [self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
[self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"shopdetail_palceholder"]];
}
@end