(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppSetInfo"],{"4dbb":function(t,e,r){},"61d5":function(t,e,r){"use strict";var a=r("4dbb"),n=r.n(a);n.a},"6e6e":function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},n=[],s={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},o=s,u=(r("d133"),r("2877")),i=Object(u["a"])(o,a,n,!1,null,"0e835508",null);e["a"]=i.exports},bb2c:function(t,e,r){},d133:function(t,e,r){"use strict";var a=r("bb2c"),n=r.n(a);n.a},ec81:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"register"},[t.headerStatus?r("m-header"):t._e(),r("van-cell-group",{attrs:{border:!1}},[r("van-field",{attrs:{border:!1,type:"text",label:"您的用户名",placeholder:"请输入用户名"},on:{blur:t.codeBlur},model:{value:t.form.username,callback:function(e){t.$set(t.form,"username",e)},expression:"form.username"}}),r("van-field",{attrs:{maxlength:"20",border:!1,type:"password",label:"设置登录密码",placeholder:"请输入密码"},on:{blur:t.codeBlur},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),r("van-field",{attrs:{maxlength:"20",border:!1,type:"password",label:"再次输入登录密码",placeholder:"请输入密码"},on:{blur:t.codeBlur},model:{value:t.form.tPassword,callback:function(e){t.$set(t.form,"tPassword",e)},expression:"form.tPassword"}}),r("van-button",{attrs:{round:"",size:"large"},on:{click:t.onCodeLogin}},[t._v("登录")])],1)],1)},n=[],s=r("a34a"),o=r.n(s),u=r("6e6e"),i=r("b562"),c=r("ff51");function l(t,e,r,a,n,s,o){try{var u=t[s](o),i=u.value}catch(c){return void r(c)}u.done?e(i):Promise.resolve(i).then(a,n)}function d(t){return function(){var e=this,r=arguments;return new Promise(function(a,n){var s=t.apply(e,r);function o(t){l(s,a,n,o,u,"next",t)}function u(t){l(s,a,n,o,u,"throw",t)}o(void 0)})}}var h={name:"register",components:{MHeader:u["a"]},data:function(){return{headerStatus:!0,groupId:this.$route.query.groupId,countDownStatus:!0,codeText:"获取验证码",countDownTime:12e4,form:{username:null,gender:1,password:null,tPassword:null},isClick:!1}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),Object(c["b"])().android||Object(c["b"])().iPhone?this.headerStatus=!1:document.title="注册"},methods:{codeBlur:function(){setTimeout(function(){var t=document.documentElement.scrollTop||document.body.scrollTop||0;window.scrollTo(0,Math.max(t-1,0))},100)},onCodeLogin:function(){var t=d(o.a.mark(function t(){var e,r,a,n=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.form,r=/^[\u4E00-\u9FA5]+$/,e.username){t.next=7;break}return this.$toast("请输入用户名"),t.abrupt("return");case 7:if(r.test(e.username)){t.next=12;break}return this.$toast("用户名必须为中文"),t.abrupt("return");case 12:if(!(e.username.length<2||e.username.length>15)){t.next=15;break}return this.$toast("用户名必须为2~15个字"),t.abrupt("return");case 15:if(!(!e.password||e.password&&(e.password.length<6||e.password.length>20))){t.next=18;break}return this.$toast("请输入6-20位数字/字母密码"),t.abrupt("return");case 18:if(e.password==e.tPassword){t.next=21;break}return this.$toast("两次输入密码不一致,请重新输入"),t.abrupt("return");case 21:if(!this.isClick){t.next=23;break}return t.abrupt("return");case 23:return this.isClick=!0,a={username:e.username,password:e.password},t.next=27,Object(i["s"])(a).then(function(t){var e=t.data;n.isClick=!1,200==e.code?n.$router.push({path:"/classDetail",query:{groupId:n.groupId}}):n.$toast(e.msg)});case 27:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onFinished:function(){this.countDownStatus=!0,this.$refs.countdown.reset()},checkPhone:function(t){var e=!0;return/^1(3|4|5|6|7|8|9)\d{9}$/.test(t)||(this.$toast("手机号输入有误"),e=!1),e}}},f=h,p=(r("61d5"),r("2877")),m=Object(p["a"])(f,a,n,!1,null,"1902597b",null);e["default"]=m.exports}}]);