|
@@ -15,7 +15,7 @@ class PQStuckPointMusicContentCell: UICollectionViewCell {
|
|
|
var contentType: stuckPointMusicContentType = .catagery
|
|
|
|
|
|
lazy var audioImageView: UIImageView = {
|
|
|
- let audioImageView = UIImageView(image:UIImage.moduleImage(named: "videomk_music_default", moduleName: "BFFramework",isAssets: false))
|
|
|
+ let audioImageView = UIImageView(image:bfFramworkImage(by: "videomk_music_default")!)
|
|
|
audioImageView.addCorner(corner: 4)
|
|
|
audioImageView.contentMode = .scaleAspectFill
|
|
|
return audioImageView
|
|
@@ -123,7 +123,7 @@ class PQStuckPointMusicContentCell: UICollectionViewCell {
|
|
|
musicNameLab.isHidden = !(bgmData is PQVoiceModel)
|
|
|
titleLab.isHidden = (bgmData is PQVoiceModel)
|
|
|
if bgmData is PQVoiceModel {
|
|
|
- audioImageView.setNetImage(url: "\((bgmData as? PQVoiceModel)?.avatarUrl ?? "")", placeholder: UIImage.moduleImage(named: "videomk_music_default", moduleName: "BFFramework",isAssets: false)!)
|
|
|
+ audioImageView.setNetImage(url: "\((bgmData as? PQVoiceModel)?.avatarUrl ?? "")", placeholder: bfFramworkImage(by: "videomk_music_default")!)
|
|
|
confirmContentView.isHidden = !((bgmData as? PQVoiceModel)?.isSelected ?? false)
|
|
|
if (bgmData as? PQVoiceModel)?.isSelected ?? false {
|
|
|
imageMaskView.isHidden = false
|
|
@@ -131,10 +131,10 @@ class PQStuckPointMusicContentCell: UICollectionViewCell {
|
|
|
if (bgmData as? PQVoiceModel)?.isPlaying ?? false {
|
|
|
|
|
|
if playImageView.image == nil {
|
|
|
- playImageView.image = UIImage().BF_Image(named: "loading")
|
|
|
+ playImageView.image = UIImage.moduleImage(named: "loading", moduleName: "BFFramework", isAssets: false)
|
|
|
startLoadingAnimation()
|
|
|
}else {
|
|
|
- playImageView.kf.setImage(with: URL(fileURLWithPath: (currentBundlePath()!.path(forResource: "stuckPoint_music_playing", ofType: ".gif")!)))
|
|
|
+ playImageView.kf.setImage(with: URL(fileURLWithPath: (currentBundle()!.path(forResource: "stuckPoint_music_playing", ofType: ".gif")!)))
|
|
|
|
|
|
}
|
|
|
musicNameLab.move()
|
|
@@ -149,9 +149,9 @@ class PQStuckPointMusicContentCell: UICollectionViewCell {
|
|
|
}
|
|
|
} else {
|
|
|
if (bgmData as? PQStuckPointMusicTagsModel)?.tagEmoji != nil {
|
|
|
- audioImageView.setNetImage(url: "\((bgmData as? PQStuckPointMusicTagsModel)?.tagEmoji ?? "")", placeholder:UIImage.moduleImage(named: "videomk_music_default", moduleName: "BFFramework",isAssets: false)!)
|
|
|
+ audioImageView.setNetImage(url: "\((bgmData as? PQStuckPointMusicTagsModel)?.tagEmoji ?? "")", placeholder:bfFramworkImage(by: "videomk_music_default")!)
|
|
|
} else {
|
|
|
- audioImageView.image = UIImage.moduleImage(named: "videomk_music_default", moduleName: "BFFramework",isAssets: false)
|
|
|
+ audioImageView.image = bfFramworkImage(by: "videomk_music_default")
|
|
|
}
|
|
|
titleLab.text = " \((bgmData as? PQStuckPointMusicTagsModel)?.tagName ?? "")"
|
|
|
if (titleLab.text?.count ?? 0) > 8 {
|
|
@@ -254,7 +254,7 @@ class PQStuckPointMusicContentCell: UICollectionViewCell {
|
|
|
func stopLoadingAnimation(){
|
|
|
playImageView.layer.removeAllAnimations()
|
|
|
if (bgmData as? PQVoiceModel)?.isPlaying ?? false {
|
|
|
- playImageView.kf.setImage(with: URL(fileURLWithPath: currentBundlePath()!.path(forResource: "stuckPoint_music_playing", ofType: ".gif")!))
|
|
|
+ playImageView.kf.setImage(with: URL(fileURLWithPath: currentBundle()!.path(forResource: "stuckPoint_music_playing", ofType: ".gif")!))
|
|
|
}
|
|
|
}
|
|
|
}
|