ソースを参照

产权交易出价小数

rongxin_prod
庞东旭 1年前
コミット
87e77c3a49
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      src/views/project/projectDetail.vue

+ 3
- 3
src/views/project/projectDetail.vue ファイルの表示

@@ -665,7 +665,7 @@ export default {
userId:this.userId, userId:this.userId,
userAccount:this.userAccount, userAccount:this.userAccount,
userName:this.userName, userName:this.userName,
money:parseInt(this.price).toFixed(2),
money:parseFloat(this.price),
}; };
console.log(data) console.log(data)
biddingSubmit(data).then(response =>{ biddingSubmit(data).then(response =>{
@@ -737,7 +737,7 @@ export default {
} }
console.log(this.price == null) console.log(this.price == null)
this.price == null?this.price = 0:this.price = this.price; this.price == null?this.price = 0:this.price = this.price;
this.detail.ladderPrice?this.price=parseInt(this.price)+parseInt(this.detail.ladderPrice):this.price += 1
this.detail.ladderPrice?this.price=parseFloat(this.price)+parseFloat(this.detail.ladderPrice):this.price += 1
}, },
sub(){ sub(){
if (this.detail.biddingDirect == '反向竞价'){ if (this.detail.biddingDirect == '反向竞价'){
@@ -792,7 +792,7 @@ export default {


this.price == null?this.price = 0:this.price = this.price; this.price == null?this.price = 0:this.price = this.price;
if (this.price == 0)return; if (this.price == 0)return;
this.detail.ladderPrice?this.price=parseInt(this.price)-parseInt(this.detail.ladderPrice):this.price -= 1
this.detail.ladderPrice?this.price=parseFloat(this.price)-parseFloat(this.detail.ladderPrice):this.price -= 1
// if(this.detail.ladderPrice){ // if(this.detail.ladderPrice){
// if((this.price-this.detail.ladderPrice)>this.biddinglistInformation[0].money){ // if((this.price-this.detail.ladderPrice)>this.biddinglistInformation[0].money){
// this.price-=this.detail.ladderPrice // this.price-=this.detail.ladderPrice


読み込み中…
キャンセル
保存