(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64e12ce3"],{"105a":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"passwordPage"},[n("div",{staticClass:"banner"},[n("div",{staticClass:"headerBox flex between"},[n("span"),n("span",{staticClass:"font14",on:{click:function(e){return t.goEditorPassword()}}},[t._v("忘记密码?")])])]),n("div",[n("span",{staticClass:"font24"},[t._v("修改密码")]),n("div",{staticClass:"font14 mart10"},[t._v("请输入支付密码,以验证身份")]),n("password",{staticClass:"pass",attrs:{len:t.length,source:t.source},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),n("span",{staticClass:"font14"},[t._v("密码为6位数字")]),t.password&&6==t.password.length?n("div",{staticClass:"btn",on:{click:function(e){return t.verifyUserHaspwd()}}},[t._v("\n 完成\n ")]):t._e()],1)])},s=[],a=(n("a481"),n("1dd4")),u=n("76a0"),r=(n("2095"),n("4f49")),o=n("693b"),c={name:"passwordEditor",components:{password:o["a"]},data:function(){return{length:6,password:"",source:"editor"}},mounted:function(){},created:function(){},methods:{verifyUserHaspwd:function(){var t=this;if(!this.password)return Object(u["Toast"])("请输入旧密码");var e={password:Object(a["a"])(this.password)};u["Indicator"].open({text:"加载中...",spinnerType:"fading-circle"}),Object(r["h"])(e).then((function(e){if(u["Indicator"].close(),console.log(e),0!=e.code)return Object(u["Toast"])({message:e.msg,duration:4e3,className:"toastFail"});t.$router.replace({name:"设置密码",path:"/member/setting/password",params:{oldPassword:t.password}})})).catch((function(t){return u["Indicator"].close(),Object(u["Toast"])({message:t.msg,duration:4e3,className:"toastFail"})}))},goEditorPassword:function(){this.$router.push("/member/setting/password/verify")},back:function(){this.$router.go(-1)}}},l=c,p=(n("1a1e"),n("2877")),d=Object(p["a"])(l,i,s,!1,null,null,null);e["default"]=d.exports},"1a1e":function(t,e,n){"use strict";var i=n("418d"),s=n.n(i);s.a},"1b0d":function(t,e,n){"use strict";var i=n("87f1"),s=n.n(i);s.a},2095:function(t,e,n){"use strict";function i(t){var e=new Date(t),n=e.getFullYear(),i=e.getMonth(),s=e.getDate(),a=e.getHours(),u=e.getMinutes(),r=e.getSeconds(),o=n+"-"+(i+1>=10?i+1:"0"+(i+1))+"-"+(s+1<=10?"0"+s:s)+" "+(a+1<=10?"0"+a:a)+":"+(u+1<=10?"0"+u:u)+":"+(r+1<=10?"0"+r:r),c=n+"-"+(i+1>=10?i+1:"0"+(i+1))+"-"+(s+1<=10?"0"+s:s),l=n+"-"+(i+1>=10?i+1:"0"+(i+1))+"-"+(s+1<=10?"0"+s:s)+" "+(a+1<=10?"0"+a:a)+":"+(u+1<=10?"0"+u:u),p={hasTime:o,withoutTime:c,dateTime:l};return p}n.d(e,"a",(function(){return i}))},"418d":function(t,e,n){},"4f49":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return r})),n.d(e,"h",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"e",(function(){return p}));var i=n("fde9");function s(t){return Object(i["a"])({url:"api-yonghu/user/certification/bankcard/list",method:"get",params:t})}function a(t){return Object(i["a"])({url:"api-yonghu/user/certification/bankcard/unbind",method:"post",data:JSON.stringify(t)})}function u(t){return Object(i["a"])({url:"api-yonghu/user/wallet/has-pwd",method:"get",params:t})}function r(t){return Object(i["a"])({url:"api-yonghu/user/wallet/pwd-set",method:"post",data:JSON.stringify(t)})}function o(t){return Object(i["a"])({url:"api-yonghu/user/wallet/pwd-verify",method:"get",params:t})}function c(t){return Object(i["a"])({url:"api-yonghu/user/wallet/pwd-update",method:"post",data:JSON.stringify(t)})}function l(t){return Object(i["a"])({url:"api-yonghu/user/wallet/forget-pwd/certification-verify",method:"get",params:t})}function p(t){return Object(i["a"])({url:"api-yonghu/user/wallet/forget-pwd/update",method:"post",data:JSON.stringify(t)})}},"693b":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card",on:{click:t.toFocus}},[n("div",{staticClass:"group"},t._l(t.len,(function(e,i){return n("div",{key:i,staticClass:"item"},[0==i?n("input",{staticClass:"marr",class:["tixian"==t.source?"iptChange8":"","ios"==t.device?"maxw20":"","ios"==t.device&&"tixian"==t.source?"maxw16":""],staticStyle:{"-webkit-text-security":"disc"},attrs:{maxlength:"1",type:"tel"},domProps:{value:t.input0},on:{input:function(e){return t.handleChange(e,0)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e,0)}}}):t._e(),1==i?n("input",{staticClass:"marr",class:["tixian"==t.source?"iptChange8":"","ios"==t.device?"maxw20":"","ios"==t.device&&"tixian"==t.source?"maxw16":""],staticStyle:{"-webkit-text-security":"disc"},attrs:{maxlength:"1",type:"tel"},domProps:{value:t.input1},on:{input:function(e){return t.handleChange(e,1)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e,1)}}}):t._e(),2==i?n("input",{staticClass:"marr",class:["tixian"==t.source?"iptChange8":"","ios"==t.device?"maxw20":"","ios"==t.device&&"tixian"==t.source?"maxw16":""],staticStyle:{"-webkit-text-security":"disc"},attrs:{maxlength:"1",type:"tel"},domProps:{value:t.input2},on:{input:function(e){return t.handleChange(e,2)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e,2)}}}):t._e(),3==i?n("input",{staticClass:"marr",class:["tixian"==t.source?"iptChange8":"","ios"==t.device?"maxw20":"","ios"==t.device&&"tixian"==t.source?"maxw16":""],staticStyle:{"-webkit-text-security":"disc"},attrs:{maxlength:"1",type:"tel"},domProps:{value:t.input3},on:{input:function(e){return t.handleChange(e,3)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e,3)}}}):t._e(),4==i?n("input",{staticClass:"marr",class:["tixian"==t.source?"iptChange8":"","ios"==t.device?"maxw20":"","ios"==t.device&&"tixian"==t.source?"maxw16":""],staticStyle:{"-webkit-text-security":"disc"},attrs:{maxlength:"1",type:"tel"},domProps:{value:t.input4},on:{input:function(e){return t.handleChange(e,4)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e,4)}}}):t._e(),5==i?n("input",{class:["tixian"==t.source?"iptChange8":"","ios"==t.device?"maxw20":"","ios"==t.device&&"tixian"==t.source?"maxw16":""],staticStyle:{"-webkit-text-security":"disc"},attrs:{maxlength:"1",type:"tel"},domProps:{value:t.input5},on:{input:function(e){return t.handleChange(e,5)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e,5)}}}):t._e(),6==i?n("input",{class:["tixian"==t.source?"iptChange8":"","ios"==t.device?"maxw20":"","ios"==t.device&&"tixian"==t.source?"maxw16":""],staticStyle:{"-webkit-text-security":"disc"},attrs:{maxlength:"1",type:"tel"},domProps:{value:t.input6},on:{input:function(e){return t.handleChange(e,6)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e,6)}}}):t._e()])})),0)])},s=[],a=(n("4917"),n("28a5"),n("ac6a"),n("c5f6"),n("76a0")),u={props:{value:{type:String},len:{type:Number},count:{type:Number},isNull:{type:Number},source:{type:String}},data:function(){return{inputRefGroup:null,input0:"",input1:"",input2:"",input3:"",input4:"",input5:"",input6:"",device:"android"}},watch:{isNull:function(t){if(this.isNull>0)for(var e=0;e<6;e++)this["input".concat(e)]="",this.inputRefGroup[0].focus()}},created:function(){var t=this;this.password=String(this.value),this.password.split("").forEach((function(e,n){t["input".concat(n)]=e})),this.appSource()},mounted:function(){this.inputRefGroup=document.querySelectorAll(".item input"),this.inputRefGroup[this.result.length].focus()},methods:{toFocus:function(){this.inputRefGroup[this.result.length]&&this.inputRefGroup[this.result.length].focus()},handleChange:function(t,e){if("set"==this.source){if(!/^\+?[0-9][0-9]*$/.test(t.target.value))return Object(a["Toast"])("请输入数字密码!");if(this["input".concat(e)]=t.target.value,this.inputRefGroup[e+1])this.inputRefGroup[e+1].focus();else if(this.count<2){this.$emit("confirmPwd",this.result);for(var n=0;n<6;n++)this.handleDelete(t,n),this.inputRefGroup[0].focus()}this.$emit("input",this.result)}else"editor"!=this.source&&"tixian"!=this.source||(this["input".concat(e)]=t.target.value,this.inputRefGroup[e+1]&&this.inputRefGroup[e+1].focus(),this.$emit("input",this.result))},handleDelete:function(t,e){this["input".concat(e)]="",this.inputRefGroup[e]&&e-1>=0&&this.inputRefGroup[e-1].focus(),this.$emit("input",this.result)},appSource:function(){var t=navigator.userAgent,e=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);e?(this.device="ios",this.$bridge.registerhandler("backApp",(function(t,e){e(t)})),this.$bridge.registerhandler("InsuranceSuccess",(function(t,e){e(t)}))):this.device="andriod"}},computed:{result:function(){return this.input0+this.input1+this.input2+this.input3+this.input4+this.input5+this.input6}}},r=u,o=(n("1b0d"),n("2877")),c=Object(o["a"])(r,i,s,!1,null,"29254e88",null);e["a"]=c.exports},"87f1":function(t,e,n){}}]);