fix: 修正验收问题
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
@property(nonatomic, strong) NSString *imageURLString;
|
||||
@property(nonatomic, strong) NetImageView *imageView;
|
||||
@property(nonatomic, strong) SVGAImageView *svgaImageView;
|
||||
@property(nonatomic, strong) SVGAVideoEntity *videoItem;
|
||||
//@property(nonatomic, strong) SVGAVideoEntity *videoItem;
|
||||
|
||||
@end
|
||||
|
||||
@@ -57,24 +57,23 @@
|
||||
self.type == HomeBannerInfoSkipType_Web_WeekStar) {
|
||||
self.imageView.hidden = YES;
|
||||
self.svgaImageView.hidden = NO;
|
||||
if (self.videoItem) {
|
||||
[self playSVGAWith:self.videoItem];
|
||||
} else {
|
||||
SVGAParser *p = [[SVGAParser alloc] init];
|
||||
@kWeakify(self);
|
||||
[p parseWithURL:[NSURL URLWithString:imageURLString] completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {
|
||||
@kStrongify(self);
|
||||
if (videoItem) {
|
||||
self.videoItem = videoItem;
|
||||
[self playSVGAWith:videoItem];
|
||||
}
|
||||
} failureBlock:^(NSError * _Nullable error) {
|
||||
@kStrongify(self);
|
||||
SVGAParser *p = [[SVGAParser alloc] init];
|
||||
@kWeakify(self);
|
||||
[p parseWithURL:[NSURL URLWithString:imageURLString] completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {
|
||||
@kStrongify(self);
|
||||
if (videoItem) {
|
||||
[self playSVGAWith:videoItem];
|
||||
} else {
|
||||
self.svgaImageView.hidden = YES;
|
||||
self.imageView.hidden = NO;
|
||||
self.imageView.imageUrl = imageURLString;
|
||||
}];
|
||||
}
|
||||
}
|
||||
} failureBlock:^(NSError * _Nullable error) {
|
||||
@kStrongify(self);
|
||||
self.svgaImageView.hidden = YES;
|
||||
self.imageView.hidden = NO;
|
||||
self.imageView.imageUrl = imageURLString;
|
||||
}];
|
||||
} else {
|
||||
self.svgaImageView.hidden = YES;
|
||||
self.imageView.hidden = NO;
|
||||
@@ -109,7 +108,7 @@
|
||||
if (self.svgaImageView && ![NSString isEmpty:content] && ![NSString isEmpty:key]) {
|
||||
NSAttributedString *string = [[NSAttributedString alloc] initWithString:content
|
||||
attributes:@{
|
||||
NSFontAttributeName: kFontMedium(30),
|
||||
NSFontAttributeName: kFontMedium(16),
|
||||
NSForegroundColorAttributeName: UIColorFromRGB(0xF9F8CF)
|
||||
}];
|
||||
[self.svgaImageView setAttributedText:string
|
||||
|
Reference in New Issue
Block a user