提交个人中心 联调修改密码
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<div class="page-group" id="app">
|
<div class="page-group" id="app">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<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>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">设置密码</h1>
|
<h1 class="title">设置密码</h1>
|
||||||
|
|||||||
@@ -116,8 +116,9 @@
|
|||||||
</header>
|
</header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="topBg01">
|
<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>
|
||||||
<div class="topic">
|
<div class="topic">
|
||||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||||
@@ -271,6 +272,8 @@ function checkIsLogin(){
|
|||||||
$('#page-group-login').hide();
|
$('#page-group-login').hide();
|
||||||
$('#page-group-nologin').show();
|
$('#page-group-nologin').show();
|
||||||
}else{
|
}else{
|
||||||
|
//加载个人信息
|
||||||
|
selectUserInfo();
|
||||||
//加载我的关注
|
//加载我的关注
|
||||||
addEstate(mf_itemsPerLoad, 0);
|
addEstate(mf_itemsPerLoad, 0);
|
||||||
//加载我的房产
|
//加载我的房产
|
||||||
@@ -283,12 +286,18 @@ function checkIsLogin(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//跳转登录方法, 考虑回调
|
||||||
function gotoLogin(){
|
function gotoLogin(){
|
||||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||||
checkIsLogin();
|
checkIsLogin();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//跳转设置密码方法
|
||||||
|
function gotoUpdatePass(){
|
||||||
|
clicked('/views/user/updatePass.html',true,false,{},{},function(){})
|
||||||
|
}
|
||||||
|
|
||||||
//注册'infinite'事件处理函数
|
//注册'infinite'事件处理函数
|
||||||
$(document).on('infinite', '.infinite-scroll',function() {
|
$(document).on('infinite', '.infinite-scroll',function() {
|
||||||
if($("#tabList1").hasClass("active")){
|
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 () {
|
$(document).ready(function () {
|
||||||
checkIsLogin();
|
checkIsLogin();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user