system_setting.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view class="total-page page-box">
  3. <Nav :type="1" :genre="2" :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 focus 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 focus 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 class="p-tb30 row-c" :class="{'apply-shake':phoneShake}" v-if="id == 4">
  38. <text class="size-28 sys-weight-400">昵称</text>
  39. <en-input focus class="m-l30" placeholder="请输入昵称" v-model="loginData.phone"
  40. maxlength="11"></en-input>
  41. </view>
  42. <view class="p-tb30 row-c" :class="{'apply-shake':phoneShake}" v-if="id == 5">
  43. <text class="size-28 sys-weight-400">姓名</text>
  44. <en-input focus class="m-l30" placeholder="请输入姓名" v-model="loginData.phone"
  45. maxlength="11"></en-input>
  46. </view>
  47. </view>
  48. <EnButton :text="'保存'" :is_fixed="false" @onSubmit="onSubmit"></EnButton>
  49. </Nav>
  50. </view>
  51. </template>
  52. <script>
  53. import EnInput from "@/components/en-from/en-input/index.vue";
  54. export default {
  55. components: {
  56. EnInput
  57. },
  58. data() {
  59. return {
  60. id: 0,
  61. title: '',
  62. placeholder: '',
  63. phoneShake: false,
  64. loginData: {}
  65. }
  66. },
  67. onLoad(options) {
  68. this.id = options.id
  69. this.title = options.title
  70. },
  71. methods: {
  72. onSubmit() {
  73. this.phoneShake = true
  74. setTimeout(() => {
  75. this.phoneShake = false
  76. this.passwordShake = false
  77. this.codedShake = false
  78. }, 500)
  79. },
  80. getVerifiedCode() {}
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .input-text {
  86. display: block;
  87. width: 120rpx;
  88. text-align: right;
  89. }
  90. .input-item {
  91. height: 96rpx;
  92. padding: 28rpx 40rpx;
  93. box-sizing: border-box;
  94. .login-input {
  95. width: 100%;
  96. }
  97. }
  98. .input-item:last-child {
  99. margin-top: 30rpx;
  100. }
  101. .input-send {
  102. display: flex;
  103. justify-content: flex-start;
  104. align-items: center;
  105. .login-input {
  106. width: calc(100% - 140rpx);
  107. }
  108. .login-send {
  109. width: 140rpx;
  110. text-align: center;
  111. }
  112. }
  113. .input-but {
  114. margin-top: 40rpx;
  115. width: 100%;
  116. height: 96rpx;
  117. line-height: 96rpx;
  118. text-align: center;
  119. }
  120. </style>