findPassword.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <div class="bg-F5">
  3. <div class="topDiv">
  4. <div class="container">
  5. <span class="title">中国钢制家具产业聚集网</span>
  6. <span class="line"></span>
  7. <span class="info">忘记密码</span>
  8. </div>
  9. </div>
  10. <div class="container pt3rem pb3rem">
  11. <el-row :gutter="20">
  12. <el-col :span="8" :offset="16">
  13. <div class="loginDiv">
  14. <div class="name"><span class="line"></span>重设密码</div>
  15. <div class="inputDiv">
  16. <img src="@assets/user.png" alt="" />
  17. <el-input
  18. class="fr"
  19. placeholder="登录账号"
  20. v-model="form.username"
  21. >
  22. </el-input>
  23. </div>
  24. <div class="inputDiv">
  25. <img src="@assets/phone.png" alt="" />
  26. <el-input class="fr" placeholder="手机号码" v-model="form.phone">
  27. </el-input>
  28. </div>
  29. <div class="yzmDiv">
  30. <div class="inputDiv per70">
  31. <img src="@assets/yz.png" alt="" />
  32. <el-input
  33. class="fr"
  34. placeholder="验证码"
  35. style="width:89%;"
  36. v-model="form.yzm"
  37. >
  38. </el-input>
  39. </div>
  40. <div class="yzm">获取验证码</div>
  41. </div>
  42. <div class="inputDiv">
  43. <img src="@assets/lock.png" alt="" />
  44. <el-input
  45. class="fr"
  46. type="password"
  47. placeholder="新密码"
  48. v-model="form.password"
  49. >
  50. </el-input>
  51. </div>
  52. <div>
  53. <el-button class="loginBtn">提交</el-button>
  54. </div>
  55. </div>
  56. </el-col>
  57. </el-row>
  58. </div>
  59. </div>
  60. </template>
  61. <script>
  62. import { Component, Vue, Watch } from "vue-property-decorator";
  63. export default {
  64. name: "app",
  65. components: {},
  66. data() {
  67. return {
  68. form: {
  69. username: "",
  70. password: "",
  71. yzm: "",
  72. zddl: false,
  73. phone: ""
  74. }
  75. };
  76. },
  77. methods: {}
  78. };
  79. </script>
  80. <style lang="scss" scoped>
  81. .topDiv {
  82. height: 9rem;
  83. line-height: 9rem;
  84. background: #fff;
  85. .title {
  86. font-size: 2.2rem;
  87. font-weight: bold;
  88. color: #fd5522;
  89. }
  90. .line {
  91. display: inline-block;
  92. height: 3rem;
  93. width: 0.1rem;
  94. background: #e5e5e5;
  95. margin: 0 2rem;
  96. vertical-align: middle;
  97. }
  98. .info {
  99. font-size: 1.8rem;
  100. font-weight: bold;
  101. color: #666;
  102. }
  103. }
  104. .loginDiv {
  105. background: #fff;
  106. padding: 1.6rem;
  107. box-sizing: border-box;
  108. border-radius: 0.4rem;
  109. box-shadow: 2px 2px 12px #ddd;
  110. .name {
  111. height: 3rem;
  112. line-height: 3rem;
  113. font-size: 1.6rem;
  114. color: #333;
  115. position: relative;
  116. .line {
  117. display: inline-block;
  118. height: 1.8rem;
  119. width: 0.4rem;
  120. background: #fd5522;
  121. position: absolute;
  122. left: -1.6rem;
  123. top: 0.6rem;
  124. }
  125. }
  126. .inputDiv {
  127. height: 4rem;
  128. line-height: 4rem;
  129. border: 0.1rem solid #acacac;
  130. border-radius: 0.4rem;
  131. margin-top: 2rem;
  132. img {
  133. height: 1.6rem;
  134. vertical-align: middle;
  135. margin-left: 0.6rem;
  136. }
  137. }
  138. .yzmDiv {
  139. overflow: hidden;
  140. .yzm {
  141. height: 4rem;
  142. line-height: 4rem;
  143. width: 28%;
  144. font-size: 1.4rem;
  145. color: #fd5522;
  146. text-align: center;
  147. float: right;
  148. background: #ffded5;
  149. border-radius: 0.4rem;
  150. margin-top: 2rem;
  151. }
  152. }
  153. div {
  154. .loginBtn {
  155. width: 100%;
  156. background: #fd5522;
  157. color: #fff;
  158. border-color: #fd5522;
  159. margin-top: 2rem;
  160. }
  161. }
  162. .newDiv {
  163. height: 4rem;
  164. line-height: 4rem;
  165. text-align: right;
  166. font-size: 1.4rem;
  167. .line {
  168. height: 1rem;
  169. width: 0.1rem;
  170. background: #e5e5e5;
  171. margin: 0 1rem;
  172. vertical-align: middle;
  173. display: inline-block;
  174. }
  175. .forgetPass {
  176. color: #666;
  177. }
  178. .register {
  179. color: #fd5522;
  180. }
  181. }
  182. }
  183. .bg-F5 {
  184. background: #f5f5f5;
  185. }
  186. .pt3rem {
  187. padding-top: 3rem;
  188. }
  189. .pb3rem {
  190. padding-bottom: 3rem;
  191. }
  192. .fr {
  193. float: right;
  194. }
  195. .per70 {
  196. width: 70%;
  197. float: left;
  198. }
  199. </style>
  200. <style lang="scss">
  201. .inputDiv .el-input {
  202. width: 92%;
  203. float: right;
  204. .el-input__inner {
  205. border: 0;
  206. padding-left: 0.6rem;
  207. }
  208. }
  209. </style>