(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/register"],{1551:function(e,n,t){"use strict";var i=function(){var e=this,n=e.$createElement;e._self._c},o=[];t.d(n,"a",(function(){return i})),t.d(n,"b",(function(){return o}))},"504c":function(e,n,t){"use strict";var i=t("78e2"),o=t.n(i);o.a},"5bb1":function(e,n,t){"use strict";t.r(n);var i=t("c830"),o=t.n(i);for(var r in i)"default"!==r&&function(e){t.d(n,e,(function(){return i[e]}))}(r);n["default"]=o.a},6381:function(e,n,t){"use strict";t.r(n);var i=t("1551"),o=t("5bb1");for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t("504c");var u=t("5511"),s=Object(u["a"])(o["default"],i["a"],i["b"],!1,null,"c9ab71e8",null);n["default"]=s.exports},"78e2":function(e,n,t){},c830:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("7555"),o=t("b26e"),r=function(){return t.e("components/plugin/list-cell").then(t.bind(null,"1861"))},u=t("90f4"),s={name:"register",components:{TuiListCell:r},data:function(){return{form:{mobile:"",code:"",realName:"",birthday:""},isSend:0,countDown:59,timer:null}},onLoad:function(e){},methods:{getCode:function(){var e=this;if(!this.form.mobile||!this.$util.checkMobile(this.form.mobile))return this.$msg("请输入正确的手机号！"),!1;this.isSend=1,(0,o.sendSms)({type:1,mobile:this.form.mobile}).then((function(n){e.beginCountDown(),e.$msg("发送成功！")})).catch((function(){e.isSend=0,e.$msg("发送失败！")}))},selTimeFn:function(e){this.form.birthday=e.detail.value},confirmFn:function(){var e=this;(0,i.register)(this.form).then((function(n){e.$msg("注册成功！"),setTimeout((function(){e.$util.pageTo("/pages/home/user")}))}))},beginCountDown:function(){var e=this;this.countDown=59,this.timer=setInterval((function(){if(0===e.countDown)return clearInterval(e.timer),void(e.isSend=0);e.countDown-=1}),1e3)},formSubmit:function(e){var n=this,t=[{name:"mobile",rule:["required"],msg:["请输入手机号"]},{name:"code",rule:["required"],msg:["请输入验证码"]},{name:"realName",rule:["required"],msg:["请输入名字"]},{name:"birthday",rule:["required"],msg:["请选择生日"]}],i=e.detail.value,o=u.validation(i,t);o?this.$msg(o):setTimeout((function(){n.confirmFn()}))}}};n.default=s}},[["00b7","common/runtime","common/vendor"]]]);