电速宝
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.wxml 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <view class="verification-popup {{isShow ? 'show' : ''}}">
  2. <!-- 遮罩层 -->
  3. <view class="overlay" bindtap="onClose"></view>
  4. <!-- 弹窗内容 -->
  5. <view class="popup-content">
  6. <!-- 标题区域 -->
  7. <view class="popup-header">
  8. <text class="title">输入验证码</text>
  9. <view class="close-btn" bindtap="onClose">
  10. <icon type="clear" size="20" color="#999" />
  11. </view>
  12. </view>
  13. <!-- 提示信息 -->
  14. <!-- <view class="message">
  15. 验证码已发送至手机 {{phoneNumber}}
  16. </view> -->
  17. <!-- 验证码输入框 -->
  18. <view class="code-input-container">
  19. <view
  20. wx:for="{{6}}"
  21. wx:key="index"
  22. class="code-input {{currentIndex === index ? 'active' : ''}} {{codes[index] ? 'filled' : ''}}"
  23. bindtap="focusInput"
  24. >
  25. <text>{{codes[index] || ''}}</text>
  26. </view>
  27. <!-- 实际输入框(隐藏) -->
  28. <input
  29. class="real-input"
  30. type="number"
  31. maxlength="6"
  32. focus="{{isFocus}}"
  33. value="{{codeValue}}"
  34. bindinput="onCodeInput"
  35. bindblur="onInputBlur"
  36. />
  37. </view>
  38. <!-- 操作区域 -->
  39. <view class="operation-area">
  40. <!-- <button
  41. class="confirm-btn"
  42. bindtap="onConfirm"
  43. disabled="{{!isComplete}}"
  44. >
  45. 确认
  46. </button> -->
  47. <!-- <view class="resend-container">
  48. <text>未收到验证码?</text>
  49. <text
  50. class="resend-btn {{canResend ? 'active' : ''}}"
  51. bindtap="{{canResend ? 'onResend' : ''}}"
  52. >
  53. {{canResend ? '重新发送' : '重新发送(' + countdown + ')'}}
  54. </text>
  55. </view> -->
  56. </view>
  57. </view>
  58. </view>