瀏覽代碼

产权交易

RongCheng
庞东旭 1 年之前
父節點
當前提交
737c0a8008
共有 1 個檔案被更改,包括 13 行新增9 行删除
  1. +13
    -9
      static/js/project/listingItems/items.js

+ 13
- 9
static/js/project/listingItems/items.js 查看文件

@@ -404,12 +404,16 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
setTimeout(function(){ setTimeout(function(){
if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'||module.data.outProjectInformationDetail.biddingDirect == '2'){ if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'||module.data.outProjectInformationDetail.biddingDirect == '2'){
if (content.length>0){ 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{ }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{ }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) },2000)


@@ -519,11 +523,11 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
} }


//出价 //出价
module.biddingSubmitMethod = function (data) {
module.biddingSubmitMethod = function (data2) {
let newMoney; 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{ }else{
newMoney = module.data.outProjectInformationDetail.price; 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 (module.data.outProjectInformationDetail.biddingType=='阶梯竞价' || module.data.outProjectInformationDetail.biddingType=='公开竞价'){
//判断当前是否有人出价 //判断当前是否有人出价
if (data.data){
if (data2.data){
//判断用户出价不能高于当前出价最低价格 //判断用户出价不能高于当前出价最低价格
if(newMoney < $('#money').val()){ if(newMoney < $('#money').val()){
tools.initError('不能高于当前最低价格!'); tools.initError('不能高于当前最低价格!');
@@ -558,7 +562,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
//判断当前竞价方式 //判断当前竞价方式
if (module.data.outProjectInformationDetail.biddingType=='阶梯竞价' || module.data.outProjectInformationDetail.biddingType=='公开竞价'){ if (module.data.outProjectInformationDetail.biddingType=='阶梯竞价' || module.data.outProjectInformationDetail.biddingType=='公开竞价'){
//判断当前是否有人出价 //判断当前是否有人出价
if (data.data){
if (data2.data){
//判断用户出价不能低于当前出价最高价格 //判断用户出价不能低于当前出价最高价格
if(newMoney >= $('#money').val()){ if(newMoney >= $('#money').val()){
tools.initError('不能低于当前最高价格!'); tools.initError('不能低于当前最高价格!');


Loading…
取消
儲存