| @@ -404,12 +404,16 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function | |||
| setTimeout(function(){ | |||
| if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'||module.data.outProjectInformationDetail.biddingDirect == '2'){ | |||
| if (content.length>0){ | |||
| document.getElementById('money').value = parseInt(content[0].money) - parseInt(module.data.outProjectInformationDetail.ladderPrice); | |||
| document.getElementById('money').value = parseFloat(content[0].money) - parseFloat(module.data.outProjectInformationDetail.ladderPrice); | |||
| }else{ | |||
| document.getElementById('money').value = parseInt(parseInt(module.data.outProjectInformationDetail.price) - parseInt(module.data.outProjectInformationDetail.ladderPrice)); | |||
| 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); | |||
| }else{ | |||
| document.getElementById('money').value = parseFloat(parseFloat(module.data.outProjectInformationDetail.price) + parseFloat(module.data.outProjectInformationDetail.ladderPrice)); | |||
| } | |||
| } | |||
| },2000) | |||
| @@ -519,11 +523,11 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function | |||
| } | |||
| //出价 | |||
| module.biddingSubmitMethod = function (data) { | |||
| module.biddingSubmitMethod = function (data2) { | |||
| let newMoney; | |||
| if (data.data&&data.code==200){ | |||
| console.log(data) | |||
| newMoney = data.data; | |||
| if (data2.data&&data2.code==200){ | |||
| console.log(data2) | |||
| newMoney = data2.data; | |||
| }else{ | |||
| newMoney = module.data.outProjectInformationDetail.price; | |||
| } | |||
| @@ -541,7 +545,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function | |||
| //判断当前竞价方式 | |||
| if (module.data.outProjectInformationDetail.biddingType=='阶梯竞价' || module.data.outProjectInformationDetail.biddingType=='公开竞价'){ | |||
| //判断当前是否有人出价 | |||
| if (data.data){ | |||
| if (data2.data){ | |||
| //判断用户出价不能高于当前出价最低价格 | |||
| if(newMoney < $('#money').val()){ | |||
| tools.initError('不能高于当前最低价格!'); | |||
| @@ -558,7 +562,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function | |||
| //判断当前竞价方式 | |||
| if (module.data.outProjectInformationDetail.biddingType=='阶梯竞价' || module.data.outProjectInformationDetail.biddingType=='公开竞价'){ | |||
| //判断当前是否有人出价 | |||
| if (data.data){ | |||
| if (data2.data){ | |||
| //判断用户出价不能低于当前出价最高价格 | |||
| if(newMoney >= $('#money').val()){ | |||
| tools.initError('不能低于当前最高价格!'); | |||