-
-
+
- 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(); });
'); + if(result.headImg != null && result.headImg.length > 0){ + $('#user_headImg').attr('src', result.headImg); + } + }).catch(function (error) { + console.log(error); + }); +} + $(document).ready(function () { checkIsLogin(); });