(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/register"],{"0053":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("3287"),i={data:function(){return{phone:"",password:"",repassword:"",invitation:"",code:"",time:"",countDown:0}},onLoad:function(){this.invitation=t.getStorageSync("spread")||""},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:{register:function(){var n=this;""!=n.phone?/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.phone)?""!=n.password?""!=n.repassword?n.repassword==n.password?(0,o.register)({account:n.phone,captcha:n.code,password:n.password,spread:this.invitation}).then((function(n){t.showToast({title:"注册成功",duration:2e3,position:"top"}),setTimeout((function(){t.navigateTo({url:"/pages/public/login"})}),1e3)})):n.$api.msg("两次密码不正确"):n.$api.msg("请再次输入密码"):n.$api.msg("请输入密码"):n.$api.msg("请输入正确的手机号"):n.$api.msg("请输入电话号码")},verification:function(){var t=this;if(""!=this.phone){if(!(this.phone.length<11))return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,o.verify)({phone:t.phone,type:"register"}).then((function(t){t.data})).catch((function(t){console.log(t)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},login:function(){t.navigateTo({url:"/pages/public/login"})}}};n.default=i}).call(this,e("543d")["default"])},"34aa":function(t,n,e){"use strict";e.r(n);var o=e("0053"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"5bf4":function(t,n,e){"use strict";e.r(n);var o=e("bcfd"),i=e("34aa");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("a2e9");var r,u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);n["default"]=c.exports},a2e9:function(t,n,e){"use strict";var o=e("f198"),i=e.n(o);i.a},bcfd:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},d397:function(t,n,e){"use strict";(function(t){e("30ba");o(e("66fd"));var n=o(e("5bf4"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},f198:function(t,n,e){}},[["d397","common/runtime","common/vendor"]]]);