|
@@ -146,7 +146,7 @@ class PQSelecteMusicView: UIView {
|
|
|
searchMusiceDatas.insert(model, at: 0)
|
|
|
|
|
|
//有搜索的数据
|
|
|
- if(musicDatas.first?.cacheTagID == 425){
|
|
|
+ if(currentSelectTag?.tagId == 425){
|
|
|
musicDatas.insert(contentsOf: searchMusiceDatas, at: 0)
|
|
|
}
|
|
|
|
|
@@ -211,9 +211,11 @@ class PQSelecteMusicView: UIView {
|
|
|
}
|
|
|
|
|
|
self?.selectMusicCollection.reloadData()
|
|
|
-
|
|
|
- //歌曲列表返回到头部
|
|
|
- self?.selectMusicCollection.setContentOffset(.zero, animated: false)
|
|
|
+ if( self?.pageNum == 2){
|
|
|
+ //歌曲列表返回到头部
|
|
|
+ self?.selectMusicCollection.setContentOffset(.zero, animated: false)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|