<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>个人中心</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/uc/include/header.html" /]
|
<script type="text/javascript">
|
$(document).ready(function() {
|
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
|
document.getElementById("myform").target = window.top.openDialog("0","操作",
|
{},
|
{"width":40,"height":40,"noclose":true},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
|
return true;
|
|
}});
|
|
$("#zsxm").formValidator({empty: false, onShow:"请输入真实姓名!",onFocus: "请输入真实姓名"}).inputValidator({min: 3,max:20, onError: "真实姓名至少两个汉字或3个英文字符"});
|
});
|
|
</script>
|
</head>
|
<body class="fullscreen service">
|
<nav class="fs_nav">
|
<div class="fsnav_con">
|
<h3 >个人中心</h3>
|
<a class="focus" ><span>我的资料</span></a>
|
<a id="pwd"><span>修改密码</span></a>
|
<a id="dsf"><span>第三方认证</span></a>
|
</div>
|
</nav>
|
<div class="tabcon">
|
|
<form method="post" action="ucsaveAccount.html" enctype="multipart/form-data" id="myform" name="myform">
|
<div class="fs_navtitle" id="fsNavtitle">
|
<div class="fs_navtitle_con">
|
<div class="fsnt_btn">
|
<a class="fb_submit fb_save" id="btOk" onclick="javascript:save();"><span>保存</span></a>
|
<a class="mainbtn close" id="btReset" onclick="reset();"><span>取消</span></a>
|
</div>
|
</div>
|
</div>
|
<div class="fs_main bind_account modify_padssword clearfix">
|
<div class="ba_tips bind_third"><h3>新增人员,默认密码为<span class="yellow_txt">88888888</span>,系统会在人员第一次登录时,要求更新密码</h3></div>
|
<table class="edit_layout">
|
<tr><th><label class="required">登录名:</label></th><td><input class="general" type="text" value="${user.LOGIN_NAME}" disabled="disabled"/></td>
|
<th><label class="required">真实姓名:</label></th><td><input class="general" type="text" value="${user.CONTACT_NAME}" name="zsxm" id="zsxm"/>
|
<div id="zsxmTip" style="display:inline-block;"></div></td></tr>
|
<tr><th><label>手机号:</label></th><td><input class="general" type="text" value="${user.MOBILE}" name="sjhm" id="sjhm" readonly/>
|
<div id="sjhmTip" style="display:inline-block;"></div></td>
|
<th><label>Email:</label></th><td><input class="general" type="text" value="${user.EMAIL}" name="email" id="email" readonly/>
|
<div id="emailTip" style="display:inline-block;"></div></td></tr>
|
</table>
|
</div>
|
</form>
|
</div>
|
<div class="tabcon"></div>
|
<div class="tabcon" id="thirdConfirm"></div>
|
<script type="text/javascript">
|
var shownum = '${RequestParameters.shownum}';
|
$(function(){
|
//queryDetail();
|
$('div.tabcon').hide();
|
$('div.tabcon').eq(0).show();
|
if(shownum == 1){
|
$('div.tabcon').hide();
|
$("div.fsnav_con a").removeClass("focus");
|
$("#dsf").addClass("focus");
|
$('div.tabcon').eq(2).show();
|
queryBindMsg();
|
|
}else if(shownum == 2){
|
$('div.tabcon').hide();
|
$("div.fsnav_con a").removeClass("focus");
|
$("#pwd").addClass("focus");
|
$('div.tabcon').eq(1).show();
|
$.get("${base}/uc/ucrepassword.html",{},function(data){
|
$('div.tabcon').eq(1).html(data);
|
});
|
|
}
|
$("div.fsnav_con a").click(function(){
|
var num = $("div.fsnav_con a").index(this);
|
$('div.tabcon').hide();
|
$("div.fsnav_con a").removeClass("focus");
|
$(this).addClass("focus");
|
$('div.tabcon').eq(num).show();
|
switch(num){
|
|
case 1:
|
$.get("${base}/uc/ucrepassword.html",{},function(data){
|
$('div.tabcon').eq(1).html(data);
|
});
|
break;
|
case 2:
|
queryBindMsg();
|
break;
|
}
|
});
|
|
$('#btn').click(function(){
|
$('#photopath').click();
|
});
|
});
|
|
function save(){
|
$("#myform").submit();
|
}
|
function reset(){
|
document.getElementById("myform").reset();
|
}
|
|
function queryBindMsg() {
|
$.post("${base}/uc/ucuserBind.html",{},function(data){
|
$('div.tabcon').eq(2).html(data);
|
});
|
}
|
function queryDetail(){
|
$.post("${base}/uc/ucuserDetail.html",{},function(data){
|
$('div.tabcon').eq(0).html(data);
|
});
|
}
|
function refreshDetail(){
|
window.location.reload();
|
}
|
function bindPhone(){
|
window.top.openDialog("0","手机绑定",
|
{},
|
{"width":50,"height":50},
|
[{btnId:"btnSure", btnName:"绑定", btnStyle:"bluebtn"}],
|
"${base}/uc/ucphoneBind.html");
|
}
|
//邮箱绑定
|
function bindEmail(){
|
window.top.openDialog("0","邮箱绑定",
|
{},
|
{"width":50,"height":50},
|
[{btnId:"btnSure", btnName:"绑定", btnStyle:"bluebtn"}],
|
"${base}/uc/ucemailBind.html");
|
}
|
|
//微信取消绑定
|
function unbindWechat() {
|
window.top.confirmInfo('提示','确定解除微信绑定吗?', function(){
|
$.post("${base}/uc/cancelWechat.html",{},function(data){
|
if(data==1){
|
window.top.popupTips("解除绑定成功");
|
queryBindMsg();
|
}
|
});
|
});
|
}
|
|
</script>
|
[#include "/business/pages/include/footer.html" /]
|
</body>
|
</html>
|