From f9daad5b6a723441c5eddd1f2185c977b9061a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 19 Oct 2023 15:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/projectDetail.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/project/projectDetail.vue b/src/views/project/projectDetail.vue index fd7814f1..59575915 100644 --- a/src/views/project/projectDetail.vue +++ b/src/views/project/projectDetail.vue @@ -632,12 +632,14 @@ export default { if (response.rows.length>0&&that.detail.ladderPrice){ if (that.price == 0){return;} if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { - if(response.rows[0].money<=that.price){ + let money = that.price?that.price:response.rows[0].money + if(response.rows[0].money<=money){ that.price = parseFloat(response.rows[0].money - that.detail.ladderPrice).toFixed(2) } }else{ console.log(response.rows[0].money>=that.price) - if(response.rows[0].money>=that.price){ + let money = that.price?that.price:response.rows[0].money + if(response.rows[0].money>=money){ that.price = parseFloat(response.rows[0].money + that.detail.ladderPrice).toFixed(2) } } @@ -691,8 +693,6 @@ export default { } if (_this.detail.biddingType=='自由竞价'||_this.detail.biddingType=='公开竞价'){ _this.price = null; - }else{ - _this.price = _this.price-_this.detail.ladderPrice; } } })