(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64c7f1a0"],{"198d":function(e,t,a){"use strict";var s=a("8e57"),i=a.n(s);i.a},7803:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"register"},[a("van-nav-bar",{attrs:{"left-arrow":""},on:{"click-left":e.onClickLeft}}),a("van-tabs",{staticClass:"register-tabs",attrs:{type:"card",animated:""},on:{change:e._change},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[a("van-tab",{attrs:{title:"手机注册"}},[a("van-form",{staticClass:"register-form",on:{submit:e.onSubmit}},[a("van-field",{attrs:{placeholder:"手机号码",rules:[{required:!0,message:"请填写手机号码"}]},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}}),a("van-field",{attrs:{type:"password",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),a("van-field",{attrs:{placeholder:"邀请码(选填)"},model:{value:e.invite,callback:function(t){e.invite=t},expression:"invite"}}),a("div",{staticStyle:{margin:"16px"}},[a("van-button",{attrs:{round:"",block:"",type:"info","native-type":"submit"}},[e._v("注册")])],1)],1)],1),a("van-tab",{attrs:{title:"邮箱注册"}},[a("van-form",{staticClass:"register-form",on:{submit:e.onSubmit}},[a("van-field",{attrs:{placeholder:"邮箱账号",rules:[{required:!0,message:"请填写邮箱账号"}]},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),a("van-field",{attrs:{type:"password",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),a("van-field",{attrs:{placeholder:"邀请码(选填)"},model:{value:e.invite,callback:function(t){e.invite=t},expression:"invite"}}),a("div",{staticStyle:{margin:"16px"}},[a("van-button",{attrs:{round:"",block:"",type:"info","native-type":"submit"}},[e._v("注册")])],1)],1)],1)],1)],1)},i=[],n={name:"register",data:function(){return{phone:"",email:"",password:"",invite:"",active:0}},created:function(){this.$route.query&&(this.invite=this.$route.query.code)},methods:{onClickLeft:function(){this.$router.go(-1)},onSubmit:function(){var e=this;this.$http.user.register({phone:0===this.active&&this.phone,email:1===this.active&&this.email,password:this.password,refcode:this.invite}).then((function(t){var a=t.code,s=t.msg;200===a&&(e.$toast.success(s),e.$router.push("/login"))}))},_change:function(){this.password=""}}},r=n,o=(a("198d"),a("2877")),l=Object(o["a"])(r,s,i,!1,null,"6701f598",null);t["default"]=l.exports},"8e57":function(e,t,a){}}]);
//# sourceMappingURL=chunk-64c7f1a0.fadb1fd3.js.map