Commit ed335858 by 梁建民

js

parent 2fea97f4
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
<div class="verify-content"> <div class="verify-content">
<ul class="form-wrap"> <ul class="form-wrap">
<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="请输入支付密码" class="va-m inp" v-model="form.password"/> <input type="password" placeholder="请输入支付密码" class="va-m inp" v-model="form.password"/>
</template> </template>
<template v-else> <template v-else>
<input type="text" placeholder="请输入支付密码" class="va-m inp" v-model="form.password"/> <input type="text" placeholder="请输入支付密码" 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"/>
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
var password_reg = new RegExp(/^[a-zA-Z0-9]{6,20}$/); //^表示开始 $表示结束 8~20位字母和数字组合 var password_reg = new RegExp(/^[a-zA-Z0-9]{6,20}$/); //^表示开始 $表示结束 8~20位字母和数字组合
if (!this.form.password) { if (!this.form.password) {
Toast({ Toast({
message: '亲,请输入支付密码', message: '亲,请输入支付密码',
duration: 2000 duration: 2000
}); });
return; return;
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
var password_reg = new RegExp(/^[a-zA-Z0-9]{6,20}$/); //^表示开始 $表示结束 8~20位字母和数字组合 var password_reg = new RegExp(/^[a-zA-Z0-9]{6,20}$/); //^表示开始 $表示结束 8~20位字母和数字组合
if (!this.form.password) { if (!this.form.password) {
this.formError = true; this.formError = true;
this.formMsg = '亲,请输入支付密码'; this.formMsg = '亲,请输入支付密码';
return; return;
} }
......
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cea6557a"],{"131e":function(e,t,o){},"2b4e":function(e,t,o){"use strict";var a=o("131e"),s=o.n(a);s.a},"71d7":function(e,t,o){var a=o("5b0f"),s=o("6c67"),r=o("78a6").f,i=o("38f8").f,n=o("e621"),c=o("7a14"),m=a.RegExp,f=m,l=m.prototype,d=/a/g,u=/a/g,v=new m(d)!==d;if(o("d9cf")&&(!v||o("03fd")(function(){return u[o("e1be")("match")]=!1,m(d)!=d||m(u)==u||"/a/i"!=m(d,"i")}))){m=function(e,t){var o=this instanceof m,a=n(e),r=void 0===t;return!o&&a&&e.constructor===m&&r?e:s(v?new f(a&&!r?e.source:e,t):f((a=e instanceof m)?e.source:e,a&&r?c.call(e):t),o?this:l,m)};for(var p=function(e){e in m||r(m,e,{configurable:!0,get:function(){return f[e]},set:function(t){f[e]=t}})},w=i(f),h=0;w.length>h;)p(w[h++]);l.constructor=m,m.prototype=l,o("c787")(a,"RegExp",m)}o("0384")("RegExp")},bdad:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-verify"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{staticClass:"verify-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("原支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请输入原支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入原支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{directives:[{name:"show",rawName:"v-show",value:e.verifyShowImgCode,expression:"verifyShowImgCode"}],staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("安全手机:"+e._s(e.walletInfoData.safe_mobile))]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])])],1)},s=[],r=(o("71d7"),o("bd31")),i=o("1cc5"),n=o("52c1"),c=o("57af"),m=o("01c5"),f=o("365c");i["a"].use(m["e"]);var l={name:"WalletVerify",data:function(){return{title:"验证身份",meaushow:!0,showPassword:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",form:{verifyCode:"",imgCode:"",password:""},formError:!1,formMsg:"",imgCodeVal:f["a"]+"public/verify"}},computed:Object(r["a"])({},Object(n["b"])({walletInfoData:function(e){return e.wallet.walletInfoData},verifyShowImgCode:function(e){return e.wallet.verifyShowImgCode},verifyCountDownFlag:function(e){return e.wallet.verifyCountDownFlag}})),watch:{verifyCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0}},created:function(){this.$store.dispatch({type:"getWalletInfo"})},methods:{changeShow:function(){this.showPassword=!this.showPassword},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=f["a"]+"public/verify?"+(new Date).getTime()},getCode:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);this.form.password?e.test(this.form.password)?this.$store.dispatch({type:"sendSafesms",imgCode:this.form.imgCode}):Object(m["q"])({message:"亲,密码由6~20位字母、数字组合",duration:2e3}):Object(m["q"])({message:"亲,请输入原支付密码",duration:2e3})},next:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.verifyCode?(this.formError=!1,void this.$store.dispatch({type:"verifySafeMobile",verify_code:this.form.verifyCode,pay_password:this.form.password})):(this.formError=!0,void(this.formMsg="亲,请输入验证码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入原支付密码"))}},components:{Header:c["a"]}},d=l,u=(o("2b4e"),o("fc05")),v=Object(u["a"])(d,a,s,!1,null,"bc0ae756",null);t["default"]=v.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d83869cc"],{"17a2":function(e,t,o){"use strict";var a=o("809d"),s=o.n(a);s.a},"71d7":function(e,t,o){var a=o("5b0f"),s=o("6c67"),r=o("78a6").f,i=o("38f8").f,n=o("e621"),c=o("7a14"),m=a.RegExp,f=m,l=m.prototype,d=/a/g,u=/a/g,v=new m(d)!==d;if(o("d9cf")&&(!v||o("03fd")(function(){return u[o("e1be")("match")]=!1,m(d)!=d||m(u)==u||"/a/i"!=m(d,"i")}))){m=function(e,t){var o=this instanceof m,a=n(e),r=void 0===t;return!o&&a&&e.constructor===m&&r?e:s(v?new f(a&&!r?e.source:e,t):f((a=e instanceof m)?e.source:e,a&&r?c.call(e):t),o?this:l,m)};for(var p=function(e){e in m||r(m,e,{configurable:!0,get:function(){return f[e]},set:function(t){f[e]=t}})},w=i(f),h=0;w.length>h;)p(w[h++]);l.constructor=m,m.prototype=l,o("c787")(a,"RegExp",m)}o("0384")("RegExp")},"809d":function(e,t,o){},bdad:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-verify"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{staticClass:"verify-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请输入支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{directives:[{name:"show",rawName:"v-show",value:e.verifyShowImgCode,expression:"verifyShowImgCode"}],staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("安全手机:"+e._s(e.walletInfoData.safe_mobile))]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])])],1)},s=[],r=(o("71d7"),o("bd31")),i=(o("9f07"),o("0964"),o("1cc5")),n=o("52c1"),c=o("57af"),m=o("01c5"),f=o("365c");i["a"].use(m["e"]);var l={name:"WalletVerify",data:function(){return{title:"验证身份",meaushow:!0,showPassword:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",form:{verifyCode:"",imgCode:"",password:""},formError:!1,formMsg:"",imgCodeVal:f["a"]+"public/verify"}},computed:Object(r["a"])({},Object(n["b"])({walletInfoData:function(e){return e.wallet.walletInfoData},verifyShowImgCode:function(e){return e.wallet.verifyShowImgCode},verifyCountDownFlag:function(e){return e.wallet.verifyCountDownFlag}})),watch:{verifyCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0}},created:function(){this.$store.dispatch({type:"getWalletInfo"})},methods:{changeShow:function(){this.showPassword=!this.showPassword},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=f["a"]+"public/verify?"+(new Date).getTime()},getCode:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);this.form.password?e.test(this.form.password)?this.$store.dispatch({type:"sendSafesms",imgCode:this.form.imgCode}):Object(m["q"])({message:"亲,密码由6~20位字母、数字组合",duration:2e3}):Object(m["q"])({message:"亲,请输入支付密码",duration:2e3})},next:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.verifyCode?(this.formError=!1,void this.$store.dispatch({type:"verifySafeMobile",verify_code:this.form.verifyCode,pay_password:this.form.password})):(this.formError=!0,void(this.formMsg="亲,请输入验证码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入支付密码"))}},components:{Header:c["a"]}},d=l,u=(o("17a2"),o("fc05")),v=Object(u["a"])(d,a,s,!1,null,"3f338f56",null);t["default"]=v.exports}}]);
\ No newline at end of file
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