system_setting.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="total-page page-box">
  3. <Nav :type="1" :title="title" :is_fixed="true">
  4. <view class="sys-background-fff m-30 r-30 p-lr30">
  5. <view class="from-animation animate__animated animate__fadeIn" v-if="id == 2">
  6. <view class="p-tb30 bor-bottom-1 row-c" :class="{'apply-shake':phoneShake}">
  7. <text class="size-28 sys-weight-400 input-text">原密码</text>
  8. <en-input type="number" class="m-l30" placeholder="请输入原密码" v-model="loginData.phone"
  9. maxlength="11"></en-input>
  10. </view>
  11. <view class="p-tb30 row-c">
  12. <text class="size-28 sys-weight-400 input-text">新密码</text>
  13. <en-input type="password" class="m-l30" placeholder="请输入新密码"
  14. v-model="loginData.password"></en-input>
  15. </view>
  16. <view class="p-tb30 row-c">
  17. <text class="size-28 sys-weight-400 input-text">确认密码</text>
  18. <en-input type="password" class="m-l30" placeholder="请确认密码"
  19. v-model="loginData.password"></en-input>
  20. </view>
  21. </view>
  22. <view class="from-animation animate__animated animate__fadeIn" v-if="id == 3">
  23. <view class="p-tb30 bor-bottom-1 row-c" :class="{'apply-shake':phoneShake}">
  24. <text class="size-28 sys-weight-400">手机号</text>
  25. <en-input type="number" class="m-l30" placeholder="请输入手机号" v-model="loginData.phone"
  26. maxlength="11"></en-input>
  27. </view>
  28. <view class="p-tb30 row-c">
  29. <text class="size-28 sys-weight-400 p-r30">验证码</text>
  30. <en-input type="password" class="flex" placeholder="验证码"
  31. v-model="loginData.password"></en-input>
  32. <view class="text-color-dominant sys-size-28 sys-weight-400" @click="getVerifiedCode">发送验证码
  33. </view>
  34. <!-- <view class="login-send text-color-dominant sys-size-28 sys-weight-400" v-else>s</view> -->
  35. </view>
  36. </view>
  37. </view>
  38. <EnButton :text="'保存'" :is_fixed="false" @onSubmit="onSubmit"></EnButton>
  39. </Nav>
  40. </view>
  41. </template>
  42. <script>
  43. import EnInput from "@/components/en-from/en-input/index.vue";
  44. export default {
  45. components: {
  46. EnInput
  47. },
  48. data() {
  49. return {
  50. id: 0,
  51. title: '',
  52. phoneShake: false,
  53. }
  54. },
  55. onLoad(options) {
  56. this.id = options.id
  57. this.title = options.title
  58. },
  59. methods: {
  60. onSubmit() {
  61. this.phoneShake = true
  62. setTimeout(() => {
  63. this.phoneShake = false
  64. this.passwordShake = false
  65. this.codedShake = false
  66. }, 500)
  67. },
  68. getVerifiedCode() {}
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .input-text {
  74. display: block;
  75. width: 120rpx;
  76. text-align: right;
  77. }
  78. .input-item {
  79. height: 96rpx;
  80. padding: 28rpx 40rpx;
  81. box-sizing: border-box;
  82. .login-input {
  83. width: 100%;
  84. }
  85. }
  86. .input-item:last-child {
  87. margin-top: 30rpx;
  88. }
  89. .input-send {
  90. display: flex;
  91. justify-content: flex-start;
  92. align-items: center;
  93. .login-input {
  94. width: calc(100% - 140rpx);
  95. }
  96. .login-send {
  97. width: 140rpx;
  98. text-align: center;
  99. }
  100. }
  101. .input-but {
  102. margin-top: 40rpx;
  103. width: 100%;
  104. height: 96rpx;
  105. line-height: 96rpx;
  106. text-align: center;
  107. }
  108. </style>