Compare commits

...

2 Commits

Author SHA1 Message Date
xingyy
ae040fb280 fix(liveRoom): 修复当前价格为 0 时的显示逻辑
- 在显示当前价格为 0 的条件下,增加了对 nowPrice 是否存在的判断
- 优化了代码逻辑,提高了组件的健壮性
2025-03-03 19:36:38 +08:00
xingyy
a6660e6d77 fix(liveRoom): 修复当前价格为 0 时的显示逻辑
- 在显示当前价格为
2025-03-03 19:36:32 +08:00
2 changed files with 19 additions and 4 deletions

View File

@ -147,7 +147,7 @@ const tipOpen = () => {
<div class="min-w-50px">{{auctionData?.nowAuctionPrice?.nextPrice}}</div>
</div>
<div v-if="quoteStatus&&auctionData?.nowAuctionPrice&&auctionData?.nowAuctionPrice?.nowPrice!=='0'" class="mt-10px mb-10px">
<div v-if="quoteStatus&&auctionData?.nowAuctionPrice?.nowPrice&&auctionData?.nowAuctionPrice?.nowPrice!=='0'" class="mt-10px mb-10px">
<van-button @click.stop="goBuy" color="#FFB25F" class="w-344px !h-[40px]">
<div>{{
`${t('live_room.confirm')} ${auctionData?.nowAuctionPrice?.currency} ${auctionData?.nowAuctionPrice?.nowPrice ?? 0}`

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,10 +46,24 @@ const handleCollapseChange = (name) => {
}
}
const goSignature = () => {
router.push({
path: '/signature/panel'
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>