{
+ this.popupHeaderVisible=offsetTop-e.target.scrollTop<100
+ });
},
async genSonglist(playlist) {
const trackIds = playlist.trackIds.map(({ id }) => id)
@@ -133,7 +151,8 @@ export default {
-
\ No newline at end of file
diff --git a/src/page/playlist-detail/index.vue b/src/page/playlist-detail/index.vue
index ae0fc43..71b08a7 100644
--- a/src/page/playlist-detail/index.vue
+++ b/src/page/playlist-detail/index.vue
@@ -4,7 +4,11 @@
-
+
+
+
{
- this.popupHeaderVisible=offsetTop-e.target.scrollTop<100
+ this.$refs.playListDetail.addEventListener("scroll",() => {
+ this.popupHeaderVisible=offsetTop-this.$el.scrollTop<100
});
+
},
async genSonglist(playlist) {
const trackIds = playlist.trackIds.map(({ id }) => id)