Commit 43a6b4c3 by 梁建民

js

parent 7a8cfdd1
<template> <template>
<div id="app"> <div id="app">
<keep-alive exclude="newsDetail,wallet,status"> <keep-alive exclude="newsDetail,wallet,status,walletRetrieve">
<router-view class="router-view"></router-view> <router-view class="router-view"></router-view>
</keep-alive> </keep-alive>
</div> </div>
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
<li class="inp-wrap"> <li class="inp-wrap">
<label class="va-m">设置支付密码</label><br> <label class="va-m">设置支付密码</label><br>
<template v-if="showPassword"> <template v-if="showPassword">
<input type="password" placeholder="密码由8~20位字母、数字组合而成" class="va-m inp" v-model="form.password"/> <input type="password" placeholder="密码由6~20位字母、数字组合而成" class="va-m inp" v-model="form.password"/>
</template> </template>
<template v-else> <template v-else>
<input type="text" placeholder="密码由8~20位字母、数字组合而成" class="va-m inp" v-model="form.password"/> <input type="text" placeholder="密码由6~20位字母、数字组合而成" class="va-m inp" v-model="form.password"/>
</template> </template>
<van-icon v-if="showPassword" name="closed-eye" class="va-m f-r" @click="changeShow"/> <van-icon v-if="showPassword" name="closed-eye" class="va-m f-r" @click="changeShow"/>
<van-icon v-else name="eye-o" class="va-m f-r" @click="changeShow"/> <van-icon v-else name="eye-o" class="va-m f-r" @click="changeShow"/>
...@@ -56,13 +56,13 @@ ...@@ -56,13 +56,13 @@
import Vue from 'vue'; import Vue from 'vue';
import {mapState} from 'vuex' import {mapState} from 'vuex'
import Header from '@/views/common/Header.vue'; import Header from '@/views/common/Header.vue';
import { Icon } from 'vant'; import {Icon} from 'vant';
import {productionUrlPc} from '../../api/index'; import {productionUrlPc} from '../../api/index';
Vue.use(Icon); Vue.use(Icon);
export default { export default {
name: 'WalletRetrieve', name: 'walletRetrieve',
data() { data() {
return { return {
title: "找回密码", title: "找回密码",
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
}, },
formError: false, formError: false,
formMsg: '', formMsg: '',
imgCodeVal: productionUrlPc+"public/verify", imgCodeVal: productionUrlPc + "public/verify",
} }
}, },
computed: { computed: {
...@@ -95,18 +95,18 @@ ...@@ -95,18 +95,18 @@
}, },
watch: { watch: {
retieveCountDownFlag(value) { retieveCountDownFlag(value) {
if(value){ if (value) {
this.yzmSend = false; this.yzmSend = false;
this.timeNum(); this.timeNum();
}else{ } else {
this.yzmSend = true; this.yzmSend = true;
} }
}, },
passwordToken(value) { passwordToken(value) {
if(value){ //返回token则验证成功,下一步 if (value) { //返回token则验证成功,下一步
this.step1 = false; this.step1 = false;
this.step2 = true; this.step2 = true;
}else{ } else {
this.step1 = true; this.step1 = true;
this.step2 = false; this.step2 = false;
} }
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
}) })
}, },
confirm() { //确认 confirm() { //确认
var password_reg = new RegExp(/^[a-zA-Z0-9]{8,20}$/); //^表示开始 $表示结束 8~20位字母和数字组合 var password_reg = new RegExp(/^[a-zA-Z0-9]{6,20}$/); //^表示开始 $表示结束 6~20位字母和数字组合
if (!this.form.password) { if (!this.form.password) {
this.formError = true; this.formError = true;
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
if (!password_reg.test(this.form.password)) { if (!password_reg.test(this.form.password)) {
this.formError = true; this.formError = true;
this.formMsg = '亲,密码由8~20位字母、数字组合'; this.formMsg = '亲,密码由6~20位字母、数字组合';
return; return;
} }
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment