You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
<!--pages/admin-login/admin-login.wxml-->
|
|
<view class="page-container">
|
|
<view class="login-container">
|
|
<!-- 顶部标题 -->
|
|
<view class="header">
|
|
<text class="admin-icon">👨💼</text>
|
|
<text class="title">管理员登录</text>
|
|
<text class="subtitle">校园二手交易管理后台</text>
|
|
</view>
|
|
|
|
<!-- 登录表单 -->
|
|
<view class="login-form">
|
|
<view class="form-group">
|
|
<text class="label">管理员账号</text>
|
|
<input
|
|
class="input"
|
|
type="text"
|
|
placeholder="请输入管理员账号"
|
|
bindinput="onInputUsername"
|
|
value="{{username}}"
|
|
/>
|
|
</view>
|
|
|
|
<view class="form-group">
|
|
<text class="label">密码</text>
|
|
<input
|
|
class="input"
|
|
type="password"
|
|
placeholder="请输入密码"
|
|
bindinput="onInputPassword"
|
|
value="{{password}}"
|
|
password
|
|
/>
|
|
</view>
|
|
|
|
<!-- 登录按钮 -->
|
|
<button
|
|
class="login-btn {{isLoginDisabled ? 'disabled' : ''}}"
|
|
bindtap="onLogin"
|
|
disabled="{{isLoginDisabled}}"
|
|
>
|
|
登录
|
|
</button>
|
|
|
|
<!-- 返回普通登录 -->
|
|
<view class="back-link">
|
|
<text class="link" bindtap="onBackToUserLogin">返回用户登录</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|