login.wxml 1.3 KB

12345678910111213141516171819202122232425
  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="logo_view"><image class="login_logo1" src="/images/login_logo1.png"></image></view>
  6. <view class="logo_view"><image class="login_logo2" src="/images/login_logo2.png"></image></view>
  7. <view class='context_input'>
  8. <view class='input_view'>
  9. <image class='account_img' src='/images/account.png'></image>
  10. <input placeholder='请输入您的账号' bindinput='inputAccount' maxlength='20' focus='true' placeholder-class='placeholder'></input>
  11. </view>
  12. <view class='input_view'>
  13. <image class='password_img' src='/images/password.png'></image>
  14. <input placeholder='请输入您的密码' value="{{password}}" focus="{{passwordFocus}}" maxlength='16' bindinput='inputPassword'type='password' placeholder-class='placeholder'></input>
  15. </view>
  16. </view>
  17. <!-- <view class="errorMsg"><text>{{errorMsg}}</text></view> -->
  18. <button class='{{checkPass?"login_button":"login_button_disable"}}' bindtap="{{checkPass?'loginUser':''}}" >登录</button>
  19. <view class="other_button">
  20. <text class='register_view' bindtap='goToRegister'>注册账户</text>
  21. <text class='forget_view' bindtap='goToForget'>忘记密码?</text>
  22. </view>
  23. </view>
  24. </view>