From 171d287cadc5831e5625feba7b884ce098b84e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Mon, 26 Jun 2023 09:47:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93=E5=87=BA?= =?UTF-8?q?=E4=BB=B7=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/projectDetail.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/project/projectDetail.vue b/src/views/project/projectDetail.vue index 16349251..5008b1a1 100644 --- a/src/views/project/projectDetail.vue +++ b/src/views/project/projectDetail.vue @@ -520,8 +520,13 @@ export default { setInterval(function () { getBiddingList(that.id).then(response =>{ that.biddinglistInformation = response.rows - if(response.rows.length != that.biddinglistInformationLength){ - that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice) + if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){ + + if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { + that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice) + }else{ + that.price = parseInt(response.rows[0].money) + parseInt(that.detail.ladderPrice) + } } that.biddinglistInformationLength = response.total });