You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

forgetPassword.vue 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="container">
  3. <view class="middle">
  4. <w-cell title="注册手机号" isLine isChance>
  5. <input class="weui-input" placeholder="请输入手机号" type="number" maxlength="11" data-prop="phone"
  6. bindinput="changeInput"></input>
  7. </w-cell>
  8. <w-cell title="验证码" isLine isChance>
  9. <view class="codeview">
  10. <input class="weui-input" placeholder="请输入验证码" data-prop="verifyCode" bindinput="changeInput"
  11. type="number" maxlength="6"></input>
  12. <view class="btn" wx:if="{{time<61}}">{{time}}s后重试</view>
  13. <view class="btn" wx:else bindtap="getVerifyCode">获取验证码</view>
  14. </view>
  15. </w-cell>
  16. <w-cell title="新密码" isLine isChance>
  17. <input class="weui-input" placeholder="请输入新密码" data-prop="newPassWord" bindinput="changeInput" password
  18. type="text"></input>
  19. </w-cell>
  20. <w-cell title="确认密码" isLine isChance>
  21. <input class="weui-input" placeholder="请输入确认密码" password type="text" data-prop="password"
  22. bindinput="changeInput"></input>
  23. </w-cell>
  24. <view class="red-text">新密码长度至少为8位,由数字和字母组成</view>
  25. </view>
  26. <view class="up_btn">
  27. <button aria-disabled="true" bindtap="submitfn">确定</button>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. </script>
  33. <style scoped>
  34. .codeview {
  35. display: flex;
  36. width: 100%;
  37. justify-content: left;
  38. align-items: center;
  39. }
  40. .codeview>.weui-input {
  41. width: calc(100% - 220rpx);
  42. }
  43. .codeview>.btn {
  44. width: 80px;
  45. height: 60rpx;
  46. background-color: #4CD95F;
  47. text-align: center;
  48. border-radius: 5px;
  49. font-size: 12px;
  50. color: #fff;
  51. justify-content: center;
  52. align-items: center;
  53. display: flex;
  54. }
  55. /*提交按钮样式*/
  56. .up_btn {
  57. width: 85%;
  58. height: 100rpx;
  59. margin: 0 auto;
  60. margin-top: 50rpx;
  61. margin-bottom: 50rpx;
  62. }
  63. .up_btn button {
  64. width: 100%;
  65. color: white;
  66. font-size: 32rpx;
  67. text-align: center;
  68. line-height: 100rpx;
  69. background: linear-gradient(to right,#13E7C1,#43A1E0);
  70. outline: none;
  71. }
  72. .red-text {
  73. padding: 30rpx;
  74. color: red;
  75. }
  76. </style>