血透系统pad前端

ChangePassword.vue 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div class="container">
  3. <div class="changePassword">
  4. <h1 class="title">
  5. <div class="GoBack" @click="$router.go(-1)">
  6. <span class="iconfont">&#xe720;</span>返回
  7. </div>
  8. <span class="name">修改密码</span>
  9. <div class="GoBack"></div>
  10. </h1>
  11. <van-field v-model="username" clearable label="旧密码" placeholder="请输入旧密码" />
  12. <van-field v-model="sms" center clearable label="验证码" placeholder="请输入短信验证码">
  13. <van-button slot="button" size="small" type="primary">发送验证码</van-button>
  14. </van-field>
  15. <van-field v-model="password" type="password" label="新密码" placeholder="请输入新密码" />
  16. <div class="finish">完成</div>
  17. </div>
  18. </div>
  19. </template>
  20. <style rel="stylesheet/scss" lang="scss" >
  21. .container {
  22. background: #f5f5f5;
  23. @include box-sizing;
  24. position: fixed;
  25. width: 100%;
  26. height: 100%;
  27. display: flex;
  28. justify-content: space-between;
  29. .changePassword {
  30. width: 100%;
  31. font-size: 0.45rem;
  32. .title {
  33. margin-bottom: 1rem;
  34. font-size: 0.45rem;
  35. padding: 0.3rem 0.37rem;
  36. color: $title-color;
  37. @include align-items-center;
  38. @include display-flex;
  39. @include justify-content-between;
  40. @include text-align;
  41. background: #fff;
  42. .GoBack {
  43. color: $main-color;
  44. font-size: 0.45rem;
  45. @include display-flex;
  46. .iconfont {
  47. color: $main-color;
  48. font-size: 0.5rem;
  49. margin-top: 1px;
  50. @media only screen and (min-width: 768px) {
  51. margin-top: 3px;
  52. }
  53. }
  54. }
  55. .name {
  56. margin-right: 1.3rem;
  57. }
  58. }
  59. .van-cell {
  60. width: 90%;
  61. margin: 0 auto;
  62. height: 1.4rem;
  63. padding: 0 15px;
  64. }
  65. .van-field__label {
  66. height: 1.4rem;
  67. line-height: 1.4rem;
  68. font-size: 0.45rem;
  69. }
  70. .van-field__body {
  71. height: 100%;
  72. font-size: 0.45rem;
  73. }
  74. .van-field__label {
  75. max-width: 2.5rem;
  76. }
  77. .van-button--primary {
  78. background-color: #258ffc;
  79. border: 1px solid #258ffc;
  80. }
  81. }
  82. .finish {
  83. width: 90%;
  84. margin: 0 auto;
  85. border-radius: 5px;
  86. height: 1.4rem;
  87. background: rgba(37, 143, 252, 1);
  88. color: #fff;
  89. text-align: center;
  90. font-size: 0.6rem;
  91. line-height: 1.4rem;
  92. margin-top: 1rem;
  93. }
  94. }
  95. </style>