(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/register"],{"0122":function(n,t,e){},"1b24":function(n,t,e){"use strict";e.r(t);var i=e("737f"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);t["default"]=o.a},"2c1c":function(n,t,e){"use strict";e.r(t);var i=e("6928"),o=e("1b24");for(var a in o)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(a);e("49ee");var r=e("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=s.exports},"49ee":function(n,t,e){"use strict";var i=e("0122"),o=e.n(i);o.a},6048:function(n,t,e){"use strict";(function(n,t){var i=e("4ea4");e("2e1c");i(e("66fd"));var o=i(e("2c1c"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},6928:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var i=function(){var n=this.$createElement;this._self._c},o=[]},"737f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e("0c0e"),o={data:function(){return{username:"",phone:"",password:"",repassword:"",invitation:"",code:"",time:"",countDown:0}},onLoad:function(){this.invitation=n.getStorageSync("spread")||""},watch:{countDown:function(n){0==n&&clearInterval(this.time)}},methods:{register:function(){var t=this;""!=t.phone?/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.phone)?""!=t.username?""!=t.password?""!=t.repassword?t.repassword==t.password?(0,i.register)({username:t.username,mobile:t.phone,password:t.password}).then((function(t){n.showToast({title:"注册成功",duration:2e3,position:"top",icon:"none"}),setTimeout((function(){n.navigateTo({url:"/pages/public/login"})}),1e3)})):t.$api.msg("两次密码不正确"):t.$api.msg("请再次输入密码"):t.$api.msg("请输入密码"):t.$api.msg("请输入用户名"):t.$api.msg("请输入正确的手机号"):t.$api.msg("请输入电话号码")},verification:function(){var n=this;if(""!=this.phone){if(!(this.phone.length<11))return!(n.countDown>0)&&(n.countDown=60,n.time=setInterval((function(){n.countDown--}),1e3),void(0,i.verify)({phone:n.phone,type:"register"}).then((function(n){n.data})).catch((function(n){console.log(n)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},login:function(){n.navigateTo({url:"/pages/public/login"})}}};t.default=o}).call(this,e("543d")["default"])}},[["6048","common/runtime","common/vendor"]]]);