login.wxml 1.1 KB

1234567891011121314151617181920
  1. <!--pages/login/login.wxml-->
  2. <view class='main'>
  3. <image class='main_image' src='/images/login.png'></image>
  4. <view class='context'>
  5. <view class='context_input'>
  6. <view class='input_view'>
  7. <image class='account_img' src='/images/account.png'></image>
  8. <input placeholder='请输入您的账号' bindinput='inputAccount' maxlength='20' focus='true' placeholder-class='placeholder'></input>
  9. </view>
  10. <view class='input_view'>
  11. <image class='password_img' src='/images/password.png'></image>
  12. <input placeholder='请输入您的密码' value="{{password}}" focus="{{passwordFocus}}" maxlength='16' bindinput='inputPassword'type='password' placeholder-class='placeholder'></input>
  13. </view>
  14. </view>
  15. <view class="errorMsg"><text>{{errorMsg}}</text></view>
  16. <button class='{{checkPass?"login_button":"login_button_disable"}}' bindtap="{{checkPass?'loginUser':''}}" >登录</button>
  17. <text class='forget_view' bindtap='goToForget'>忘记密码</text>
  18. <view class='register_view' hover-class='active' bindtap='goToRegister'><text>注册账户</text></view>
  19. </view>
  20. </view>