Modifypass.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view>
  3. <!-- <titlenav></titlenav> -->
  4. <view class="register">
  5. <view class="title">修改密码</view>
  6. <view class="name">修改密码后立即生效,下次登录请使用新密码</view>
  7. <view class="content content2">
  8. <image src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-23-15-00-32OuHmKLtr.png" mode="widthFix"></image>
  9. <view class="border"><input class="inputNm" placeholder="请输入旧密码" type="number" v-model="form.usedpassword" /></view>
  10. </view>
  11. <view class="content content2">
  12. <image src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-23-15-00-32OuHmKLtr.png" mode="widthFix"></image>
  13. <view class="border"><input class="inputNm" placeholder="请输入新密码" type="number" v-model="form.newpassword" /></view>
  14. </view>
  15. <view class="content content2">
  16. <image src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-23-15-00-32OuHmKLtr.png" mode="widthFix"></image>
  17. <view class="border"><input class="inputNm" placeholder="请再次输入新密码" type="number" v-model="form.password" /></view>
  18. </view>
  19. <u-button type="primary">确定</u-button>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import { mapState } from 'vuex';
  25. import Titlenav from '../components/Titlenav.vue';
  26. export default {
  27. components: {
  28. Titlenav
  29. },
  30. data() {
  31. return {
  32. form: {},
  33. time: 0,
  34. forget: false
  35. }
  36. },
  37. onLoad(options) {
  38. this.forget = options.forget;
  39. },
  40. computed: {
  41. ...mapState(['systemInfo'])
  42. },
  43. methods: {
  44. send() {
  45. console.log(this.form);
  46. this.sendCode(this.form.phone);
  47. }
  48. }
  49. };
  50. </script>
  51. <style lang="scss" scoped>
  52. .register {
  53. /deep/ .uni-input-placeholder {
  54. font-size: 14px;
  55. font-weight: 400;
  56. color: #c8c9cc;
  57. line-height: 24px;
  58. }
  59. /deep/ .u-btn {
  60. height: 48px;
  61. font-size: 14px;
  62. margin: 60px 26px 12px;
  63. }
  64. margin: 10px 20px 0;
  65. .title {
  66. font-size: 24px;
  67. font-weight: bold;
  68. color: #000000;
  69. line-height: 33px;
  70. margin-bottom: 10px;
  71. }
  72. .name {
  73. font-size: 13px;
  74. font-weight: 400;
  75. color: #aaabad;
  76. line-height: 22px;
  77. margin-bottom: 50px;
  78. }
  79. .phone {
  80. margin: 0 26px;
  81. .text1 {
  82. font-size: 20px;
  83. font-weight: bold;
  84. color: #000000;
  85. line-height: 28px;
  86. }
  87. .text2 {
  88. font-size: 14px;
  89. font-weight: 400;
  90. color: #939599;
  91. line-height: 24px;
  92. }
  93. }
  94. .content {
  95. display: flex;
  96. align-items: center;
  97. margin: 0 26px;
  98. .border {
  99. border-bottom: 1px solid #f2f3f5;
  100. width: 100%;
  101. margin-left: 10px;
  102. .inputNm {
  103. height: 44px;
  104. }
  105. }
  106. &.content2 {
  107. margin: 20px 26px 6px;
  108. }
  109. image {
  110. width: 24px;
  111. height: 24px;
  112. }
  113. }
  114. }
  115. </style>