(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/forgetPassword"],{"7d17":function(e,t,o){},8611:function(e,t,o){"use strict";(function(e,t){var n=o("47a9");o("6c4c");n(o("3240"));var s=n(o("c37f"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(s.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"994a":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{phone:"",code:"",password:"",password2:"",disabled:!1,second:60,value:1,type:""}},onLoad:function(e){this.type=e.type},methods:{checkboxChange:function(e){this.value=e.detail.value.length?e.detail.value[0]:"0"},handleTelLogin:function(){var t=this,o=-1!==t.phone.indexOf("@");if(0!=t.value)if(o||/^1[3456789]\d{9}$/.test(t.phone))if(!o||/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(t.phone))if(t.code)if(t.password)if(t.password2){if(t.password2==t.password){var n={data:t.phone,password:t.password,c_password:t.password2,code:t.code},s="register"==t.type?t.$model.getregister(n):t.$model.getResetPassword(n);return s.then((function(o){console.log("注册",o),0==o.code?(e.setStorageSync("token",o.data.token),e.setStorageSync("aan_id",o.data.aan_id),t.$tools.msg("设置成功,进入程序中"),setTimeout((function(){e.reLaunch({url:"/pages/index/index"})}),1e3)):t.$tools.msg(o.msg)})).catch((function(e){}))}t.$tools.msg("请确认两次密码填写一致")}else t.$tools.msg("请确认密码");else t.$tools.msg("请填写密码");else t.$tools.msg("请填写验证码");else t.$tools.msg("请输入正确的邮箱");else t.$tools.msg("请输入正确的手机号");else t.$tools.msg("请先确认勾选协议")},handleCode:function(){var e=this,t=-1!==e.phone.indexOf("@");t||/^1[3456789]\d{9}$/.test(e.phone)?!t||/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(e.phone)?e.$model.getSendCode({data:e.phone,type:e.type}).then((function(t){if(console.log(t),0==t.code){e.disabled=!0;var o=setInterval((function(){--e.second}),1e3);setTimeout((function(){clearInterval(o),e.disabled=!1,e.second=60}),6e4)}else e.$tools.msg(t.msg)})).catch((function(e){})):e.$tools.msg("请输入正确的邮箱"):e.$tools.msg("请输入正确的手机号")},handlexieyi:function(){}}};t.default=o}).call(this,o("df3c")["default"])},c17a:function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},s=[]},c37f:function(e,t,o){"use strict";o.r(t);var n=o("c17a"),s=o("fc5d");for(var a in s)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return s[e]}))}(a);o("dd0e");var d=o("828b"),c=Object(d["a"])(s["default"],n["b"],n["c"],!1,null,"3f4f6a2c",null,!1,n["a"],void 0);t["default"]=c.exports},dd0e:function(e,t,o){"use strict";var n=o("7d17"),s=o.n(n);s.a},fc5d:function(e,t,o){"use strict";o.r(t);var n=o("994a"),s=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(a);t["default"]=s.a}},[["8611","common/runtime","common/vendor"]]]);