diff --git a/src/components/RecommendAlbum.vue b/src/components/RecommendAlbum.vue index 055e713..ef0f189 100644 --- a/src/components/RecommendAlbum.vue +++ b/src/components/RecommendAlbum.vue @@ -52,13 +52,13 @@ onMounted(() => { &-item { @apply rounded-xl overflow-hidden relative; &-img { - @apply rounded-xl transition; + @apply rounded-xl transition w-full h-full; } &:hover img { filter: brightness(50%); } &-content { - @apply w-full h-full opacity-0 transition absolute z-10 top-0 left-0 p-4 text-xl; + @apply w-full h-full opacity-0 transition absolute z-10 top-0 left-0 p-4 text-xl bg-opacity-60 bg-black; } &-content:hover { opacity: 1; diff --git a/src/components/common/SongItem.vue b/src/components/common/SongItem.vue index 472e28e..1dfca36 100644 --- a/src/components/common/SongItem.vue +++ b/src/components/common/SongItem.vue @@ -1,7 +1,7 @@ \ No newline at end of file + diff --git a/src/utils/index.ts b/src/utils/index.ts index 77e3be8..ece2b4e 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -33,5 +33,6 @@ export const getIsMc = () => { export const getImgUrl = computed(() => (url: string, size: string) => { const bdUrl = 'https://image.baidu.com/search/down?url=' - return getIsMc() ? `${bdUrl}${url}?param${size}` : `${url}?param${size}` + const imgUrl = encodeURIComponent(`${url}?param=${size}`) + return getIsMc() ? `${bdUrl}${imgUrl}` : `${url}?param=${size}` }) diff --git a/src/views/search/index.vue b/src/views/search/index.vue index 004edbb..817489a 100644 --- a/src/views/search/index.vue +++ b/src/views/search/index.vue @@ -28,7 +28,6 @@ class="search-list" :class="setAnimationClass('animate__fadeInUp')" :native-scrollbar="false" - @scroll="searchScrolling" >
{{ hotKeyword }}
@@ -69,10 +68,6 @@ const loadHotSearch = async () => { hotSearchData.value = data; }; -function searchScrolling(e: any) { - console.log(e); -} - onMounted(() => { loadHotSearch();