微信小程序
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.

47 lines
2.4 KiB

  1. <!--pages/phoneLogin.wxml-->
  2. <import src="/templates/global/global"/>
  3. <template is="toast" data="{{...toastData}}"></template>
  4. <image src="/image/login/login_bg.png" style="width: 100%;position: absolute;z-index: -1;" mode="widthFix" bindtap='goLogin'></image>
  5. <view class="container">
  6. <view style="position: absolute;left:2.5%;top:{{isIPX?'57px':'32px'}};display: flex;align-items: center;" bindtap="back">
  7. <image src="/image/icon/cancel_icon2.png" style="width: 25px;height: 25px;"></image>
  8. </view>
  9. <view class="header" style="text-align: center;" >
  10. <view class="principal">账户密码登录</view>
  11. <image src="/image/login/login_icon.png" style="width: 60%;position: relative;left: 10%;" mode="widthFix"></image>
  12. </view>
  13. <view class="quick-login">
  14. <view class="filed_box">
  15. <van-field value="{{ formData.username }}" bind:change="onChange" placeholder="请输入账号" required data-value="formData.username" label-width="auto">
  16. <view slot="left-icon">
  17. <image src="/image/icon/input_name.png" style="width: 15px;vertical-align: middle;margin-right: 10px;" mode="widthFix"/>
  18. </view>
  19. </van-field>
  20. </view>
  21. <view class="filed_box">
  22. <van-field value="{{ formData.password }}" type="password" bind:change="onChange" placeholder="请输入密码" required data-value="formData.password" label-width="auto">
  23. <view slot="left-icon">
  24. <image src="/image/icon/input_password.png" style="width: 15px;vertical-align: middle;margin-right: 10px;" mode="widthFix"/>
  25. </view>
  26. </van-field>
  27. </view>
  28. <view style="display: flex;">
  29. <view class="filed_box" style="margin-bottom: 0;">
  30. <van-field value="{{ formData.code }}" bind:change="onChange" placeholder="请输入验证码" required data-value="formData.code" label-width="auto">
  31. <view slot="left-icon">
  32. <image src="/image/icon/input_yzm.png" style="width: 15px;vertical-align: middle;margin-right: 10px;" mode="widthFix"/>
  33. </view>
  34. </van-field>
  35. </view>
  36. <view style="flex: 1;border-radius: 50vh;overflow: hidden;margin-left: 15px;">
  37. <image src="{{codeUrl}}" style="width: 100%;transform: scale(1.3);position: relative;top: 6px;" mode="widthFix" bind:tap="getCode"/>
  38. </view>
  39. </view>
  40. <view class="bottom">
  41. <view class="btn2" bindtap="onSubmit">登录</view>
  42. </view>
  43. </view>
  44. </view>