YOUFANG1.0.7 我要置换结果资金缺口显示小数位数超长

This commit is contained in:
zongzhimin
2018-07-02 14:56:13 +08:00
parent 5995727d7e
commit 1172d416c9
2 changed files with 3 additions and 3 deletions
@@ -293,9 +293,9 @@ function addSubstitution(sr, hs, house){
}
if(initPrice < soufu_min){
s +=",资金缺口约为"+((soufu_min-initPrice)-(soufu_max-initPrice))+"万";
s +=",资金缺口约为"+Math.round(((soufu_min-initPrice)-(soufu_max-initPrice))*100)/100+"万";
}else if(initPrice > soufu_min && initPrice < soufu_max){
s += ",资金缺口约为"+(soufu_max-initPrice)+"万";
s += ",资金缺口约为"+Math.round((soufu_max-initPrice)*100)/100+"万";
}else if(initPrice > soufu_max){
s += "。";
}