Преглед на файлове

产权交易出价优化

rongxin_prod
庞东旭 преди 1 година
родител
ревизия
171d287cad
променени са 1 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. +7
    -2
      src/views/project/projectDetail.vue

+ 7
- 2
src/views/project/projectDetail.vue Целия файл

@@ -520,8 +520,13 @@ export default {
setInterval(function () { setInterval(function () {
getBiddingList(that.id).then(response =>{ getBiddingList(that.id).then(response =>{
that.biddinglistInformation = response.rows that.biddinglistInformation = response.rows
if(response.rows.length != that.biddinglistInformationLength){
that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice)
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 that.biddinglistInformationLength = response.total
}); });


Зареждане…
Отказ
Запис