feat(周星榜及其组件): 使用网络图片,并对接图片的缓存,预加载等功能

This commit is contained in:
hzj 2025-12-03 10:49:26 +08:00
parent cb3ebd846c
commit 657ab56990
2 changed files with 4 additions and 4 deletions

View File

@ -594,7 +594,7 @@
> >
<img <img
v-smart-img v-smart-img
src="/src/assets/images/TopList/timeBack.png" :src="imageUrl('timeBack')"
alt="" alt=""
width="13%" width="13%"
@click="changeHistoryIndex(1)" @click="changeHistoryIndex(1)"
@ -619,7 +619,7 @@
</div> </div>
<img <img
v-smart-img v-smart-img
src="/src/assets/images/TopList/timeNext.png" :src="imageUrl('timeNext')"
alt="" alt=""
width="13%" width="13%"
@click="changeHistoryIndex(-1)" @click="changeHistoryIndex(-1)"
@ -1093,6 +1093,8 @@ const preloadCriticalImages = () => {
imageUrl('nameBg'), imageUrl('nameBg'),
imageUrl('giftsBg'), imageUrl('giftsBg'),
imageUrl('ConfirmBt'), imageUrl('ConfirmBt'),
imageUrl('timeBack'),
imageUrl('timeNext'),
] ]
preloadImages(criticalImages, { useSmartCache: true }) preloadImages(criticalImages, { useSmartCache: true })

View File

@ -75,8 +75,6 @@
</template> </template>
<script setup> <script setup>
import { getPngUrl } from '@/config/imagePaths.js'
const props = defineProps({ const props = defineProps({
isTopOne: { isTopOne: {
type: Boolean, type: Boolean,