AppSetInfo.2d24b0f6.js 6.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppSetInfo"],{"006b":function(t,e,r){},"2b6b":function(t,e,r){"use strict";var n=r("006b"),o=r.n(n);o.a},3354:function(t,e,r){},5115:function(t,e,r){"use strict";var n=r("3354"),o=r.n(n);o.a},"6e6e":function(t,e,r){"use strict";var n=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)])])},o=[],a={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)}}},u=a,s=(r("5115"),r("2877")),i=Object(s["a"])(u,n,o,!1,null,"61d0e2e4",null);e["a"]=i.exports},b562:function(t,e,r){"use strict";r.d(e,"s",function(){return s}),r.d(e,"m",function(){return i}),r.d(e,"n",function(){return c}),r.d(e,"r",function(){return d}),r.d(e,"e",function(){return f}),r.d(e,"b",function(){return m}),r.d(e,"c",function(){return h}),r.d(e,"o",function(){return p}),r.d(e,"j",function(){return g}),r.d(e,"g",function(){return k}),r.d(e,"h",function(){return C}),r.d(e,"p",function(){return b}),r.d(e,"q",function(){return v}),r.d(e,"l",function(){return B}),r.d(e,"d",function(){return w}),r.d(e,"i",function(){return y}),r.d(e,"f",function(){return $}),r.d(e,"a",function(){return _}),r.d(e,"k",function(){return l});var n=r("4328"),o=r.n(n),a=r("981f").default,u="/api-teacher",s=function(t){return a({url:"/api-auth/usernameLogin",method:"post",data:o.a.stringify(t)})},i=function(t){return a({url:"/api-student/code/sendSms",method:"post",data:o.a.stringify(t)})},c=function(t){return a({url:"/api-auth/smsLogin",method:"post",data:o.a.stringify(t)})},d=function(t){return a({url:"/api-auth/user/setPassword",method:"post",data:o.a.stringify(t)})},l=function(t){return a({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:t})},f=function(t){return a({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:t})},m=function(t){return a({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:o.a.stringify(t)})},h=function(t){return a({url:u+"/courseGroup/createCourseGroup",method:"post",data:t})},p=function(t){return a({url:u+"/sysTenantAccount/get",method:"get",params:t})},g=function(t){return a({url:u+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:t})},b=function(t){return a({url:u+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:t})},v=function(t){return a({url:u+"/tenantEntryActivities/queryPage",method:"get",params:t})},w=function(t){return a({url:u+"/tenantPaymentOrder/createOrder",method:"post",data:o.a.stringify(t)})},y=function(t){return a({url:u+"/teacherOrder/queryByOrderNo",method:"get",params:t})},k=function(t){return a({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})},C=function(t){return a({url:"/api-cms/helpCenterContent/list",method:"get",params:t})},B=function(t){return a({url:"/api-auth/queryUserInfo",method:"get",params:t})},$=function(t){return a({url:u+"/courseReview/getStuAndTeaReview",method:"get",params:t})},_=function(t){return a({url:u+"/courseReview/batchAdd",method:"post",data:t})}},ec81:function(t,e,r){"use strict";r.r(e);var n=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)},o=[],a=r("6e6e"),u=r("b562"),s=r("ff51"),i={name:"register",components:{MHeader:a["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(s["b"])().android||Object(s["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=this,e=this.form;if(e.password.length<6||e.password.length>20)this.$toast("请输入6-20位数字/字母密码");else if(e.password==e.tPassword){if(!this.isClick){this.isClick=!0;var r={username:e.username,password:e.password};Object(u["r"])(r).then(function(e){var r=e.data;t.isClick=!1,200==r.code?t.$router.push({path:"/classDetail",query:{groupId:t.groupId}}):t.$toast(r.msg)})}}else this.$toast("两次输入密码不一致,请重新输入")},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}}},c=i,d=(r("2b6b"),r("2877")),l=Object(d["a"])(c,n,o,!1,null,"2cc7804c",null);e["default"]=l.exports}}]);