fix(liveRoom): 修复当前价格为 0 时的显示逻辑

- 在显示当前价格为 0 的条件下,增加了对 nowPrice 是否存在的判断
- 优化了代码逻辑,提高了组件的健壮性
This commit is contained in:
xingyy 2025-03-03 19:36:38 +08:00
parent a6660e6d77
commit ae040fb280

View File

@ -1,6 +1,7 @@
<script setup>
import pdfView from './pdfView'
import { contractView } from "~/api/goods/index.js"
import { signOnline } from "~/api/goods/index.js"
import { authStore } from "~/stores/auth/index.js"
import {useI18n} from "vue-i18n";
@ -45,11 +46,25 @@ const handleCollapseChange = (name) => {
}
}
const goSignature = () => {
const goSignature = async () => {
const res = await signOnline({
auctionArtworkUuid:payment.value.auctionArtworkUuid
})
if (res.status===0){
if(res.data.signType==='fdd'){
window.location.href = res.data.fddVerifyUrl
}else{
router.push({
path: '/signature/panel'
})
}
}
console.log('goSignature')
// router.push({
// path: '/signature/panel'
// })
}
</script>
<template>