bind-mobile.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title></title>
  7. <style type="text/css">
  8. *{
  9. margin: 0;
  10. padding: 0;
  11. }
  12. .app-drip-wechat-client {
  13. position: relative;
  14. font-family: PingFangSC-Regular;
  15. -webkit-touch-callout: none;
  16. -webkit-overflow-scrolling: auto;
  17. overflow: auto;
  18. height: 100%;
  19. width: 100%;
  20. padding: 0;
  21. margin: 0;
  22. }
  23. .v-login-bind-mobile {
  24. position: relative;
  25. height: 100%;
  26. overflow: hidden;
  27. }
  28. .v-login-bind-mobile .main-wrapper {
  29. text-align: center;
  30. background: #fff;
  31. padding: 2.5rem 1.875rem 0;
  32. }
  33. .v-login-bind-mobile .avatar-img {
  34. width: 4.5rem;
  35. height: 4.5rem;
  36. border-radius: 50%;
  37. }
  38. .pt10 {
  39. padding-top: .625rem!important;
  40. }
  41. .v-login-bind-mobile .form-input {
  42. margin-top: .625rem;
  43. font-size: .875rem;
  44. padding: .75rem .5rem .625rem;
  45. border: 1px solid #d5d5d5!important;
  46. position: relative;
  47. }
  48. .v-login-bind-mobile .form-input:first-of-type {
  49. margin-top: 2.5rem;
  50. }
  51. .v-login-bind-mobile .form-input span{
  52. position: absolute;
  53. top: 0;
  54. transform: translateY(50%);
  55. right:.5rem;
  56. color: #f00;
  57. }
  58. .v-login-bind-mobile .form-input .gray{
  59. color: #666;
  60. }
  61. .components-text-input input {
  62. border: none;
  63. display: block;
  64. outline: none;
  65. padding-right: 1.5rem;
  66. background: transparent;
  67. }
  68. .v-login-bind-mobile .btn {
  69. padding: .75rem 0 .625rem;
  70. margin: 1.25rem auto;
  71. font-size: 1rem;
  72. background: #df2413;
  73. color: #fff;
  74. border-radius: .3125rem;
  75. border:none;
  76. display: block;
  77. width:100%;
  78. }
  79. </style>
  80. </head>
  81. <body>
  82. <div id="drip-wechat-client" class="app-drip-wechat-client">
  83. <section class="v-login-bind-mobile">
  84. <div class="main-wrapper">
  85. <img src="http://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqwcfotKm4M678VMmYBKcGSxFQ6L5jGkxJvTfpSBsWpicvCu0exQxZe916IkO9emEWCePDcicz4Eic0w/132" class="avatar-img">
  86. <p class="f14 font-green pt10">为保证您的权益,请正确输入您的手机号!</p>
  87. <div class="components-text-input form-input">
  88. <input placeholder="请填写您的手机号" maxlength="11" type="tel">
  89. </div>
  90. <div class="components-text-input form-input">
  91. <input placeholder="请填写验证码" maxlength="6" type="tel">
  92. <span id="code">发送验证码</span>
  93. </div>
  94. <button class="btn btn-block btn-primary">登录</button>
  95. </div>
  96. <!---->
  97. </section>
  98. <!---->
  99. <!---->
  100. </div>
  101. </body>
  102. <script type="text/javascript">
  103. var num = 60;
  104. var timer = null;
  105. var oCode = document.getElementById('code');
  106. oCode.onclick = function(){
  107. if(num==60){
  108. timer = setInterval(function(){
  109. num--
  110. if(num){
  111. oCode.innerHTML = num + '秒后发送'
  112. oCode.className = 'gray'
  113. }else{
  114. clearInterval(timer)
  115. oCode.innerHTML = '发送验证码'
  116. oCode.className = ''
  117. }
  118. },1000)
  119. }
  120. }
  121. </script>
  122. </html>