From 75e84f738996f02d05b5527dfaeffca7ea4f6b3f Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Wed, 4 Jul 2018 09:48:25 +0800 Subject: [PATCH] YOUFANG1.0.7 --- fangija-zsyf/views/component/baseInfoComponent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/component/baseInfoComponent.js b/fangija-zsyf/views/component/baseInfoComponent.js index eb7c2c9..266b4b0 100644 --- a/fangija-zsyf/views/component/baseInfoComponent.js +++ b/fangija-zsyf/views/component/baseInfoComponent.js @@ -293,9 +293,9 @@ function addSubstitution(sr, hs, house){ } if(initPrice < soufu_min){ - s +=",资金缺口约为"+Math.round(((soufu_min-initPrice)-(soufu_max-initPrice))*100)/100+"万"; + s +=",资金缺口约为"+Math.abs(Math.round(((soufu_min-initPrice)-(soufu_max-initPrice))*100)/100)+"万"; }else if(initPrice > soufu_min && initPrice < soufu_max){ - s += ",资金缺口约为"+Math.round((soufu_max-initPrice)*100)/100+"万"; + s += ",资金缺口约为"+Math.abs(Math.round((soufu_max-initPrice)*100)/100)+"万"; }else if(initPrice > soufu_max){ s += "。"; }