pswSetting.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <div class="psw-box">
  3. <back-bar :title="$t('psw.setPsw')" v-if="meechatType=='h5'">
  4. <el-button type="primary" class="btn-comfirm">{{$t('public.complete')}}</el-button>
  5. </back-bar>
  6. <div class="box-hd" v-else>
  7. <h2>{{$t('psw.setPsw')}}</h2>
  8. </div>
  9. <div class="box-bd">
  10. <p class="add">{{$t('psw.pswAdd')}}</p>
  11. <form action>
  12. <div class="f-row">
  13. <label>{{$t('psw.account')}}</label>
  14. <p>meechatseiya</p>
  15. </div>
  16. <div class="f-row">
  17. <label>{{$t('psw.oldPsw')}}</label>
  18. <input type="password" :placeholder="$t('psw.oldPswTip')" autocomplete="off">
  19. </div>
  20. <div class="f-row">
  21. <label>{{$t('psw.newPsw')}}</label>
  22. <input type="password" :placeholder="$t('psw.newPswTip')" autocomplete="off">
  23. </div>
  24. <div class="f-row">
  25. <label>{{$t('psw.comfirmPsw')}}</label>
  26. <input type="password" :placeholder="$t('psw.comfirmPswTip')" autocomplete="off">
  27. </div>
  28. </form>
  29. <p class="tip">{{$t('psw.lenTip')}}</p>
  30. </div>
  31. <div class="box-ft" v-if="meechatType!='h5'">
  32. <el-button>{{$t('public.cancel')}}</el-button>
  33. <el-button type="primary">{{$t('public.confirm')}}</el-button>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. import Vue from 'vue'
  39. import backBar from '@/components/backBar'
  40. import { Button } from 'element-ui'
  41. import { getMeechatType } from '@/util/util'
  42. Vue.component(Button.name, Button)
  43. export default {
  44. components: {
  45. backBar
  46. },
  47. data () {
  48. return {
  49. meechatType: getMeechatType(), // meechat版本
  50. oldPsw: '', // 旧密码
  51. newPsw: '', // 新密码
  52. comfirmPsw: '' // 确认密码
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .psw-box {
  59. font-size: 14px;
  60. width: 284px;
  61. text-align: left;
  62. }
  63. .box-hd {
  64. h2 {
  65. color: #333333;
  66. font-weight: 700;
  67. text-align: center;
  68. }
  69. }
  70. .box-bd {
  71. padding: 20px 6px 30px;
  72. .add {
  73. color: #999999;
  74. line-height: 22px;
  75. overflow: hidden;
  76. }
  77. form {
  78. border-top: 1px solid #f1f1f1;
  79. border-bottom: 1px solid #f1f1f1;
  80. padding: 20px 0;
  81. margin: 30px 0;
  82. }
  83. }
  84. .box-ft {
  85. text-align: right;
  86. }
  87. .f-row {
  88. display: flex;
  89. line-height: 30px;
  90. margin-bottom: 4px;
  91. label {
  92. width: 120px;
  93. font-weight: 700;
  94. }
  95. p {
  96. flex: 1;
  97. overflow: hidden;
  98. }
  99. input {
  100. flex: 1;
  101. border: 0;
  102. background: transparent;
  103. outline: none;
  104. padding-left: 10px;
  105. &:focus {
  106. border-color: transparent;
  107. background-color: #efefef;
  108. box-sizing: border-box;
  109. }
  110. }
  111. }
  112. .h5-wrap {
  113. .psw-box {
  114. font-size: px2rem(28);
  115. width: auto;
  116. }
  117. .box-bd {
  118. padding: 0;
  119. .add {
  120. line-height: px2rem(42);
  121. padding: px2rem(48) px2rem(24) 0;
  122. }
  123. form {
  124. padding: px2rem(20) px2rem(24);
  125. margin: px2rem(36) 0;
  126. }
  127. .tip {
  128. padding: 0 px2rem(24);
  129. color: #999;
  130. }
  131. }
  132. .f-row {
  133. label {
  134. width: px2rem(350);
  135. font-weight: normal;
  136. }
  137. }
  138. .btn-comfirm{
  139. position: absolute;
  140. top: px2rem(14);
  141. right: px2rem(10);
  142. background-color: #279bf3;
  143. height: px2rem(58);
  144. line-height: px2rem(58);
  145. padding: 0 px2rem(26);
  146. font-size: px2rem(30);
  147. color: #ffffff;
  148. border-radius: 4px;
  149. }
  150. }
  151. </style>