置换小数点保留2位
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
/**服务端地址**/
|
/**服务端地址**/
|
||||||
//var BASE_PATH = "http://youfang.fangjia.com";
|
//var BASE_PATH = "http://youfang.fangjia.com";
|
||||||
//var BASE_PATH = "http://192.168.10.128:8084";
|
//var BASE_PATH = "http://192.168.10.128:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
var BASE_PATH = "http://192.168.10.47:8086";
|
||||||
var BASE_PATH = "http://192.168.10.53:8084";
|
//var BASE_PATH = "http://192.168.10.53:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.170:8084";
|
//var BASE_PATH = "http://192.168.10.170:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.171:8084";
|
//var BASE_PATH = "http://192.168.10.171:8084";
|
||||||
|
|||||||
@@ -1446,7 +1446,7 @@ function addBaseHouseInfo(obj){
|
|||||||
|
|
||||||
var funds = $("#input_funds").val();
|
var funds = $("#input_funds").val();
|
||||||
if(funds){
|
if(funds){
|
||||||
baseInfo.sumPrice = parseInt(funds) + parseInt(obj.totalPrice/10000);
|
baseInfo.sumPrice = (Number(funds)+ parseInt(obj.totalPrice/10000)).toFixed(2);
|
||||||
}else{
|
}else{
|
||||||
baseInfo.sumPrice = parseInt(obj.totalPrice/10000);
|
baseInfo.sumPrice = parseInt(obj.totalPrice/10000);
|
||||||
}
|
}
|
||||||
@@ -1536,9 +1536,9 @@ function calTotalPrice(){
|
|||||||
if(funds && price){
|
if(funds && price){
|
||||||
if(a){
|
if(a){
|
||||||
var tax = a * price/100;
|
var tax = a * price/100;
|
||||||
baseInfo.sumPrice = (parseInt(funds)+parseInt(price)-tax).toFixed(2);
|
baseInfo.sumPrice = (Number(funds)+parseInt(price)-tax).toFixed(2);
|
||||||
}else{
|
}else{
|
||||||
baseInfo.sumPrice = (parseInt(funds)+parseInt(price)).toFixed(2);
|
baseInfo.sumPrice = (Number(funds)+parseInt(price)).toFixed(2);
|
||||||
}
|
}
|
||||||
}else if(price){
|
}else if(price){
|
||||||
if(a){
|
if(a){
|
||||||
|
|||||||
Reference in New Issue
Block a user