JXVipDetailCCell.m 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // JXVipDetailCCell.m
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/5/16.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import "JXVipDetailCCell.h"
  9. @interface JXVipDetailCCell()
  10. @property (weak, nonatomic) IBOutlet UILabel *vipLeverL;
  11. @property (weak, nonatomic) IBOutlet UIImageView *leverLIMG;
  12. @property (weak, nonatomic) IBOutlet UILabel *totalPriceL;
  13. @property (weak, nonatomic) IBOutlet UILabel *liusPriceL;
  14. @property (weak, nonatomic) IBOutlet UILabel *baojiPriceL;
  15. @end
  16. @implementation JXVipDetailCCell
  17. - (void)awakeFromNib {
  18. [super awakeFromNib];
  19. self.backgroundColor=[UIColor yellowColor];
  20. // Initialization code
  21. // CAGradientLayer *gl = [CAGradientLayer layer];
  22. // gl.frame = CGRectMake(46.3,335.5,self.frame.size.width,119.3);
  23. // gl.startPoint = CGPointMake(0, 0);
  24. // gl.endPoint = CGPointMake(1, 1);
  25. // 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];
  26. // gl.locations = @[@(0.0),@(1.0f)];
  27. //
  28. // [self.layer addSublayer:gl];
  29. // _vipLeverL.layer.cornerRadius = 11;
  30. }
  31. -(void)setModel:(vipDetailModel *)model{
  32. self.vipLeverL.text=[NSString stringWithFormat:@"VIP%@",model.level];
  33. //self.leverLIMG.image=[NSString stringWithFormat:@"VIP%@",model.level];
  34. self.totalPriceL.text=[NSString stringWithFormat:@"VIP%@",model.money];
  35. self.liusPriceL.text=[NSString stringWithFormat:@"VIP%@",model.weekRedPackageCoin];
  36. self.baojiPriceL.text=[NSString stringWithFormat:@"VIP%@",model.weekRedPackageCoin];
  37. }
  38. @end