index.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!--index.wxml-->
  2. <view class="wrap">
  3. <view class="wrap_nr">
  4. <image class="user_thumb" src="{{ userInfo.thumb }}"></image>
  5. <view class="user_name">您好,{{ userInfo.nickname }}</view>
  6. <view class="tips">为了您的账户安全,请绑定手机号</view>
  7. <view class="form_wrap">
  8. <view class="form_item">
  9. <view class="item_label">手机号码</view>
  10. <view class="item_file">
  11. <van-field
  12. value="{{ phone }}"
  13. placeholder="请输入手机号码"
  14. border="{{ false }}"
  15. bind:change="getPhone"
  16. />
  17. <button hover-class="none" class="btn_code" disabled="{{codeLoading}}" loading="{{codeLoading}}" bind:tap="sendCode">{{ codeBtnName }}</button>
  18. </view>
  19. </view>
  20. <view class="form_item">
  21. <view class="item_label">手机验证码</view>
  22. <view class="item_file">
  23. <van-field
  24. value="{{ code }}"
  25. placeholder="请输入手机验证码"
  26. border="{{ false }}"
  27. bind:change="getPhoneCode"
  28. />
  29. </view>
  30. </view>
  31. </view>
  32. <button class="custom_btn" bind:tap="phoneLogin">登录</button>
  33. </view>
  34. </view>
  35. <!-- loading -->
  36. <!-- <van-overlay show="{{ loading }}" z-index="100">
  37. <van-loading custom-class="custom_loading" />
  38. </van-overlay> -->