江西小程序管理端
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.

97 lines
1.8 KiB

1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="修改密码"></topNavbar>
  4. <view class="form pad">
  5. <view class="card">
  6. <view class="form-item">
  7. <view class="lab">原密码</view>
  8. <view class="inputBox my">
  9. <u-input placeholder="输入旧密码" v-model="FormData.oldPwd" border="none"></u-input>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="card">
  14. <view class="form-item border">
  15. <view class="lab">新密码</view>
  16. <view class="inputBox my">
  17. <u-input placeholder="输入新密码" v-model="FormData.pwd1" border="none"></u-input>
  18. </view>
  19. </view>
  20. <view class="form-item">
  21. <view class="lab">新密码</view>
  22. <view class="inputBox my">
  23. <u-input placeholder="再次输入新密码" v-model="FormData.pwd2" border="none"></u-input>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="btnBg" :class="{hui: !highlight}">确认修改</view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. FormData: {
  36. oldPwd: '',
  37. pwd1: '',
  38. pwd2: '',
  39. }
  40. }
  41. },
  42. computed: {
  43. highlight() {
  44. let { FormData } = this
  45. if(FormData.oldPwd&&FormData.pwd1&&FormData.pwd2) {
  46. return true
  47. }else {
  48. return false
  49. }
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .pageBgImg {
  56. .form {
  57. .card {
  58. padding: 0 20rpx;
  59. margin-bottom: 20rpx;
  60. .form-item {
  61. height: 104rpx;
  62. line-height: 104rpx;
  63. font-size: 28rpx;
  64. color: #333;
  65. display: flex;
  66. align-items: center;
  67. &.border {
  68. border-bottom: 1px solid #F6F6F6;
  69. }
  70. .lab {
  71. width: 180rpx;
  72. }
  73. .inputBox {
  74. flex: 1;
  75. u-input {
  76. }
  77. }
  78. }
  79. }
  80. .btnBg {
  81. width: 396rpx;
  82. margin: 136rpx auto;
  83. &.hui {
  84. opacity: 0.3;
  85. }
  86. }
  87. }
  88. }
  89. </style>