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

This commit is contained in:
zongzhimin
2018-07-02 14:57:32 +08:00
parent 1172d416c9
commit 2e6b85dfbc
16 changed files with 217 additions and 34 deletions
+15
View File
@@ -3,6 +3,8 @@ var APPLY_LOAN = "applyLoan";
//如果是抵押贷款时候,需要上层页面传入houseId
var houseId;
var loanPrice;
var loanType;
var _params = {};
document.addEventListener('plusready', onPlusReady, false);
@@ -10,6 +12,15 @@ document.addEventListener('plusready', onPlusReady, false);
function onPlusReady(){
var self = plus.webview.currentWebview();
houseId= self.houseId;
loanPrice= self.loanPrice;
loanType= self.loanType;
if(loanType==1){
$(".checkbox i").removeClass("current");
$("#loanTypeDiv1").find("i").addClass("current");
}else if(loanType==2){
$(".checkbox i").removeClass("current");
$("#loanTypeDiv2").find("i").addClass("current");
}
$('#input_city').val(self.city);
$('#input_phoneNumber').val(self.mobile);
}
@@ -93,6 +104,10 @@ $("#next_btn").on("click", function () {
$.toast("请输入申请金额");
return false;
}
if(loanPrice!=0 && loanPrice<Number(applyMoney)){
$.toast("申请金额不能大于"+loanPrice+"万");
return false;
}
if(mortgage == undefined || mortgage == ""){
$.toast("请选择贷款类型");
return false;