<ion-view hide-nav-bar="true" cache-view="false" class="logins">
	<ion-content class="login" overflow-scroll="true">
		<div class="signup-header-style">
      <sino-person-photo
        user-id="{{lastLoginUser.userId}}"
        size="100x100"
        class="size_100x100">
      </sino-person-photo>
		</div>

		<div class="list" ng-class="{'only-password': !!lastLoginUser}">
			<label class="last-login-username">
				<i class="icon ion-ios-person-outline placeholder-icon"></i>
				<span style="color: white;">{{lastLoginUser.loginName || lastLoginUser.userName}}</span>
			</label>
			<label class="item item-input sign-label-style login-username-input">
				<i class="icon ion-ios-person-outline placeholder-icon"></i>
				<input type="text" placeholder="用户名" ng-model="user.userName">
			</label>
			<label class="item item-input sign-label-style" ng-class="{'sign-label-style-self': lastLoginUser}">
				<i class="icon ion-ios-locked-outline placeholder-icon"></i>
				<input type="password" ng-model="user.password" placeholder="密码">
			</label>
		</div>

		<div class="padding">
			<button class="button button-block button-positive sign-footer login-sign" ng-click="loginNormal()"
        ng-disabled="!user.userName || !user.password">登录</button>
		</div>

		<span ng-if="tishi1 || tishi2 || tishi3" class="tishi" ng-class="{'position1':tishi1, 'position2':tishi2, 'position3':tishi3}">			{{tishici}}
		</span>

		<div class="only-change-user hide-on-keyboard-open" ng-style="onlytopHeight">
			<i type="text" class="icon ion-key" ng-click="toCAOnly()"></i>
			<i class="icon ion-person-stalker" ng-click="showLoginModalOnly()"></i>
			<i class="icon ion-gear-b" sino-set-url></i>
		</div>

		<div class="change-user hide-on-keyboard-open" ng-style="topHeight">
			<button class="button button-block login-button-positive sign-footer ion-ios-arrow-right" ng-click="toCA()">证书登录</button>
			<button class="button button-block login-button-positive sign-footer ion-ios-arrow-right" ng-click="showLoginModal()">切换账号</button>
			<button class="button button-block login-button-positive sign-footer ion-ios-arrow-right" sino-set-url>设置服务器</button>
		</div>
	</ion-content>

</ion-view>
