PaymentinformationCell.m 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //
  2. // PaymentinformationCell.m
  3. // jitao
  4. //
  5. // Created by 罗云飞 on 2017/12/24.
  6. // Copyright © 2017年 罗云飞. All rights reserved.
  7. //
  8. #import "PaymentinformationCell.h"
  9. @implementation PaymentinformationCell
  10. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  12. if (self) {
  13. UILabel *line = [UILabel new];
  14. line.backgroundColor = NewLineGrayColor;
  15. [self.contentView addSubview:line];
  16. line.sd_layout
  17. .leftEqualToView(self.contentView)
  18. .heightIs(10)
  19. .rightEqualToView(self.contentView)
  20. .topEqualToView(self.contentView);
  21. UILabel *line1 = [UILabel new];
  22. line1.backgroundColor = NewButtonColor;
  23. ViewRadius(line1, 1);
  24. [self.contentView addSubview:line1];
  25. line1.sd_layout
  26. .leftSpaceToView(self.contentView, 15)
  27. .topSpaceToView(line, 15)
  28. .heightIs(fitScreenWidth(18))
  29. .widthIs(3);
  30. _title = [UILabel new];
  31. _title.text = @"支付信息";
  32. _title.font = NewFont(fitScreenWidth(14));
  33. _title.lineBreakMode = NSLineBreakByTruncatingTail;
  34. _title.numberOfLines = 1;
  35. [self.contentView addSubview:_title];
  36. _title.sd_layout
  37. .leftSpaceToView(line1, 10)
  38. .heightIs(fitScreenWidth(44))
  39. .topSpaceToView(line, 0)
  40. .rightSpaceToView(self.contentView, 15);
  41. UILabel *line2 = [UILabel new];
  42. line2.backgroundColor = NewLineGrayColor;
  43. [self.contentView addSubview:line2];
  44. line2.sd_layout
  45. .leftEqualToView(self.contentView)
  46. .heightIs(0.8)
  47. .rightEqualToView(self.contentView)
  48. .topSpaceToView(line, fitScreenWidth(44));
  49. _accountName = [UILabel new];
  50. _accountName.text = [NSString stringWithFormat:@"开户姓名:%@",@"湖南科德信息咨询有限公司"];
  51. _accountName.font = NewFont(fitScreenWidth(13));
  52. [_accountName setSingleLineAutoResizeWithMaxWidth:0];
  53. [self.contentView addSubview:_accountName];
  54. _accountName.sd_layout
  55. .leftSpaceToView(self.contentView, 15)
  56. .heightIs(fitScreenWidth(13))
  57. .topSpaceToView(line2, 15);
  58. _openingaccount = [UILabel new];
  59. _openingaccount.text = [NSString stringWithFormat:@"开户账号:%@",@"1901 0021 0920 1021 475"];
  60. _openingaccount.font = NewFont(fitScreenWidth(13));
  61. [_openingaccount setSingleLineAutoResizeWithMaxWidth:0];
  62. [self.contentView addSubview:_openingaccount];
  63. _openingaccount.sd_layout
  64. .leftSpaceToView(self.contentView, 15)
  65. .heightIs(fitScreenWidth(13))
  66. .topSpaceToView(_accountName, 15);
  67. _bank = [UILabel new];
  68. _bank.text = [NSString stringWithFormat:@"开户行 :%@ ",@"工商银行长沙市展览馆支行"];
  69. _bank.font = NewFont(fitScreenWidth(13));
  70. [_bank setSingleLineAutoResizeWithMaxWidth:0];
  71. [self.contentView addSubview:_bank];
  72. _bank.sd_layout
  73. .leftSpaceToView(self.contentView, 15)
  74. .heightIs(fitScreenWidth(13))
  75. .topSpaceToView(_openingaccount, 15);
  76. }
  77. return self;
  78. }
  79. - (void)awakeFromNib {
  80. [super awakeFromNib];
  81. // Initialization code
  82. }
  83. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  84. [super setSelected:selected animated:animated];
  85. // Configure the view for the selected state
  86. }
  87. @end