reset.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <van-field
  2. wx:if="{{ mobile }}"
  3. model:value="{{ mobile }}"
  4. center
  5. readonly
  6. clearable
  7. label="手机号码"
  8. placeholder="请输入短信验证码"
  9. use-button-slot
  10. >
  11. <van-button slot="button" size="small" type="primary" bind:click="sendSms" disabled="{{ smsloading }}">{{ smsloading ? smsloadingSecond + '秒后重新获取' : '发送验证码' }}</van-button>
  12. </van-field>
  13. <van-field
  14. wx:else
  15. center
  16. readonly
  17. clearable
  18. label="手机号码"
  19. placeholder="绑定后才可以重置"
  20. use-button-slot
  21. >
  22. <van-button slot="button" type="primary" size="small" open-type="getPhoneNumber" bind:getphonenumber="getPhoneNumber">立即绑定</van-button>
  23. </van-field>
  24. <van-field
  25. wx:if="{{ mobile }}"
  26. label="短信验证码"
  27. type="number"
  28. model:value="{{ code }}"
  29. placeholder="请输入短信验证码"
  30. clearable
  31. />
  32. <van-field
  33. wx:if="{{ mobile }}"
  34. label="交易密码"
  35. password
  36. model:value="{{ pwd }}"
  37. placeholder="请输入交易密码"
  38. clearable
  39. />
  40. <van-field
  41. wx:if="{{ mobile }}"
  42. label="再次输入"
  43. password
  44. model:value="{{ pwd2 }}"
  45. placeholder="请再次输入交易密码"
  46. clearable
  47. />
  48. <van-cell icon="info-o" title="温馨提示" label="为了保障您的资金安全,余额支付、优惠买单、申请提现的时候可能会需要交易密码" />
  49. <view class="block-btn btn">
  50. <van-button type="primary" block bind:click="submit">重置交易密码</van-button>
  51. </view>
  52. <van-dialog id="van-dialog-auth-login" bind:getuserinfo="processLogin" />