webpackJsonp([16],{"h4/0":function(t,e){},lSrO:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("TWFi"),s=o("gyMJ"),i=o("vMJZ"),c={components:{AoNav:n.a},data:function(){return{btn_get_code2:null,btn_get_code:"",code_unit:"",sendCodeFlag:!1,form:{phone:"",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.phone?this.form.code?0!=this.r_code&&this.r_code==this.form.code?Object(i.f)(this.form).then(function(e){t.$store.dispatch("updateInfo",{phone:t.form.phone}),t.$router.back(-1)}):this.error("code_no_equality"):this.error("code_no_data"):this.error("phone_no_data")},getCode:function(){var t=this;this.sendCodeFlag||(this.sendCodeFlag=!0,Object(s.b)({type:"bindphone",account:this.form.phone}).then(function(e){var o=e.code,n=void 0===o?0:o;t.r_code=n,t.btn_get_code=60+t.code_unit;var s=60,i=setInterval(function(){s--,t.btn_get_code=s+t.code_unit,0===s&&(clearInterval(i),t.btn_get_code=t.btn_get_code2,t.sendCodeFlag=!1)},1e3)}).catch(function(){t.sendCodeFlag=!1}))}}},a={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"forgetpwd"},[o("ao-nav",{attrs:{"ao-style":{background:"#1b2945"}}}),t._v(" "),o("div",{staticClass:"content"},[o("div",{staticClass:"content-bg"},[o("div",{staticClass:"content-box"},[o("div",{staticClass:"content-list"},[o("div",{staticClass:"title"},[t._v(t._s(t.$t("bindphone.title")))]),t._v(" "),o("div",{staticClass:"account"},[o("el-form",{ref:"loginForm",attrs:{model:t.form}},[o("el-form-item",{attrs:{prop:"checkPass"}},[o("el-row",{staticClass:"text"},[t._v(t._s(t.$t("bindphone.phone_text")))]),t._v(" "),o("el-input",{staticClass:"el-input-row",attrs:{type:"number","auto-complete":"off"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),t._v(" "),o("el-form-item",{attrs:{prop:"checkPass"}},[o("el-row",{staticClass:"text"},[t._v(t._s(t.$t("bindmpwd.code_text")))]),t._v(" "),o("el-row",{staticClass:"el-input-border",staticStyle:{display:"flex"}},[o("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(" "),o("div",{staticClass:"el-input-choose el-input-choose-code"},[o("div",{staticClass:"el-value",on:{click:t.getCode}},[t._v(t._s(t.btn_get_code))])])],1)],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v(t._s(t.$t("bindmpwd.bindmpwd_btn")))])],1)],1)],1)])])])])],1)},staticRenderFns:[]};var r=o("C7Lr")(c,a,!1,function(t){o("h4/0")},null,null);e.default=r.exports}});
//# sourceMappingURL=16.28b410dccc3ddaca2fc4.js.map