feat(CP活动): 取消网络图片的图片指令,减少请求负担

This commit is contained in:
hzj 2026-02-25 16:29:17 +08:00
parent b7c5f9cc48
commit fff92b6c3d
25 changed files with 226 additions and 263 deletions

View File

@ -24,7 +24,6 @@
>
<div :style="{ width: avatarWidth }">
<img
v-smart-img
:src="avatarUrl || ''"
alt=""
width="100%"
@ -79,8 +78,8 @@
ranking == '1'
? `linear-gradient(270deg, #AD1300 0%, #FE280C 50%, #AD1300 100%)`
: ranking == '2'
? `linear-gradient(270deg, #A3FDF9 0%, #1D7BBD 50%, #A3FDF9 100%)`
: `linear-gradient(270deg, #F5EAE4 0%, #F9C29E 50%, #F5EAE4 100%)`,
? `linear-gradient(270deg, #A3FDF9 0%, #1D7BBD 50%, #A3FDF9 100%)`
: `linear-gradient(270deg, #F5EAE4 0%, #F9C29E 50%, #F5EAE4 100%)`,
}"
>
<img

View File

@ -203,7 +203,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="listItem?.avatar || ''"
alt=""
style="
@ -306,7 +305,6 @@
>
<!-- 奖励图片 -->
<img
v-smart-img
:src="reward.cover || ''"
alt=""
style="display: block; width: 70%; object-fit: cover"
@ -363,7 +361,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="myRanking.avatar || ''"
alt=""
style="

View File

@ -27,7 +27,6 @@
@animationend="handleAnimationEnd(item.id)"
>
<img
v-smart-img
:src="item.avatar || ''"
alt=""
style="

View File

@ -24,7 +24,6 @@
>
<div :style="{ width: avatarWidth }">
<img
v-smart-img
:src="avatarUrl || ''"
alt=""
width="100%"

View File

@ -102,7 +102,7 @@
style="width: 30%; display: flex; flex-direction: column"
>
<itemCenter :imgUrl="imageUrl('giftBg')">
<img v-smart-img :src="gift.giftPhoto" alt="" width="50%" />
<img :src="gift.giftPhoto" alt="" width="50%" />
</itemCenter>
<div
style="display: flex; justify-content: center; align-items: center; gap: 2px"
@ -356,7 +356,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="listItem?.avatar || ''"
alt=""
style="
@ -481,7 +480,6 @@
>
<!-- 预览图 -->
<img
v-smart-img
v-if="item.cover != ''"
:src="item.cover"
alt=""
@ -538,7 +536,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="listItem?.avatar || ''"
alt=""
style="
@ -705,7 +702,6 @@
"
>
<img
v-smart-img
:src="prize.prizeImage || ''"
:alt="prize.prizeName || ''"
width="70%"
@ -904,7 +900,6 @@
<!-- 奖励图 -->
<img
v-for="Badge in RechargeBadgeInfo.rewardProps"
v-smart-img
:src="Badge.cover || ''"
alt=""
style="display: block; width: 18vw"
@ -1139,7 +1134,6 @@
>
<!-- 头像 -->
<img
v-smart-img
:src="userInfo.userAvatar || ''"
alt=""
style="
@ -1297,7 +1291,6 @@
<!-- 头像 -->
<div style="position: relative; width: 50px; margin-right: 12px">
<img
v-smart-img
:src="selectedPayee.avatar || ''"
:alt="selectedPayee.name || ''"
style="width: 100%; object-fit: cover; border-radius: 50%"
@ -1588,7 +1581,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="myRanking.avatar || ''"
alt=""
style="
@ -1664,7 +1656,6 @@
>
<!-- 奖品展示 -->
<img
v-smart-img
:src="topReward.cover"
alt=""
style="width: 60%; display: block; object-fit: cover"
@ -1736,7 +1727,6 @@
<!-- 奖品 -->
<img
v-smart-img
:src="result[resultShowIndex]?.prize?.prizeImage"
alt=""
width="50%"
@ -1830,7 +1820,6 @@
>
<div style="display: flex; align-items: center; gap: 4px">
<img
v-smart-img
:src="record?.prize?.prizeImage || ''"
alt=""
style="width: 10vw; min-width: 0; object-fit: cover; display: block"

View File

@ -1,10 +1,20 @@
<!-- Barrage.vue 优化版 -->
<template>
<div style="position: relative; width: 100%; height: 32vw; overflow: hidden; pointer-events: none">
<div
style="position: relative; width: 100%; height: 32vw; overflow: hidden; pointer-events: none"
>
<!-- 双行弹幕轨道 -->
<div v-for="(track, index) in visibleTracks" :key="index" style="position: absolute; width: 100%; height: 50px"
:style="{ top: `calc(${index} * 16vw)` }">
<div v-for="item in track" :key="item.id" class="barrage-item" style="
<div
v-for="(track, index) in visibleTracks"
:key="index"
style="position: absolute; width: 100%; height: 50px"
:style="{ top: `calc(${index} * 16vw)` }"
>
<div
v-for="item in track"
:key="item.id"
class="barrage-item"
style="
position: absolute;
border-radius: 26px;
padding: 4px;
@ -12,21 +22,36 @@
align-items: center;
gap: 4px;
backdrop-filter: blur(1px);
" :style="getBarrageStyle(item)" @animationend="handleAnimationEnd(item.id)">
<img v-smart-img :src="item.avatar || ''" alt="" style="
"
:style="getBarrageStyle(item)"
@animationend="handleAnimationEnd(item.id)"
>
<img
:src="item.avatar || ''"
alt=""
style="
width: 10vw;
border-radius: 50%;
display: block;
aspect-ratio: 1/1;
object-fit: cover;
" @error="handleAvatarImageError" />
<div style="
"
@error="handleAvatarImageError"
/>
<div
style="
font-weight: 700;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-image: linear-gradient(180deg, #FFF9A9 26.92%, #ED7D0A 52.08%, #FFFAB5 73.08%)
">
background-image: linear-gradient(
180deg,
#fff9a9 26.92%,
#ed7d0a 52.08%,
#fffab5 73.08%
);
"
>
{{ barrageText(item) }}
</div>
</div>
@ -35,227 +60,226 @@
</template>
<script setup>
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
import { ref, computed, onMounted, onUnmounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { handleAvatarImageError } from '@/utils/imageHandler.js'
const { locale, t } = useI18n()
const { locale, t } = useI18n()
const props = defineProps({
barrageList: {
type: Array,
required: true,
default: () => [],
},
const props = defineProps({
barrageList: {
type: Array,
required: true,
default: () => [],
},
speed: {
type: Number,
default: 80, //
},
speed: {
type: Number,
default: 80, //
},
maxItems: {
type: Number,
default: 4, //
},
maxItems: {
type: Number,
default: 4, //
},
loopInterval: {
type: Number,
default: 2000, // (ms)
},
})
loopInterval: {
type: Number,
default: 2000, // (ms)
},
})
const tracks = ref([[], []]) //
const idCounter = ref(0) // ID
const currentIndex = ref(0) //
const tracks = ref([[], []]) //
const idCounter = ref(0) // ID
const currentIndex = ref(0) //
//
const visibleTracks = computed(() => tracks.value.filter((track) => track.length > 0))
//
const visibleTracks = computed(() => tracks.value.filter((track) => track.length > 0))
//
const barrageText = (item) => {
const params = { nickname: item.nickname, prizeName: item.prizeName }
return item.prizeType == 'GOLD' || item.prizeType == 'MONEY'
? t('barrage_won_prize', params)
: t('barrage_won_the_prize', params)
}
//
const barrageText = (item) => {
const params = { nickname: item.nickname, prizeName: item.prizeName }
return item.prizeType == 'GOLD' || item.prizeType == 'MONEY'
? t('barrage_won_prize', params)
: t('barrage_won_the_prize', params)
}
//
const getBarrageStyle = (item) => {
const isRTL = locale.value === 'ar'
//
const getBarrageStyle = (item) => {
const isRTL = locale.value === 'ar'
return {
animationDuration: `${item.duration}s`,
animationDelay: `${item.delay}s`,
'--start-pos': `${item.startPos}px`,
border: item.prizeType == 'MONEY' ? '1px solid #FFF1B2' : '1px solid #BAD0FF',
background:
item.prizeType == 'MONEY'
? 'linear-gradient(270deg, rgba(255, 222, 77, 0.65) 0%, rgba(117, 95, 0, 0.20) 93.75%)'
: 'linear-gradient(270deg, rgba(103, 152, 255, 0.65) 0%, rgba(32, 77, 173, 0.20) 93.75%)',
// RTL
...(isRTL
? {
return {
animationDuration: `${item.duration}s`,
animationDelay: `${item.delay}s`,
'--start-pos': `${item.startPos}px`,
border: item.prizeType == 'MONEY' ? '1px solid #FFF1B2' : '1px solid #BAD0FF',
background:
item.prizeType == 'MONEY'
? 'linear-gradient(270deg, rgba(255, 222, 77, 0.65) 0%, rgba(117, 95, 0, 0.20) 93.75%)'
: 'linear-gradient(270deg, rgba(103, 152, 255, 0.65) 0%, rgba(32, 77, 173, 0.20) 93.75%)',
// RTL
...(isRTL
? {
right: '0',
left: 'auto',
transform: 'translateX(-100vw)',
}
: {
: {
left: '0',
right: 'auto',
transform: 'translateX(100vw)',
}),
}
}
}
//
const generateBarrageProps = (item) => {
const textLength = barrageText(item).length
return {
duration: Math.max(8 - textLength * 0.2, 5) * (100 / props.speed), // 0.25
startPos: Math.floor(Math.random() * 21) - 10, // -1010
}
//
const generateBarrageProps = (item) => {
const textLength = barrageText(item).length
return {
duration: Math.max(8 - textLength * 0.2, 5) * (100 / props.speed), // 0.25
startPos: Math.floor(Math.random() * 21) - 10, // -1010
}
}
//
const addToTrack = (item) => {
//
const trackIndex = tracks.value.reduce(
(minIndex, track, index) => (track.length < tracks.value[minIndex].length ? index : minIndex),
0
)
if (tracks.value[trackIndex].length < props.maxItems) {
tracks.value[trackIndex].push({
...item,
id: idCounter.value++, //
delay: Math.random() * 4, // 0-4
...generateBarrageProps(item),
})
}
}
//
const cleanCompleted = () => {
tracks.value.forEach((track) => {
for (let i = track.length - 1; i >= 0; i--) {
if (track[i].completed) {
track.splice(i, 1)
}
}
})
}
//
const handleAnimationEnd = (id) => {
tracks.value.forEach((track) => {
const item = track.find((item) => item.id === id)
if (item) item.completed = true
})
}
//
const getNextBarrage = () => {
if (props.barrageList.length === 0) return null
const item = props.barrageList[currentIndex.value] //
currentIndex.value = (currentIndex.value + 1) % props.barrageList.length //0
return { ...item } //
}
//
let barrageInterval = null
//
const startBarrage = () => {
barrageInterval = setInterval(() => {
cleanCompleted() //
const nextBarrage = getNextBarrage() //
if (nextBarrage) {
addToTrack(nextBarrage) //
}
}, props.loopInterval)
}
onMounted(() => {
startBarrage() //
})
onUnmounted(() => {
clearInterval(barrageInterval) //
})
//
watch(
() => props.barrageList,
(newList) => {
currentIndex.value = 0 //
clearInterval(barrageInterval) //
//
if (newList.length !== 0) {
startBarrage() //
}
},
{ deep: true }
//
const addToTrack = (item) => {
//
const trackIndex = tracks.value.reduce(
(minIndex, track, index) => (track.length < tracks.value[minIndex].length ? index : minIndex),
0,
)
if (tracks.value[trackIndex].length < props.maxItems) {
tracks.value[trackIndex].push({
...item,
id: idCounter.value++, //
delay: Math.random() * 4, // 0-4
...generateBarrageProps(item),
})
}
}
//
const cleanCompleted = () => {
tracks.value.forEach((track) => {
for (let i = track.length - 1; i >= 0; i--) {
if (track[i].completed) {
track.splice(i, 1)
}
}
})
}
//
const handleAnimationEnd = (id) => {
tracks.value.forEach((track) => {
const item = track.find((item) => item.id === id)
if (item) item.completed = true
})
}
//
const getNextBarrage = () => {
if (props.barrageList.length === 0) return null
const item = props.barrageList[currentIndex.value] //
currentIndex.value = (currentIndex.value + 1) % props.barrageList.length //0
return { ...item } //
}
//
let barrageInterval = null
//
const startBarrage = () => {
barrageInterval = setInterval(() => {
cleanCompleted() //
const nextBarrage = getNextBarrage() //
if (nextBarrage) {
addToTrack(nextBarrage) //
}
}, props.loopInterval)
}
onMounted(() => {
startBarrage() //
})
onUnmounted(() => {
clearInterval(barrageInterval) //
})
//
watch(
() => props.barrageList,
(newList) => {
currentIndex.value = 0 //
clearInterval(barrageInterval) //
//
if (newList.length !== 0) {
startBarrage() //
}
},
{ deep: true },
)
</script>
<style scoped>
/* 样式保持不变(同之前版本) */
.barrage-item {
will-change: transform;
animation: moveLeft linear forwards;
}
/* 样式保持不变(同之前版本) */
.barrage-item {
will-change: transform;
animation: moveLeft linear forwards;
@keyframes moveLeft {
0% {
transform: translateX(100vw);
}
@keyframes moveLeft {
0% {
transform: translateX(100vw);
}
100% {
transform: translateX(-100%);
}
}
100% {
transform: translateX(-100%);
}
/* RTL支持 - 镜像弹幕动画 */
[dir='rtl'] .barrage-item {
animation: moveRight linear forwards;
}
@keyframes moveRight {
0% {
transform: translateX(-100vw);
}
/* RTL支持 - 镜像弹幕动画 */
[dir='rtl'] .barrage-item {
animation: moveRight linear forwards;
100% {
transform: translateX(100%);
}
}
@keyframes moveRight {
0% {
transform: translateX(-100vw);
}
100% {
transform: translateX(100%);
}
@media screen and (max-width: 360px) {
* {
font-size: 10px;
}
}
@media screen and (max-width: 360px) {
* {
font-size: 10px;
}
@media screen and (min-width: 360px) {
* {
font-size: 14px;
}
}
@media screen and (min-width: 360px) {
* {
font-size: 14px;
}
@media screen and (min-width: 768px) {
* {
font-size: 24px;
}
}
@media screen and (min-width: 768px) {
* {
font-size: 24px;
}
}
@media screen and (min-width: 1024px) {
* {
font-size: 32px;
}
@media screen and (min-width: 1024px) {
* {
font-size: 32px;
}
}
</style>

View File

@ -24,7 +24,6 @@
>
<div :style="{ width: avatarWidth }">
<img
v-smart-img
:src="avatarUrl || ''"
alt=""
width="100%"

View File

@ -213,7 +213,6 @@
style="width: 20vw; position: relative; z-index: 2"
>
<img
v-smart-img
:src="myRechargeRecode?.userAvatar"
alt=""
style="
@ -321,7 +320,6 @@
>
<!-- 奖励图片 -->
<img
v-smart-img
:src="reward.cover || ''"
alt=""
style="
@ -478,7 +476,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="listItem?.userAvatar || ''"
alt=""
style="
@ -581,7 +578,6 @@
:style="[getGridPosition(index)]"
>
<!-- <img
v-smart-img
:src="prize.prizeImage || ''"
:alt="prize.prizeName || ''"
width="60%"
@ -729,7 +725,6 @@
<div style="display: flex; align-items: center; gap: 4vw">
<img
v-for="Badge in RechargeBadgeInfo.rewardProps"
v-smart-img
:src="Badge.cover || ''"
alt=""
style="display: block; width: 18vw"
@ -965,7 +960,6 @@
>
<!-- 头像 -->
<img
v-smart-img
:src="userInfo.userAvatar || ''"
alt=""
style="
@ -1116,7 +1110,6 @@
<!-- 头像 -->
<div style="position: relative; width: 50px; margin-right: 12px">
<img
v-smart-img
:src="selectedPayee.avatar || ''"
:alt="selectedPayee.name || ''"
style="width: 100%; object-fit: cover; border-radius: 50%"
@ -1405,7 +1398,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="myRanking?.userAvatar || ''"
alt=""
style="

View File

@ -52,7 +52,6 @@
"
>
<img
v-smart-img
:src="userInfo.userAvatar || ''"
alt=""
style="

View File

@ -101,7 +101,6 @@
>
<!-- 头像 -->
<img
v-smart-img
:src="listItem?.userAvatar || ''"
alt=""
style="

View File

@ -34,7 +34,6 @@
>
<!-- 奖励图片 -->
<img
v-smart-img
:src="reward.cover || ''"
alt=""
style="display: block; min-width: 0; width: 80%; height: 100%; object-fit: contain"

View File

@ -10,7 +10,6 @@
>
<!-- 头像 -->
<img
v-smart-img
:src="myRechargeRecode?.userAvatar || ''"
alt=""
style="
@ -136,7 +135,6 @@
>
<!-- 奖励图片 -->
<img
v-smart-img
:src="reward.cover || ''"
alt=""
style="display: block; min-width: 0; width: 80%; height: 100%; object-fit: contain"

View File

@ -97,7 +97,6 @@
"
>
<img
v-smart-img
:src="prize.prizeImage || ''"
:alt="prize.prizeName || ''"
width="50%"
@ -225,7 +224,6 @@
>
<!-- 头像 -->
<img
v-smart-img
:src="userInfo.userAvatar || ''"
alt=""
style="
@ -404,7 +402,6 @@
<!-- 头像 -->
<div style="position: relative; width: 50px; margin-right: 12px">
<img
v-smart-img
:src="selectedPayee.avatar || ''"
:alt="selectedPayee.name || ''"
style="width: 100%; object-fit: cover; border-radius: 50%"

View File

@ -24,7 +24,6 @@
>
<div :style="{ width: avatarWidth }">
<img
v-smart-img
:src="avatarUrl || ''"
alt=""
width="100%"

View File

@ -279,7 +279,6 @@
:contentStyle="`top:2vw`"
>
<img
v-smart-img
:src="myRanking?.userAvatar || ''"
alt=""
style="
@ -410,7 +409,6 @@
</div>
<!-- 奖品 -->
<img
v-smart-img
:src="result[resultShowIndex]?.prize?.prizeImage"
alt=""
style="display: block; width: 40vw"
@ -506,7 +504,6 @@
>
<div style="display: flex; align-items: center; gap: 4px">
<img
v-smart-img
:src="record?.prize?.prizeImage || ''"
alt=""
style="width: 10vw; min-width: 0; object-fit: cover; display: block"

View File

@ -111,7 +111,6 @@
<!-- 头像 -->
<div style="width: 20%">
<img
v-smart-img
:src="member.memberProfile?.userAvatar || ''"
:alt="member.memberProfile?.userNickname"
@error="handleAvatarImageError"
@ -283,7 +282,7 @@ const performSearch = async () => {
hasSearched.value = false
let ResultUser = members.value.find(
(member) => member.memberProfile.account == searchQuery.value.trim()
(member) => member.memberProfile.account == searchQuery.value.trim(),
)
if (ResultUser) {
@ -416,7 +415,7 @@ watch(
console.log('Language changed in header:', newLang)
updateTypeShowText()
},
{ deep: true }
{ deep: true },
)
watch(
@ -429,7 +428,7 @@ watch(
searchResults.value = members.value
}
},
{ immediate: true }
{ immediate: true },
)
watch(
@ -456,7 +455,7 @@ watch(
},
{
immediate: true,
}
},
)
//

View File

@ -470,7 +470,6 @@
"
>
<img
v-smart-img
:src="reward.cover || ''"
alt=""
width="70%"

View File

@ -24,7 +24,6 @@
>
<div :style="{ width: avatarWidth }">
<img
v-smart-img
:src="avatarUrl || ''"
alt=""
width="100%"

View File

@ -373,7 +373,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="listItem?.avatar || ''"
alt=""
style="
@ -492,7 +491,6 @@
>
<!-- 奖励图片 -->
<img
v-smart-img
:src="reward.cover || ''"
alt=""
style="display: block; width: 70%; object-fit: cover"
@ -569,7 +567,6 @@
>
<!-- 奖励图片 -->
<img
v-smart-img
:src="reward.cover || ''"
alt=""
style="display: block; width: 70%; object-fit: cover"
@ -635,7 +632,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="myRanking.avatar || ''"
alt=""
style="

View File

@ -77,7 +77,6 @@
"
>
<img
v-smart-img
v-if="topUser.userInfo.userAvatar"
:src="topUser.userInfo.userAvatar || ''"
alt=""
@ -158,7 +157,7 @@
style="width: 30%; display: flex; flex-direction: column"
>
<itemCenter :imgUrl="imageUrl('gift')">
<img v-smart-img :src="gift.giftPhoto" alt="" width="50%" />
<img :src="gift.giftPhoto" alt="" width="50%" />
</itemCenter>
<div style="display: flex; justify-content: center; align-items: center; gap: 2px">
<img
@ -266,7 +265,6 @@
"
>
<img
v-smart-img
:src="listItem.userAvatar || ''"
alt=""
style="
@ -412,7 +410,6 @@
"
>
<img
v-smart-img
:src="topOne.userInfo.userAvatar"
alt=""
width="70%"
@ -700,7 +697,6 @@
"
>
<img
v-smart-img
:src="myRanking.userAvatar || ''"
alt=""
style="

View File

@ -218,7 +218,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="userInfo.avatar || ''"
alt=""
style="
@ -332,7 +331,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="myRanking.avatar || ''"
alt=""
style="

View File

@ -26,7 +26,6 @@
>
<div style="width: 70%">
<img
v-smart-img
:src="avatarUrl || ''"
alt=""
width="100%"
@ -148,7 +147,7 @@ watch(
() => props.Type,
(newVal, oldVal) => {
console.log('Type 变化 =>', '新值:', newVal, '旧值:', oldVal)
}
},
)
//

View File

@ -236,7 +236,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="listItem.userAvatar || ''"
alt=""
style="
@ -358,7 +357,6 @@
>
<!-- gift图 -->
<img
v-smart-img
:src="gift.cover || ''"
alt=""
style="width: 50%; display: block"
@ -443,7 +441,6 @@
<itemCenter :imgUrl="imageUrl('giftItemBg')">
<!-- gift图 -->
<img
v-smart-img
:src="goods.propsGroup.activityRewardProps[0].cover"
alt=""
style="width: 68%; display: block; margin-bottom: 7%"
@ -516,7 +513,6 @@
<!-- 头像 -->
<img
v-smart-img
:src="myRanking.userAvatar || ''"
alt=""
style="
@ -640,7 +636,6 @@
"
>
<img
v-smart-img
:src="showTopOne.userAvatar || ''"
alt=""
style="
@ -752,7 +747,6 @@
<itemCenter :imgUrl="imageUrl('giftItemBg')">
<!-- 礼物 -->
<img
v-smart-img
:src="gift.giftPhoto"
alt=""
style="width: 50%; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover"
@ -817,7 +811,6 @@
"
>
<img
v-smart-img
:src="selectedGood.propsGroup.activityRewardProps[0].cover"
alt=""
style="width: 50%; display: block"

View File

@ -25,7 +25,6 @@
>
<div :style="{ width: isTopOne ? '50%' : '80%' }">
<img
v-smart-img
:src="avatarUrl || ''"
alt=""
width="100%"

View File

@ -85,7 +85,6 @@
"
>
<img
v-smart-img
:src="selectedPayee.avatar || ''"
:alt="selectedPayee.name"
style="
@ -356,7 +355,7 @@ const transfer = async () => {
t('transfer_success', {
price: selectedCoinData.price,
name: selectedPayee.name,
})
}),
)
selectedCoin.value = null //