From 87e77c3a497979e416bcf4d34ffa707c4c0e4712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Wed, 28 Jun 2023 17:47:33 +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=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/projectDetail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/project/projectDetail.vue b/src/views/project/projectDetail.vue index 566e5552..67abe73d 100644 --- a/src/views/project/projectDetail.vue +++ b/src/views/project/projectDetail.vue @@ -665,7 +665,7 @@ export default { userId:this.userId, userAccount:this.userAccount, userName:this.userName, - money:parseInt(this.price).toFixed(2), + money:parseFloat(this.price), }; console.log(data) biddingSubmit(data).then(response =>{ @@ -737,7 +737,7 @@ export default { } console.log(this.price == null) this.price == null?this.price = 0:this.price = this.price; - this.detail.ladderPrice?this.price=parseInt(this.price)+parseInt(this.detail.ladderPrice):this.price += 1 + this.detail.ladderPrice?this.price=parseFloat(this.price)+parseFloat(this.detail.ladderPrice):this.price += 1 }, sub(){ if (this.detail.biddingDirect == '反向竞价'){ @@ -792,7 +792,7 @@ export default { this.price == null?this.price = 0:this.price = this.price; if (this.price == 0)return; - this.detail.ladderPrice?this.price=parseInt(this.price)-parseInt(this.detail.ladderPrice):this.price -= 1 + this.detail.ladderPrice?this.price=parseFloat(this.price)-parseFloat(this.detail.ladderPrice):this.price -= 1 // if(this.detail.ladderPrice){ // if((this.price-this.detail.ladderPrice)>this.biddinglistInformation[0].money){ // this.price-=this.detail.ladderPrice