webpackJsonp([19],{"+N0U":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s("TWFi"),a=s("gyMJ"),i=s("vMJZ"),n={components:{AoNav:o.a},data:function(){return{btn_get_code2:null,btn_get_code:"",code_unit:"",sendCodeFlag:!1,form:{password_again:"",password:"",code:""}}},mounted:function(){this.btn_get_code2=this.$t("bindmpwd.code_btn"),this.btn_get_code=this.btn_get_code2,this.code_unit=this.$t("bindmpwd.code_unit")},methods:{error:function(t){this.$message({message:this.$t("bindmpwd."+t),type:"error"})},save:function(){var t=this;this.form.password&&this.form.password_again?this.form.password==this.form.password_again?this.form.code?0!=this.r_code&&this.r_code==this.form.code?Object(i.f)(this.form).then(function(e){t.$store.dispatch("updateTP",1),t.$router.back(-1)}):this.error("code_no_equality"):this.error("code_no_data"):this.error("password_no_equality"):this.error("password_no_data")},getCode:function(){var t=this;this.sendCodeFlag||(this.sendCodeFlag=!0,Object(a.b)({type:"bindmpwd"}).then(function(e){var s=e.code,o=void 0===s?0:s;t.r_code=o,t.btn_get_code=60+t.code_unit;var a=60,i=setInterval(function(){a--,t.btn_get_code=a+t.code_unit,0===a&&(clearInterval(i),t.btn_get_code=t.btn_get_code2,t.sendCodeFlag=!1)},1e3)}).catch(function(){t.sendCodeFlag=!1}))}}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"forgetpwd"},[s("ao-nav",{attrs:{"ao-style":{background:"#1b2945"}}}),t._v(" "),s("div",{staticClass:"content"},[s("div",{staticClass:"content-bg"},[s("div",{staticClass:"content-box"},[s("div",{staticClass:"content-list"},[s("div",{staticClass:"title"},[t._v(t._s(t.$t("bindmpwd.title")))]),t._v(" "),s("div",{staticClass:"account"},[s("el-form",{ref:"loginForm",attrs:{model:t.form}},[s("el-form-item",{attrs:{prop:"checkPass"}},[s("el-row",{staticClass:"text"},[t._v(t._s(t.$t("bindmpwd.password_text")))]),t._v(" "),s("el-input",{staticClass:"el-input-row",attrs:{type:"password","auto-complete":"off"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),s("el-form-item",{attrs:{prop:"checkPass"}},[s("el-row",{staticClass:"text"},[t._v(t._s(t.$t("bindmpwd.password_again_text")))]),t._v(" "),s("el-input",{staticClass:"el-input-row",attrs:{type:"password","auto-complete":"off"},model:{value:t.form.password_again,callback:function(e){t.$set(t.form,"password_again",e)},expression:"form.password_again"}})],1),t._v(" "),s("el-form-item",{attrs:{prop:"checkPass"}},[s("el-row",{staticClass:"text"},[t._v(t._s(t.$t("bindmpwd.code_text")))]),t._v(" "),s("el-row",{staticClass:"el-input-border",staticStyle:{display:"flex"}},[s("el-input",{staticClass:"el-input-row",attrs:{type:"text","auto-complete":"off"},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}}),t._v(" "),s("div",{staticClass:"el-input-choose el-input-choose-code"},[s("div",{staticClass:"el-value",on:{click:t.getCode}},[t._v(t._s(t.btn_get_code))])])],1)],1),t._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v(t._s(t.$t("bindmpwd.bindmpwd_btn")))])],1)],1)],1)])])])])],1)},staticRenderFns:[]};var d=s("C7Lr")(n,r,!1,function(t){s("4zey")},null,null);e.default=d.exports},"4zey":function(t,e){}});
//# sourceMappingURL=19.a8bbd8626df72bdbf295.js.map