<view class="container">
  <view class="role-info">当前角色：{{ role === 'admin' ? '管理员' : '普通用户' }}</view>
  <view class="form">
    <input 
      class="input" 
      type="text" 
      placeholder="请输入用户名" 
      data-field="username" 
      bindinput="onInputChange" 
    />
    <input 
      class="input" 
      type="password" 
      placeholder="请输入密码" 
      data-field="password" 
      bindinput="onInputChange" 
    />
    <button class="login-button" bindtap="onLogin">登录</button>
  </view>
</view>
