changePassword.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="changePassword-page">
  3. <ZxInput
  4. v-model="form.oldPassword"
  5. :placeholder="$t('请输入旧密码')"
  6. isPassword
  7. />
  8. <ZxInput
  9. v-model="form.password"
  10. :placeholder="$t('请输入新密码')"
  11. isPassword
  12. />
  13. <ZxInput
  14. v-model="form.passwordAgain"
  15. :placeholder="$t('请再次输入新密码')"
  16. isPassword
  17. />
  18. <view :class="['zx-form-btn', isSubmit && 'is-submit']" style="margin-top: 64rpx;" @tap="changePassword">
  19. {{ $t('确认修改') }}
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import ZxInput from './components/ZxInput.vue'
  25. export default {
  26. data() {
  27. return {
  28. form: {
  29. }
  30. }
  31. },
  32. components: {
  33. ZxInput
  34. },
  35. computed: {
  36. isSubmit({ form }) {
  37. return form.oldPassword && form.password && form.passwordAgain
  38. }
  39. },
  40. methods: {
  41. changePassword() {
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. @import "@/libs/css/layout.scss";
  48. .changePassword-page {
  49. padding: 58rpx 32rpx;
  50. min-height: 100vh;
  51. width: 100%;
  52. background: #F1F3F4;
  53. }
  54. </style>