(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/register"],{"00b7":function(e,n,t){"use strict";(function(e){t("6cdc");i(t("4a15"));var n=i(t("6381"));function i(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("f3be")["createPage"])},"319f":function(e,n,t){"use strict";var i;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return i}));var r=function(){var e=this,n=e.$createElement;e._self._c},o=[]},"5bb1":function(e,n,t){"use strict";t.r(n);var i=t("d7b9"),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},6381:function(e,n,t){"use strict";t.r(n);var i=t("319f"),r=t("5bb1");for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t("73f2");var u,c=t("0095"),a=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,"6f6c4c30",null,!1,i["a"],u);n["default"]=a.exports},"73f2":function(e,n,t){"use strict";var i=t("e932"),r=t.n(i);r.a},d7b9:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("7555"),r=t("b26e"),o=function(){t.e("components/plugin/list-cell").then(function(){return resolve(t("1861"))}.bind(null,t)).catch(t.oe)},u=t("90f4"),c={name:"register",components:{TuiListCell:o},data:function(){return{form:{mobile:"",code:"",realName:"",birthday:0},isSend:0,countDown:119,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,r.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({url:"/pages/callback/index",query:{pageStatus:6}})}))}))},beginCountDown:function(){var e=this;this.countDown=119,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,r=u.validation(i,t);r?this.$msg(r):setTimeout((function(){n.confirmFn()}))}}};n.default=c},e932:function(e,n,t){}},[["00b7","common/runtime","common/vendor"]]]);