From 7945cd748b741f746508947c1d57ca0fa8b342ad 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:40 +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 --- static/js/project/listingItems/items.js | 24 +++++++++++++---------- view/listingItems/itemsDetail.html | 26 ++++++++++++------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/static/js/project/listingItems/items.js b/static/js/project/listingItems/items.js index 1f7c33e..11540b3 100644 --- a/static/js/project/listingItems/items.js +++ b/static/js/project/listingItems/items.js @@ -402,19 +402,23 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function } console.log(module.data.outProjectInformationDetail.biddingDirect) setTimeout(function(){ - if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'||module.data.outProjectInformationDetail.biddingDirect == '2'){ - if (content.length>0){ - document.getElementById('money').value = parseFloat(content[0].money) - parseFloat(module.data.outProjectInformationDetail.ladderPrice); - }else{ - document.getElementById('money').value = parseFloat(parseFloat(module.data.outProjectInformationDetail.price) - parseFloat(module.data.outProjectInformationDetail.ladderPrice)); - } - }else{ - if (content.length>0){ - document.getElementById('money').value = parseFloat(content[0].money) + parseFloat(module.data.outProjectInformationDetail.ladderPrice); + + if(module.data.outProjectInformationDetail.biddingType != '自由竞价'){ + if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'||module.data.outProjectInformationDetail.biddingDirect == '2'){ + if (content.length>0){ + document.getElementById('money').value = parseFloat(parseFloat(content[0].money) - parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2); + }else{ + document.getElementById('money').value = parseFloat(parseFloat(module.data.outProjectInformationDetail.price) - parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2); + } }else{ - document.getElementById('money').value = parseFloat(parseFloat(module.data.outProjectInformationDetail.price) + parseFloat(module.data.outProjectInformationDetail.ladderPrice)); + if (content.length>0){ + document.getElementById('money').value = parseFloat(parseFloat(content[0].money) + parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2); + }else{ + document.getElementById('money').value = parseFloat(parseFloat(module.data.outProjectInformationDetail.price) + parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2); + } } } + },2000) module.data.biddinglistInformationDetail = content; diff --git a/view/listingItems/itemsDetail.html b/view/listingItems/itemsDetail.html index be77d87..7c1e598 100644 --- a/view/listingItems/itemsDetail.html +++ b/view/listingItems/itemsDetail.html @@ -380,7 +380,7 @@