This commit is contained in:
xingyy 2025-02-20 19:03:39 +08:00
parent 8eb2681435
commit 2feb821899

View File

@ -135,18 +135,6 @@ watch(() => fullLive.value, async (newVal) => {
await getSocketData() await getSocketData()
})
watchEffect(() => {
if (!fullLive.value) return
nextTick(()=>{
createCountUp(countUpRef.value, auctionData.value?.nowAuctionPrice?.nowPrice)
})
})
watchEffect(() => {
if (!fullLive.value) return
nextTick(()=>{
createCountUp(nextPriceRef.value, auctionData.value?.nowAuctionPrice?.nextPrice)
})
}) })
const goBuy = async () => { const goBuy = async () => {
const res = await artworkBuy({ const res = await artworkBuy({
@ -175,11 +163,11 @@ const tipOpen = () => {
style="bottom:calc(var(--safe-area-inset-bottom) + 26px)"> style="bottom:calc(var(--safe-area-inset-bottom) + 26px)">
<div class="text-16px text-#FFB25F font-600 flex"> <div class="text-16px text-#FFB25F font-600 flex">
<div class="mr-5px">{{ t('live_room.now_price') }}{{ auctionData?.nowAuctionPrice?.currency }}</div> <div class="mr-5px">{{ t('live_room.now_price') }}{{ auctionData?.nowAuctionPrice?.currency }}</div>
<div ref="countUpRef" class="min-w-50px"></div> <div class="min-w-50px">{{auctionData?.nowAuctionPrice?.nowPrice}}</div>
</div> </div>
<div class="text-16px text-#fff font-600 flex"> <div class="text-16px text-#fff font-600 flex">
<div class="mr-5px">{{ t('live_room.lower_price') }}{{ auctionData?.nowAuctionPrice?.currency }}</div> <div class="mr-5px">{{ t('live_room.lower_price') }}{{ auctionData?.nowAuctionPrice?.currency }}</div>
<div ref="nextPriceRef" class="min-w-50px"></div> <div class="min-w-50px">{{auctionData?.nowAuctionPrice?.nextPrice}}</div>
</div> </div>
<div v-if="quoteStatus&&auctionData?.nowAuctionPrice?.nowPrice!=='0'" class="mt-10px mb-10px"> <div v-if="quoteStatus&&auctionData?.nowAuctionPrice?.nowPrice!=='0'" class="mt-10px mb-10px">
<van-button @click="goBuy" color="#FFB25F" class="w-344px !h-[40px]"> <van-button @click="goBuy" color="#FFB25F" class="w-344px !h-[40px]">