(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/register"],{"04a6":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=[]},"28fb":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("3e59");i(e("66fd"));var o=i(e("4f60"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"3f92":function(t,n,e){"use strict";e.r(n);var i=e("bb88"),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},"4f60":function(t,n,e){"use strict";e.r(n);var i=e("04a6"),o=e("3f92");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("a70a");var r=e("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports},9036:function(t,n,e){},a70a:function(t,n,e){"use strict";var i=e("9036"),o=e.n(i);o.a},bb88:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("bde5"),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"])}},[["28fb","common/runtime","common/vendor"]]]);