1 line
3.0 KiB
JavaScript
1 line
3.0 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/forgetPassword"],{2597:function(e,t,o){"use strict";o.r(t);var n=o("890d"),s=o("38d2");for(var a in s)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return s[e]}))}(a);o("94bc");var d=o("828b"),i=Object(d["a"])(s["default"],n["b"],n["c"],!1,null,"f4bdba46",null,!1,n["a"],void 0);t["default"]=i.exports},"38d2":function(e,t,o){"use strict";o.r(t);var n=o("97d2"),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},"51b8":function(e,t,o){"use strict";(function(e,t){var n=o("47a9");o("6caf");n(o("3240"));var s=n(o("2597"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(s.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"890d":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=[]},"94bc":function(e,t,o){"use strict";var n=o("aff0"),s=o.n(n);s.a},"97d2":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"])},aff0:function(e,t,o){}},[["51b8","common/runtime","common/vendor"]]]); |