//
//  PostCell.m
//  Open
//
//  Created by 看看智能 on 2017/3/9.
//  Copyright © 2017年 黄江涛 . All rights reserved.
//

#import "PostCell.h"
#import "UIImageView+WebCache.h"
@implementation PostCell

- (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)setMess:(postMessageResultModel *)Mess
{
    _Mess =Mess;
       self.title_pC.text= [EnercryTool decryptUseDES:Mess.publishName key:DESKEY];
    self.titleCraftChild.text =Mess.publish_catalogName;
    self.titleCraftChild.layer.cornerRadius =10.0;
   self.titleCraftChild.layer.masksToBounds =YES;
    
    
    self.titleCraft_pC.text =Mess.publish_parentName;
    self.titleDate_PC.text =Mess.timeString;
    
    //图片
    NSArray *newArray = [Mess.publish_image componentsSeparatedByString:@","];
    NSLog(@"new array = %@", newArray);
    
    [self.imageView_pC sd_setImageWithURL:[NSURL URLWithString:newArray[0]] placeholderImage:[UIImage imageNamed:@"titleimage_1"]];
    
}

@end
