Преглед изворни кода

产权交易问题修改

rongxin_prod
庞东旭 пре 1 година
родитељ
комит
f9daad5b6a
1 измењених фајлова са 4 додато и 4 уклоњено
  1. +4
    -4
      src/views/project/projectDetail.vue

+ 4
- 4
src/views/project/projectDetail.vue Прегледај датотеку

@@ -632,12 +632,14 @@ export default {
if (response.rows.length>0&&that.detail.ladderPrice){ if (response.rows.length>0&&that.detail.ladderPrice){
if (that.price == 0){return;} if (that.price == 0){return;}
if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') {
if(response.rows[0].money<=that.price){
let money = that.price?that.price:response.rows[0].money
if(response.rows[0].money<=money){
that.price = parseFloat(response.rows[0].money - that.detail.ladderPrice).toFixed(2) that.price = parseFloat(response.rows[0].money - that.detail.ladderPrice).toFixed(2)
} }
}else{ }else{
console.log(response.rows[0].money>=that.price) console.log(response.rows[0].money>=that.price)
if(response.rows[0].money>=that.price){
let money = that.price?that.price:response.rows[0].money
if(response.rows[0].money>=money){
that.price = parseFloat(response.rows[0].money + that.detail.ladderPrice).toFixed(2) that.price = parseFloat(response.rows[0].money + that.detail.ladderPrice).toFixed(2)
} }
} }
@@ -691,8 +693,6 @@ export default {
} }
if (_this.detail.biddingType=='自由竞价'||_this.detail.biddingType=='公开竞价'){ if (_this.detail.biddingType=='自由竞价'||_this.detail.biddingType=='公开竞价'){
_this.price = null; _this.price = null;
}else{
_this.price = _this.price-_this.detail.ladderPrice;
} }
} }
}) })


Loading…
Откажи
Сачувај