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 @@