<view class="box">
|
<view class="topContainer">
|
<image src="{{loginTop}}" class="topImg" mode="widthFix"></image>
|
<image src="{{loginPic}}" class="topPic" mode="widthFix"></image>
|
</view>
|
|
<view class="main">
|
<view class="header">
|
<view class="titleFirst">
|
你好~
|
<view>欢迎来到危化品全生命周期管理平台</view>
|
</view>
|
</view>
|
<view>
|
<view class="form">
|
<view class="form-item" style="width: 80%;">
|
<input
|
value="{{form.username}}"
|
class="u-input {{userFocused?'isFocused':''}}"
|
placeholder="请输入用户名"
|
data-field="form.username"
|
bindinput="onFormInput"
|
bindfocus="focusUser"
|
/>
|
</view>
|
<view class="form-item" style="margin-top: 10px;width: 80%;">
|
<input
|
value="{{form.password}}"
|
class="u-input pswInput {{codeFocused?'isFocused':''}}"
|
password="{{isPwd}}"
|
placeholder="请输入密码"
|
data-field="form.password"
|
bindinput="onFormInput"
|
bindfocus="focusCode"
|
>
|
<!-- <icon type="{{isPwd?'eye':'eye-off'}}" size="20" color="#999"></icon> -->
|
<text catchtap="togglePwd" class="iconfont {{isPwd?'icon-view':'icon-view-off'}}"></text>
|
</input>
|
</view>
|
<view class="switch-box">
|
<text>记住密码</text>
|
<switch type="checkbox" checked="{{saveAccount}}" bindchange="switchChange"/>
|
</view>
|
<view class="form-item" style="margin-top: 10px;width: 80%;">
|
<button
|
class="loginBtn"
|
loading="{{isLogining}}"
|
style="width: 100%;height: 56px;border-radius: 28px"
|
bindtap="Login"
|
type="primary"
|
>登录</button>
|
</view>
|
</view>
|
</view>
|
</view>
|
<view class="footer">
|
当前版本:1.0.2
|
</view>
|
</view>
|