From 8af5bad3f080953be6052980355acaac31d1dd18 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, 5 Jul 2023 15:50:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/project/projectDetail.vue | 42 ++++++++++++++++-------------
src/views/user/index.vue | 8 ++++++
2 files changed, 31 insertions(+), 19 deletions(-)
diff --git a/src/views/project/projectDetail.vue b/src/views/project/projectDetail.vue
index 2fa68789..7903fe3e 100644
--- a/src/views/project/projectDetail.vue
+++ b/src/views/project/projectDetail.vue
@@ -70,7 +70,7 @@
竞价方向:{{ detail.biddingDirect }}
-
+
阶梯价(增减幅度):¥{{ detail.ladderPrice }}
@@ -206,9 +206,9 @@
-
+
-
+
@@ -216,7 +216,7 @@
出价
- {{price}}元
+ {{price}}元
@@ -224,7 +224,7 @@
-
+
@@ -400,23 +400,27 @@ export default {
getBiddingList(that.id).then(response =>{
that.biddinglistInformation = response.rows
that.biddinglistInformationLength = response.total
- if (response.rows.length>0&&that.detail.ladderPrice){
- if (that.price == 0){return;}
- if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') {
- that.price = response.rows[0].money - that.detail.ladderPrice
- }else{
- that.price = response.rows[0].money + that.detail.ladderPrice
- }
- }else if (response.rows.length>0&&!that.detail.ladderPrice){
- if (that.price == 0){return;}
- that.price = response.rows[0].money
- }else{
- if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') {
- that.price = that.detail.price - that.detail.ladderPrice
+ if (that.detail.biddingType != '自由竞价'){
+ if (response.rows.length>0&&that.detail.ladderPrice){
+ if (that.price == 0){return;}
+ if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') {
+ that.price = parseFloat(response.rows[0].money - that.detail.ladderPrice).toFixed(2)
+ }else{
+ that.price = parseFloat(response.rows[0].money + that.detail.ladderPrice).toFixed(2)
+ }
+ }else if (response.rows.length>0&&!that.detail.ladderPrice){
+ if (that.price == 0){return;}
+ that.price = response.rows[0].money
}else{
- that.price = that.detail.price + that.detail.ladderPrice
+ if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') {
+ that.price = parseFloat(that.detail.price - that.detail.ladderPrice).toFixed(2)
+ }else{
+ that.price = parseFloat(that.detail.price + that.detail.ladderPrice).toFixed(2)
+ }
}
}
+
+
});
let biddingStartTime = Date.parse(this.detail.biddingStartTime)+0
diff --git a/src/views/user/index.vue b/src/views/user/index.vue
index ca595fe9..bf0852ee 100644
--- a/src/views/user/index.vue
+++ b/src/views/user/index.vue
@@ -27,6 +27,8 @@