|
@@ -244,7 +244,8 @@ import { |
|
|
getMember, |
|
|
getMember, |
|
|
getOutProjectDetail, |
|
|
getOutProjectDetail, |
|
|
getSignup, |
|
|
getSignup, |
|
|
getWebConfig |
|
|
|
|
|
|
|
|
getWebConfig, |
|
|
|
|
|
projectNewBidMoney |
|
|
} from "../../api/project"; |
|
|
} from "../../api/project"; |
|
|
import {getInfo} from "../../api/login"; |
|
|
import {getInfo} from "../../api/login"; |
|
|
|
|
|
|
|
@@ -382,6 +383,23 @@ export default { |
|
|
i.areaUnit = this.selectDictLabel(res.data,i.areaUnit); |
|
|
i.areaUnit = this.selectDictLabel(res.data,i.areaUnit); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var that = this; |
|
|
|
|
|
getBiddingList(that.id).then(response =>{ |
|
|
|
|
|
that.biddinglistInformation = response.rows |
|
|
|
|
|
that.biddinglistInformationLength = response.total |
|
|
|
|
|
if (response.rows.length>0&&that.detail.ladderPrice){ |
|
|
|
|
|
console.log(that.detail.biddingDirect) |
|
|
|
|
|
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 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
let biddingStartTime = Date.parse(this.detail.biddingStartTime)+0 |
|
|
let biddingStartTime = Date.parse(this.detail.biddingStartTime)+0 |
|
|
let biddingStopTime = Date.parse(this.detail.biddingStopTime)+0 |
|
|
let biddingStopTime = Date.parse(this.detail.biddingStopTime)+0 |
|
|
let signupStartTime = Date.parse(this.detail.signupStartTime)+0 |
|
|
let signupStartTime = Date.parse(this.detail.signupStartTime)+0 |
|
@@ -481,9 +499,24 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
setInterval(function () { |
|
|
|
|
|
getBiddingList(that.id).then(response =>{ |
|
|
|
|
|
that.biddinglistInformation = response.rows |
|
|
|
|
|
if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){ |
|
|
|
|
|
|
|
|
|
|
|
if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { |
|
|
|
|
|
that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice) |
|
|
|
|
|
}else{ |
|
|
|
|
|
that.price = parseInt(response.rows[0].money) + parseInt(that.detail.ladderPrice) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
that.biddinglistInformationLength = response.total |
|
|
|
|
|
}); |
|
|
|
|
|
},10000) |
|
|
} |
|
|
} |
|
|
if(nowDate>biddingStopTime){ |
|
|
if(nowDate>biddingStopTime){ |
|
|
console.log('竞价结束111111111') |
|
|
|
|
|
|
|
|
console.log('竞价结束') |
|
|
this.process= "竞价结束" |
|
|
this.process= "竞价结束" |
|
|
this.tip=this.detail.biddingStopTime+"结束竞价" |
|
|
this.tip=this.detail.biddingStopTime+"结束竞价" |
|
|
this.btnMsg="竞价结束" |
|
|
this.btnMsg="竞价结束" |
|
@@ -502,38 +535,16 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}); |
|
|
}); |
|
|
var that = this; |
|
|
|
|
|
getBiddingList(that.id).then(response =>{ |
|
|
|
|
|
that.biddinglistInformation = response.rows |
|
|
|
|
|
that.biddinglistInformationLength = response.total |
|
|
|
|
|
if (response.rows.length>0&&that.detail.ladderPrice){ |
|
|
|
|
|
console.log(that.detail.biddingDirect) |
|
|
|
|
|
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 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
setInterval(function () { |
|
|
|
|
|
getBiddingList(that.id).then(response =>{ |
|
|
|
|
|
that.biddinglistInformation = response.rows |
|
|
|
|
|
if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){ |
|
|
|
|
|
|
|
|
|
|
|
if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { |
|
|
|
|
|
that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice) |
|
|
|
|
|
}else{ |
|
|
|
|
|
that.price = parseInt(response.rows[0].money) + parseInt(that.detail.ladderPrice) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
that.biddinglistInformationLength = response.total |
|
|
|
|
|
}); |
|
|
|
|
|
},1000) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
offer(){ |
|
|
offer(){ |
|
|
|
|
|
let newMoney; |
|
|
|
|
|
projectNewBidMoney(this.id).then(response =>{ |
|
|
|
|
|
if (response.msg&&response.code==200){ |
|
|
|
|
|
newMoney = response.msg; |
|
|
|
|
|
}else{ |
|
|
|
|
|
newMoney = this.detail.price; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if (this.price==''||this.price==0||this.price<0||this.price == null){ |
|
|
if (this.price==''||this.price==0||this.price<0||this.price == null){ |
|
|
this.$toast({ |
|
|
this.$toast({ |
|
@@ -561,7 +572,7 @@ export default { |
|
|
if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){ |
|
|
if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){ |
|
|
if (this.biddinglistInformation.length>1){ |
|
|
if (this.biddinglistInformation.length>1){ |
|
|
//判断用户出价不能高于当前出价最低价格 |
|
|
//判断用户出价不能高于当前出价最低价格 |
|
|
if(this.biddinglistInformation[0].money <= this.price){ |
|
|
|
|
|
|
|
|
if(newMoney <= this.price){ |
|
|
this.$toast({ |
|
|
this.$toast({ |
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
message: '出价不能高于当前出价最低价格', |
|
|
message: '出价不能高于当前出价最低价格', |
|
@@ -589,7 +600,7 @@ export default { |
|
|
if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){ |
|
|
if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){ |
|
|
if (this.biddinglistInformation.length>1){ |
|
|
if (this.biddinglistInformation.length>1){ |
|
|
//判断用户出价不能高于当前出价最低价格 |
|
|
//判断用户出价不能高于当前出价最低价格 |
|
|
if(this.biddinglistInformation[0].money >= this.price){ |
|
|
|
|
|
|
|
|
if(newMoney >= this.price){ |
|
|
this.$toast({ |
|
|
this.$toast({ |
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
message: '出价不能低于当前出价最高价格', |
|
|
message: '出价不能低于当前出价最高价格', |
|
@@ -621,7 +632,7 @@ export default { |
|
|
duration:"1000", |
|
|
duration:"1000", |
|
|
onClose:function(){ |
|
|
onClose:function(){ |
|
|
_this.reload() |
|
|
_this.reload() |
|
|
_this.price = 0; |
|
|
|
|
|
|
|
|
_this.price = _this.price-_this.detail.ladderPrice; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|