电速宝
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.wxss 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /* 弹窗基础样式(如果已有可忽略,重点加动画相关) */
  2. .verification-popup {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. height: 100%;
  8. z-index: 999;
  9. display: none;
  10. }
  11. .verification-popup.show {
  12. display: block;
  13. }
  14. .overlay {
  15. width: 100%;
  16. height: 100%;
  17. background: rgba(0, 0, 0, 0.5);
  18. }
  19. .popup-content {
  20. position: absolute;
  21. top: 50%;
  22. left: 50%;
  23. transform: translate(-50%, -50%);
  24. width: 80%;
  25. max-width: 320px;
  26. background: #fff;
  27. border-radius: 12px;
  28. padding: 20px;
  29. /* 初始边框样式 */
  30. border: 2px solid #e5e5e5;
  31. /* 动画结束后恢复默认状态,避免位移 */
  32. transform-origin: center center;
  33. }
  34. /* 1. 定义晃动关键帧动画(小程序兼容写法) */
  35. @keyframes shake {
  36. 0%, 100% { transform: translate(-50%, -50%); }
  37. 20% { transform: translate(-50%, -50%) translateX(-5px); }
  38. 40% { transform: translate(-50%, -50%) translateX(5px); }
  39. 60% { transform: translate(-50%, -50%) translateX(-5px); }
  40. 80% { transform: translate(-50%, -50%) translateX(5px); }
  41. }
  42. /* 2. 检验失败的动画类(边框变红+晃动) */
  43. .popup-content.shake-error {
  44. border-color: #ff4444 !important; /* 红色边框 */
  45. animation: shake 0.5s ease-in-out; /* 绑定晃动动画 */
  46. }
  47. /* 其他原有样式(如输入框、按钮)保持不变 */
  48. .popup-header {
  49. display: flex;
  50. justify-content: space-between;
  51. align-items: center;
  52. margin-bottom: 20px;
  53. }
  54. .code-input-container {
  55. display: flex;
  56. justify-content: space-between;
  57. margin: 20px 0;
  58. }
  59. .code-input {
  60. width: 40px;
  61. height: 40px;
  62. border: 1px solid #ccc;
  63. border-radius: 8px;
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. font-size: 18px;
  68. }
  69. .code-input.active {
  70. border-color: #007aff;
  71. }
  72. .real-input {
  73. position: fixed;
  74. top: -100px;
  75. left: -100px;
  76. opacity: 0;
  77. }
  78. .resend-container {
  79. text-align: right;
  80. margin-top: 10px;
  81. }
  82. .resend-btn.active {
  83. color: #007aff;
  84. }
  85. .resend-btn {
  86. color: #07c160;
  87. font-size: 24rpx;
  88. }
  89. .resend-btn.disabled {
  90. color: #999;
  91. pointer-events: none; /* 倒计时期间禁止点击 */
  92. }
  93. /* 结算密码加密符号样式优化 */
  94. .code-input text {
  95. font-size: 20px; /* 放大●的字号,更醒目 */
  96. color: #333;
  97. letter-spacing: 2px; /* 增加间距,避免●挤在一起 */
  98. }
  99. /* 验证码仍用原有字号,不影响 */
  100. .code-input-container:not([wx-if]) .code-input text {
  101. font-size: 18px;
  102. letter-spacing: 0;
  103. }