GoodsDetailSrcView.m 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // GoodsDetailSrcView.m
  3. // Asteria
  4. //
  5. // Created by 王猛 on 2023/5/8.
  6. //
  7. #import "GoodsDetailSrcView.h"
  8. #import "WKM_goodsBanner.h"
  9. @interface GoodsDetailSrcView ()
  10. @property (nonatomic, strong) GoodsInformationM *infoModel;
  11. @property (nonatomic, strong) WKM_goodsBanner *goodsBanner;
  12. @property (nonatomic, strong) QMUILabel *titleLab;
  13. @property (nonatomic, strong) QMUILabel *soldLab;
  14. @property (nonatomic, strong) QMUILabel *reviewsLab;
  15. @property (nonatomic, strong) QMUILabel *priceLab;
  16. @end
  17. @implementation GoodsDetailSrcView
  18. - (void)tt_addsubviewS{
  19. [self addSubview:self.goodsBanner];
  20. [self.goodsBanner mas_makeConstraints:^(MASConstraintMaker *make) {
  21. make.left.top.mas_equalTo(0);
  22. make.width.mas_equalTo(KScreenWidth);
  23. make.height.mas_equalTo(KScreenWidth+112+10);
  24. }];
  25. }
  26. - (void)tt_configData:(id)data{
  27. GoodsInformationM *model = (GoodsInformationM *)data;
  28. self.infoModel = model;
  29. [self.goodsBanner tt_confignewdata:model];
  30. }
  31. - (WKM_goodsBanner *)goodsBanner {
  32. if (!_goodsBanner) {
  33. _goodsBanner = [[WKM_goodsBanner alloc] init];
  34. }
  35. return _goodsBanner;
  36. }
  37. @end