(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/register"],{101:function(n,t,e){"use strict";e.r(t);var i=e(102),r=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=r.a},102:function(n,t,e){},94:function(n,t,e){"use strict";(function(n,t){var i=e(4);e(26);i(e(25));var r=i(e(95));n.__webpack_require_UNI_MP_PLUGIN__=e,t(r.default)}).call(this,e(1)["default"],e(2)["createPage"])},95:function(n,t,e){"use strict";e.r(t);var i=e(96),r=e(98);for(var o in r)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(o);e(101);var a,u=e(35),c=Object(u["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],a);c.options.__file="pages/public/register.vue",t["default"]=c.exports},96:function(n,t,e){"use strict";e.r(t);var i=e(97);e.d(t,"render",(function(){return i["render"]})),e.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(t,"components",(function(){return i["components"]}))},97:function(n,t,e){"use strict";var i;e.r(t),e.d(t,"render",(function(){return r})),e.d(t,"staticRenderFns",(function(){return a})),e.d(t,"recyclableRender",(function(){return o})),e.d(t,"components",(function(){return i}));var r=function(){var n=this,t=n.$createElement;n._self._c},o=!1,a=[];r._withStripped=!0},98:function(n,t,e){"use strict";e.r(t);var i=e(99),r=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=r.a},99:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e(100),r={data:function(){return{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.password?""!=t.repassword?t.repassword==t.password?(0,i.register)({account:t.phone,captcha:t.code,password:t.password,spread:this.invitation}).then((function(t){n.showToast({title:"注册成功",duration:2e3,position:"top"}),setTimeout((function(){n.navigateTo({url:"/pages/public/login"})}),1e3)})):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=r}).call(this,e(2)["default"])}},[[94,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/public/register.js.map