提交个人中心 联调修改密码
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<div class="page-group" id="app">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="back()">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">设置密码</h1>
|
||||
|
||||
@@ -116,8 +116,9 @@
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="topBg01">
|
||||
<img src="../../images/headPortrait.png">
|
||||
<p>137****6586<br><span class="tag"><!--<small>土豪</small>--></span></p>
|
||||
<!-- 目前是登录后点击个人头像设置密码 -->
|
||||
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
||||
<p id="user_mobile"><br><span class="tag"><!--<small>土豪</small>--></span></p>
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
@@ -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)+'<br><span class="tag"><!--<small>土豪</small>--></span>');
|
||||
if(result.headImg != null && result.headImg.length > 0){
|
||||
$('#user_headImg').attr('src', result.headImg);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
checkIsLogin();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user