1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // GoodsDetailSrcView.m
- // Asteria
- //
- // Created by 王猛 on 2023/5/8.
- //
- #import "GoodsDetailSrcView.h"
- #import "WKM_goodsBanner.h"
- @interface GoodsDetailSrcView ()
- @property (nonatomic, strong) GoodsInformationM *infoModel;
- @property (nonatomic, strong) WKM_goodsBanner *goodsBanner;
- @property (nonatomic, strong) QMUILabel *titleLab;
- @property (nonatomic, strong) QMUILabel *soldLab;
- @property (nonatomic, strong) QMUILabel *reviewsLab;
- @property (nonatomic, strong) QMUILabel *priceLab;
- @end
- @implementation GoodsDetailSrcView
- - (void)tt_addsubviewS{
- [self addSubview:self.goodsBanner];
- [self.goodsBanner mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.top.mas_equalTo(0);
- make.width.mas_equalTo(KScreenWidth);
- make.height.mas_equalTo(KScreenWidth+112+10);
- }];
- }
- - (void)tt_configData:(id)data{
- GoodsInformationM *model = (GoodsInformationM *)data;
- self.infoModel = model;
- [self.goodsBanner tt_confignewdata:model];
- }
- - (WKM_goodsBanner *)goodsBanner {
- if (!_goodsBanner) {
- _goodsBanner = [[WKM_goodsBanner alloc] init];
- }
- return _goodsBanner;
- }
- @end
|