From c64671375f801bda0f3b6290fef0a260ab8ed779 Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Wed, 11 Apr 2018 19:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=AA=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/user/userInfo.html | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);