ASGoodsReviewFootCell.m 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // ASGoodsReviewFootCell.m
  3. // Asteria
  4. //
  5. // Created by xingyu on 2024/5/25.
  6. //
  7. #import "ASGoodsReviewFootCell.h"
  8. @interface ASGoodsReviewFootCell()
  9. @end
  10. @implementation ASGoodsReviewFootCell
  11. - (void)setupSubviewS {
  12. // UIView *backView = [[UIView alloc] init];
  13. // [self.contentView addSubview:backView];
  14. // [backView mas_makeConstraints:^(MASConstraintMaker *make) {
  15. // make.left.mas_equalTo(10);
  16. // make.top.mas_equalTo(10);
  17. // make.right.mas_equalTo(-10);
  18. //// make.height.mas_equalTo(45);
  19. // make.bottom.mas_equalTo(0);
  20. // }];
  21. UIButton *viewMoreBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  22. viewMoreBtn.titleLabel.font = [UIFont fontWithName:Rob_Regular size:16];
  23. [viewMoreBtn setTitle:@"VIEW MORE" forState:UIControlStateNormal];
  24. [viewMoreBtn setTitleColor:Col_000 forState:UIControlStateNormal];
  25. viewMoreBtn.backgroundColor = Col_FFF;
  26. [viewMoreBtn addTarget:self action:@selector(_btnClick) forControlEvents:UIControlEventTouchUpInside];
  27. TT_ViewBorderRadius(viewMoreBtn, 4, 1, Col_000);
  28. [self.contentView addSubview:viewMoreBtn];
  29. [viewMoreBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  30. make.top.mas_equalTo(10);
  31. make.height.mas_equalTo(36);
  32. make.width.mas_equalTo(200);
  33. make.centerX.mas_equalTo(self.contentView);
  34. make.bottom.mas_equalTo(-10);
  35. }];
  36. }
  37. - (void)_btnClick {
  38. if (self.currencyparameterClose) {
  39. self.currencyparameterClose(5, nil);
  40. }
  41. }
  42. @end