123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <template>
- <div class="psw-box">
- <back-bar :title="$t('psw.setPsw')" v-if="meechatType=='h5'">
- <el-button type="primary" class="btn-comfirm">{{$t('public.complete')}}</el-button>
- </back-bar>
- <div class="box-hd" v-else>
- <h2>{{$t('psw.setPsw')}}</h2>
- </div>
- <div class="box-bd">
- <p class="add">{{$t('psw.pswAdd')}}</p>
- <form action>
- <div class="f-row">
- <label>{{$t('psw.account')}}</label>
- <p>meechatseiya</p>
- </div>
- <div class="f-row">
- <label>{{$t('psw.oldPsw')}}</label>
- <input type="password" :placeholder="$t('psw.oldPswTip')" autocomplete="off">
- </div>
- <div class="f-row">
- <label>{{$t('psw.newPsw')}}</label>
- <input type="password" :placeholder="$t('psw.newPswTip')" autocomplete="off">
- </div>
- <div class="f-row">
- <label>{{$t('psw.comfirmPsw')}}</label>
- <input type="password" :placeholder="$t('psw.comfirmPswTip')" autocomplete="off">
- </div>
- </form>
- <p class="tip">{{$t('psw.lenTip')}}</p>
- </div>
- <div class="box-ft" v-if="meechatType!='h5'">
- <el-button>{{$t('public.cancel')}}</el-button>
- <el-button type="primary">{{$t('public.confirm')}}</el-button>
- </div>
- </div>
- </template>
- <script>
- import Vue from 'vue'
- import backBar from '@/components/backBar'
- import { Button } from 'element-ui'
- import { getMeechatType } from '@/util/util'
- Vue.component(Button.name, Button)
- export default {
- components: {
- backBar
- },
- data () {
- return {
- meechatType: getMeechatType(), // meechat版本
- oldPsw: '', // 旧密码
- newPsw: '', // 新密码
- comfirmPsw: '' // 确认密码
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .psw-box {
- font-size: 14px;
- width: 284px;
- text-align: left;
- }
- .box-hd {
- h2 {
- color: #333333;
- font-weight: 700;
- text-align: center;
- }
- }
- .box-bd {
- padding: 20px 6px 30px;
- .add {
- color: #999999;
- line-height: 22px;
- overflow: hidden;
- }
- form {
- border-top: 1px solid #f1f1f1;
- border-bottom: 1px solid #f1f1f1;
- padding: 20px 0;
- margin: 30px 0;
- }
- }
- .box-ft {
- text-align: right;
- }
- .f-row {
- display: flex;
- line-height: 30px;
- margin-bottom: 4px;
- label {
- width: 120px;
- font-weight: 700;
- }
- p {
- flex: 1;
- overflow: hidden;
- }
- input {
- flex: 1;
- border: 0;
- background: transparent;
- outline: none;
- padding-left: 10px;
- &:focus {
- border-color: transparent;
- background-color: #efefef;
- box-sizing: border-box;
- }
- }
- }
- .h5-wrap {
- .psw-box {
- font-size: px2rem(28);
- width: auto;
- }
- .box-bd {
- padding: 0;
- .add {
- line-height: px2rem(42);
- padding: px2rem(48) px2rem(24) 0;
- }
- form {
- padding: px2rem(20) px2rem(24);
- margin: px2rem(36) 0;
- }
- .tip {
- padding: 0 px2rem(24);
- color: #999;
- }
- }
- .f-row {
- label {
- width: px2rem(350);
- font-weight: normal;
- }
- }
- .btn-comfirm{
- position: absolute;
- top: px2rem(14);
- right: px2rem(10);
- background-color: #279bf3;
- height: px2rem(58);
- line-height: px2rem(58);
- padding: 0 px2rem(26);
- font-size: px2rem(30);
- color: #ffffff;
- border-radius: 4px;
- }
- }
- </style>
|