// // JXVipDetailCCell.m // shiku_im // // Created by 123 on 2020/5/16. // Copyright © 2020 Reese. All rights reserved. // #import "JXVipDetailCCell.h" @interface JXVipDetailCCell() @property (weak, nonatomic) IBOutlet UILabel *vipLeverL; @property (weak, nonatomic) IBOutlet UIImageView *leverLIMG; @property (weak, nonatomic) IBOutlet UILabel *totalPriceL; @property (weak, nonatomic) IBOutlet UILabel *liusPriceL; @property (weak, nonatomic) IBOutlet UILabel *baojiPriceL; @end @implementation JXVipDetailCCell - (void)awakeFromNib { [super awakeFromNib]; self.backgroundColor=[UIColor yellowColor]; // Initialization code // CAGradientLayer *gl = [CAGradientLayer layer]; // gl.frame = CGRectMake(46.3,335.5,self.frame.size.width,119.3); // gl.startPoint = CGPointMake(0, 0); // gl.endPoint = CGPointMake(1, 1); // gl.colors = @[(__bridge id)[UIColor colorWithRed:202/255.0 green:183/255.0 blue:183/255.0 alpha:1.0].CGColor,(__bridge id)[UIColor colorWithRed:230/255.0 green:219/255.0 blue:219/255.0 alpha:1.0].CGColor]; // gl.locations = @[@(0.0),@(1.0f)]; // // [self.layer addSublayer:gl]; // _vipLeverL.layer.cornerRadius = 11; } -(void)setModel:(vipDetailModel *)model{ self.vipLeverL.text=[NSString stringWithFormat:@"VIP%@",model.level]; //self.leverLIMG.image=[NSString stringWithFormat:@"VIP%@",model.level]; self.totalPriceL.text=[NSString stringWithFormat:@"VIP%@",model.money]; self.liusPriceL.text=[NSString stringWithFormat:@"VIP%@",model.weekRedPackageCoin]; self.baojiPriceL.text=[NSString stringWithFormat:@"VIP%@",model.weekRedPackageCoin]; } @end