diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index f3b90c4..2840d4d 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -257,6 +257,9 @@ $(".cardInfo01,.cardInfo02").on("click", function(){ //初始化init $.init(); +//定义个人手机号,贷款页面需要传参数 +var _mobile; + var tab = new Vue({ el:"#tab", data:{ @@ -298,6 +301,11 @@ function gotoUpdatePass(){ clicked('/views/user/updatePass.html',true,false,{},{},function(){}) } +//调整房产申请贷款 +function gotoLoanApply(houseId, city){ + clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: _mobile},function(){}) +} + //注册'infinite'事件处理函数 $(document).on('infinite', '.infinite-scroll',function() { if($("#tabList1").hasClass("active")){ @@ -382,6 +390,8 @@ function selectUserInfo(){ }).then(function (response) { var result = response.data.data; var mobile = result.mobile; + //加载个人信息时候为该变量赋值 + _mobile = result.mobile; $('#user_mobile').html(mobile.substring(0,3)+'****'+mobile.substring(7)+'
'); if(result.headImg != null && result.headImg.length > 0){ $('#user_headImg').attr('src', result.headImg);