YOUFANG1.0.7 我要置换结果资金缺口显示小数位数超长
This commit is contained in:
@@ -4,8 +4,8 @@ function add_imgage(imageId,adPosition,device){
|
||||
}).then(function(response){
|
||||
if(response.data.status){
|
||||
var h = response.data.data;
|
||||
if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
|
||||
$("#"+imageId).attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||
if(typeof(h.imgUrl)!="undefined"&&h.imgUrl!=null&&$.trim(h.imgUrl)!=""){
|
||||
$("#"+imageId).attr("src",h.imgUrl);
|
||||
}
|
||||
if(typeof(h.link)!="undefined"&&h.link!=null&&$.trim(h.link)!=""){
|
||||
var uid = localStorage.getItem("user_id");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user