12345678910111213141516171819202122232425262728 |
- //
- // GoodsBannerModel.m
- // westkissMob
- //
- // Created by 王猛 on 2022/9/14.
- //
- #import "GoodsBannerModel.h"
- @implementation GoodsBannerModel
- + (GoodsBannerModel *)xxx_loadWithModel:(MediaGalleryEntriesModel *)tempModel{
- GoodsBannerModel *model = [[GoodsBannerModel alloc]init];
- if([tempModel.media_type isEqualToString:@"external-video"]){
- model.cellType = CellContentTypeVideo;
- model.url = tempModel.label;
- model.small = [NSString stringWithFormat:@"https:%@%@%@",HostPath,ProductImgPath,tempModel.file];
- }else{
- model.cellType = CellContentTypeImg;
- model.url = [NSString stringWithFormat:@"https:%@%@%@",HostPath,ProductImgPath,tempModel.file];
- model.small = [NSString stringWithFormat:@"https:%@%@%@",HostPath,ProductImgPath,tempModel.file];
- }
-
-
- return model;
- }
- @end
|