feat(周星榜及其组件): 使用网络图片,并对接图片的缓存,预加载等功能
This commit is contained in:
parent
cb3ebd846c
commit
657ab56990
@ -594,7 +594,7 @@
|
||||
>
|
||||
<img
|
||||
v-smart-img
|
||||
src="/src/assets/images/TopList/timeBack.png"
|
||||
:src="imageUrl('timeBack')"
|
||||
alt=""
|
||||
width="13%"
|
||||
@click="changeHistoryIndex(1)"
|
||||
@ -619,7 +619,7 @@
|
||||
</div>
|
||||
<img
|
||||
v-smart-img
|
||||
src="/src/assets/images/TopList/timeNext.png"
|
||||
:src="imageUrl('timeNext')"
|
||||
alt=""
|
||||
width="13%"
|
||||
@click="changeHistoryIndex(-1)"
|
||||
@ -1093,6 +1093,8 @@ const preloadCriticalImages = () => {
|
||||
imageUrl('nameBg'),
|
||||
imageUrl('giftsBg'),
|
||||
imageUrl('ConfirmBt'),
|
||||
imageUrl('timeBack'),
|
||||
imageUrl('timeNext'),
|
||||
]
|
||||
|
||||
preloadImages(criticalImages, { useSmartCache: true })
|
||||
|
||||
@ -75,8 +75,6 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getPngUrl } from '@/config/imagePaths.js'
|
||||
|
||||
const props = defineProps({
|
||||
isTopOne: {
|
||||
type: Boolean,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user