🦄 refactor(样式): 修改样式 修改图片加载方式

This commit is contained in:
algerkc@qq.com
2023-12-15 14:24:58 +08:00
parent 4f7d066376
commit 086bbb8958
13 changed files with 126 additions and 49 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
:key="item.id"
>
<div
:style="setBackgroundImg(item.picUrl + '?param=500y500')"
:style="setBackgroundImg(getImgUrl(item.picUrl,'300y300'))"
class="recommend-singer-item-bg"
></div>
<div
@@ -31,7 +31,7 @@
</template>
<script lang="ts" setup>
import { setBackgroundImg, setAnimationDelay, setAnimationClass } from "@/utils";
import { setBackgroundImg, setAnimationDelay, setAnimationClass,getImgUrl } from "@/utils";
import { onMounted, ref } from "vue";
import { getHotSinger } from "@/api/home";
import type { IHotSinger } from "@/type/singer";