From 4234752e5b382ee7886516f401beabc01cbdda72 Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Tue, 10 Apr 2018 13:16:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=20=E8=81=94=E8=B0=83=E4=BF=AE=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/user/updatePass.html | 2 +- fangija-zsyf/views/user/userInfo.html | 30 +++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/fangija-zsyf/views/user/updatePass.html b/fangija-zsyf/views/user/updatePass.html index c3c8256..b1ff5db 100644 --- a/fangija-zsyf/views/user/updatePass.html +++ b/fangija-zsyf/views/user/updatePass.html @@ -21,7 +21,7 @@
-

设置密码

diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index 409b2fe..963c6db 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -116,8 +116,9 @@
- -

137****6586

+ + +


@@ -271,6 +272,8 @@ function checkIsLogin(){ $('#page-group-login').hide(); $('#page-group-nologin').show(); }else{ + //加载个人信息 + selectUserInfo(); //加载我的关注 addEstate(mf_itemsPerLoad, 0); //加载我的房产 @@ -283,12 +286,18 @@ function checkIsLogin(){ } } +//跳转登录方法, 考虑回调 function gotoLogin(){ clicked('/views/user/passLogin.html',true,false,{},{},function(){ checkIsLogin(); }) } +//跳转设置密码方法 +function gotoUpdatePass(){ + clicked('/views/user/updatePass.html',true,false,{},{},function(){}) +} + //注册'infinite'事件处理函数 $(document).on('infinite', '.infinite-scroll',function() { if($("#tabList1").hasClass("active")){ @@ -365,6 +374,23 @@ $(document).on('infinite', '.infinite-scroll',function() { } }); +//个人信息展示 +function selectUserInfo(){ + axios.get(BASE_PATH + "/rest/user/info", + { + params: {} + }).then(function (response) { + var result = response.data.data; + var 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); + } + }).catch(function (error) { + console.log(error); + }); +} + $(document).ready(function () { checkIsLogin(); });