开放平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

password.vue 3.6 KiB

pirms 3 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <div>
  3. <div class="bulletin-box">
  4. <div class="bulletin-left">公告</div>
  5. <div
  6. v-swiper:mySwiper="swiperOption"
  7. class="swiperWrap"
  8. style="height: 32px"
  9. >
  10. <div class="swiper-wrapper">
  11. <div
  12. class="swiper-slide"
  13. v-for="(banner, index) in banners"
  14. :key="index"
  15. >
  16. {{ banner.content }}
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="password-box">
  22. <div class="password-head">
  23. <span>修改密码</span>
  24. </div>
  25. <div>
  26. <el-form label-position="top" inline :model="formLabelAlign">
  27. <div class="form-Text">
  28. <el-form-item label="手机号码">
  29. <el-input
  30. v-model="formLabelAlign.phone"
  31. placeholder="138****3293"
  32. ></el-input>
  33. </el-form-item>
  34. <el-form-item label="获取验证码">
  35. <el-input
  36. v-model="formLabelAlign.code"
  37. placeholder="请输入获取到的验证码"
  38. >
  39. <span slot="suffix" class="right-font" @click="getCode"
  40. >获取验证码</span
  41. >
  42. </el-input>
  43. </el-form-item>
  44. <el-form-item label="输入新密码">
  45. <el-input
  46. v-model="formLabelAlign.newPassword"
  47. placeholder="不少于十位数"
  48. ></el-input>
  49. </el-form-item>
  50. <el-form-item label="确认新密码">
  51. <el-input
  52. v-model="formLabelAlign.confirmPas"
  53. placeholder="再次输入新密码"
  54. ></el-input>
  55. </el-form-item>
  56. </div>
  57. <el-button class="primary-button" type="primary" @click="onSubmit"
  58. >确认修改</el-button
  59. >
  60. </el-form>
  61. </div>
  62. </div>
  63. </div>
  64. </template>
  65. <script>
  66. export default {
  67. meta:{title:'修改密码'},
  68. data() {
  69. return {
  70. formLabelAlign: {
  71. phone: "",
  72. code: "",
  73. newPassword: "",
  74. confirmPas: "",
  75. },
  76. banners: [
  77. {
  78. content:
  79. "您目前还没完成实名认证,部分功能不可使用,请尽快进行实名认证1",
  80. },
  81. {
  82. content:
  83. "您目前还没完成实名认证,部分功能不可使用,请尽快进行实名认证2",
  84. },
  85. {
  86. content:
  87. "您目前还没完成实名认证,部分功能不可使用,请尽快进行实名认证3",
  88. },
  89. {
  90. content:
  91. "您目前还没完成实名认证,部分功能不可使用,请尽快进行实名认证4",
  92. },
  93. ],
  94. swiperOption: {
  95. direction: "vertical",
  96. autoplay: true,
  97. loop: true,
  98. },
  99. };
  100. },
  101. methods: {
  102. handleAvatarSuccess: function () {},
  103. beforeAvatarUpload: function () {},
  104. onSubmit: function () {},
  105. getCode: function () {
  106. console.log("获取验证码");
  107. },
  108. },
  109. };
  110. </script>
  111. <style lang="scss" scoped>
  112. .password-box {
  113. background: #fff;
  114. padding: 20px;
  115. border-radius: 14px;
  116. }
  117. .password-head {
  118. height: 26px;
  119. font-size: 20px;
  120. color: #333333;
  121. display: flex;
  122. align-items: center;
  123. margin-bottom: 35px;
  124. span {
  125. height: 20px;
  126. line-height: 20px;
  127. padding-left: 20px;
  128. border-left: 4px solid #1890ff;
  129. }
  130. }
  131. .el-form--inline .el-form-item {
  132. width: 48%;
  133. color: #5f6279;
  134. font-size: 14px;
  135. }
  136. .primary-button {
  137. margin: 20px auto 0;
  138. width: 96px;
  139. }
  140. .right-font {
  141. color: #1890ff;
  142. font-size: 14px;
  143. cursor: pointer;
  144. padding-right: 10px;
  145. }
  146. </style>