<div class="wrapTitle formTitleWrap">
    <span>账号管理</span>
</div>

<div class="formDetailInfo">
    <div class="formhalf">
    	<div class="formline">账户信息
			<div class="formBtn right" ng-click="toedit=true" ng-show="!toedit">
			<span class="editIcon"></span>编辑</div>
    	</div>
    	<div class="formDetailItem">
	        <div class="iptlabel">账号:</div>
	        <div class="toblock">{{email}}</div>
	    </div>
	    <div class="formDetailItem">
	        <div class="iptlabel">姓名:</div>
	        <div class="iptformdis" ng-show="!toedit">{{name}}</div>
	        <input type="text" class="iptform" ng-model="name" placeholder="姓名" ng-show="toedit">
	        <em class="error errorInfo" ng-if="tip.name.status">{{tip.name.txt}}</em>
	    </div>
	    <div class="formDetailItem">
	        <div class="iptlabel">公司:</div>
	        <div class="iptformdis" ng-show="!toedit">{{company}}</div>
	        <input type="text" class="iptform" ng-model="company" placeholder="公司" ng-show="toedit">
	        <em class="error errorInfo" ng-if="tip.company.status">{{tip.company.txt}}</em>
	    </div>
	    <div class="formDetailItem">
	        <div class="iptlabel">手机:</div>
	        <div class="iptformdis" ng-show="!toedit">{{phone}}</div>
	        <input type="text" class="iptform" ng-model="phone" placeholder="手机" ng-show="toedit">
	        <em class="error errorInfo" ng-if="tip.phone.status">{{tip.phone.txt}}</em>
	    </div>
	    <div class="formDetailItem">
	        <div class="iptlabel">微信:</div>
	        <div class="iptformdis" ng-show="!toedit">{{wechat}}</div>
	        <input type="text" class="iptform" ng-model="wechat" placeholder="微信" ng-show="toedit">
	        <em class="error errorInfo" ng-if="tip.wechat.status">{{tip.wechat.txt}}</em>
	    </div>
	    <div class="formDetailItem">
	        <div class="iptlabel">QQ:</div>
	        <div class="iptformdis" ng-show="!toedit">{{qq}}</div>
	        <input type="text" class="iptform" ng-model="qq" placeholder="QQ" ng-show="toedit">
	        <em class="error errorInfo" ng-if="tip.qq.status">{{tip.qq.txt}}</em>
	    </div>
	    <div class="formDetailItem" ng-show="toedit">
	    	<div class="iptlabel">&nbsp;</div>
	        <div class="btn5 toblock" style="padding:0px 20px;" ng-click="save()">提交修改</div>
	    </div>
    </div>
    <div class="formhalf" style="padding-right: 0px;" ng-show="isDemo">
    </div>
    <div class="formhalf" style="padding-right: 0px;" ng-show="!isDemo">
    	<div class="formline">修改密码</div>
    	<div class="formDetailItem">
	        <div class="iptlabel">原密码:</div>
	        <input type="password" class="iptform" ng-model="pwd" placeholder="输入原密码">
	        <em class="error" ng-if="tip.pwd.status" style="margin-left: 110px;display: block;line-height: 20px">{{tip.pwd.txt}}</em>
	    </div>
	    <div class="formDetailItem">
	        <div class="iptlabel">新密码:</div>
	        <input type="password" class="iptform" ng-model="newpwd" placeholder="*6-18位至少包含数字、大小写字母中的两种">
	        <em class="error" ng-if="tip.newpwd.status" style="margin-left: 110px;display: block;line-height: 20px">{{tip.newpwd.txt}}</em>
	    </div>
	    <div class="formDetailItem" >
	        <div class="iptlabel">确认密码:</div>
	        <input type="password" class="iptform" ng-model="crmpwd" placeholder="*6-18位至少包含数字、大小写字母中的两种">
	        <em class="error" ng-if="tip.crmpwd.status" style="margin-left: 110px;display: block;line-height: 20px">{{tip.crmpwd.txt}}</em>
	    </div>
	    <div class="formDetailItem">
	    	<div class="iptlabel">&nbsp;</div>
	         <div class="btn5 toblock" style="padding:0px 20px;" ng-click="savepwd()">提交修改</div>
	    </div>
    </div>
    <div class="formhalf mt20">
    	<div class="formline">登录信息</div>
    	<div class="formDetailItem">
	        <div class="iptlabel">注册日期:</div>
	        {{createTime | date:'yyyy-MM-dd'}}
	    </div>
	    <div class="formDetailItem">
	        <div class="iptlabel" style="vertical-align: top;">近期登录:</div>
	         <ul class="toblock">
	         	<li ng-repeat="log in logList track by $index">
	         		<span class="mr10">{{log.pubDate | date:'yyyy-MM-dd HH:mm:ss'}}</span>
	         		<span class="mr10">IP:{{log.ip}}</span>
	         		<span>{{log.location}}</span>
	         	</li>
	         </ul>
	    </div>
    </div>
</div>