(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/register"],{3594:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("3e39");i(e("66fd"));var o=i(e("ac1c"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"42d4":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("ec28"),o={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,i.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,i.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=o}).call(this,e("543d")["default"])},"5eeb":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},o=[]},"77a7":function(t,n,e){},ac1c:function(t,n,e){"use strict";e.r(n);var i=e("5eeb"),o=e("f7f4");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("c9e4");var c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports},c9e4:function(t,n,e){"use strict";var i=e("77a7"),o=e.n(i);o.a},f7f4:function(t,n,e){"use strict";e.r(n);var i=e("42d4"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a}},[["3594","common/runtime","common/vendor"]]]);