(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a1652826"],{"1af3":function(e,t,n){"use strict";n("86fd")},"4ee0":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("3835"),o=(n("96cf"),n("1da1")),a=n("d4ec"),s=n("bee2"),i=n("8ce4"),c=n("7b67");function l(e){return u.apply(this,arguments)}function u(){return u=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(i["a"])(c["b"]+"admin/school/list","get",t));case 1:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}var d=n("2ca2"),p=(n("5c8a"),function(){function e(){Object(a["a"])(this,e)}return Object(s["a"])(e,null,[{key:"getList",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n,o){var a,s,i,c,u,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={page:t,size:n},a=Object.assign(a,o),e.next=4,l(a);case 4:if(s=e.sent,i=Object(r["a"])(s,1),c=i[0],0!==n){e.next=11;break}return e.abrupt("return",c.data);case 11:return u=d["a"].generateListMybatisPlus(c.data),p=u[0],e.abrupt("return",[p,u[1]]);case 14:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()}]),e}())},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},"5bfe":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("3835"),o=(n("96cf"),n("1da1")),a=n("d4ec"),s=n("bee2"),i=(n("2ca2"),n("8ce4")),c=n("7b67");function l(e,t){return u.apply(this,arguments)}function u(){return u=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(i["a"])(c["a"]+"v1/config/config","get",{key:t,field:n}));case 1:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}var d=function(){function e(){Object(a["a"])(this,e)}return Object(s["a"])(e,null,[{key:"getConfig",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var o,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(t,n);case 2:return o=e.sent,a=Object(r["a"])(o,1),s=a[0],e.abrupt("return",s.data);case 6:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),e}()},"616e":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("3835"),o=(n("96cf"),n("1da1")),a=n("d4ec"),s=n("bee2"),i=n("8ce4"),c=n("7b67");function l(e){return u.apply(this,arguments)}function u(){return u=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(i["a"])(c["b"]+"/admin/loginconfig/list","get",t));case 1:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}var d=n("2ca2"),p=function(){function e(){Object(a["a"])(this,e)}return Object(s["a"])(e,null,[{key:"getList",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n,o){var a,s,i,c,u,p,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={page:t,size:n},a=Object.assign(a,o),e.next=4,l(a);case 4:for(s=e.sent,i=Object(r["a"])(s,1),c=i[0],u=d["a"].generateListMybatisPlus(c.data),p=u[0],f=0;f<p.length;f++)p[f].configs&&(p[f].configs=JSON.parse(p[f].configs));return e.abrupt("return",[p,u[1]]);case 11:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"getCommonConfig",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,o,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(null);case 2:if(t=e.sent,n=Object(r["a"])(t,1),o=n[0],2e4!==o.code){e.next=11;break}return a=JSON.parse(o.data),a.schoolid=null,e.abrupt("return",{id:null,configs:a,name:"公共配置"});case 11:return e.abrupt("return",{id:null,configs:{schoolid:null},name:"公共配置"});case 12:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getLoginConfig",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=function(){return a=Object(o["a"])(regeneratorRuntime.mark((function t(){var r,o,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={},t.next=3,e.getCommonConfig();case 3:if(o=t.sent,r=o.configs,!n){t.next=10;break}return t.next=8,e.getList(1,1,{schoolid:n});case 8:a=t.sent[0][0],a?null!==a.configs&&a.configs.title&&a.configs.baseImg&&(r=a.configs):window.location.href="/login";case 10:return n&&(r.asSchoolLogin=!0),sessionStorage.setItem("exp_schoolLoginPageConfig",JSON.stringify(r)),t.abrupt("return",r);case 13:case"end":return t.stop()}}),t)}))),a.apply(this,arguments)},r=function(){return a.apply(this,arguments)},t.abrupt("return",r());case 3:case"end":return t.stop()}}),t)})));function n(e){return t.apply(this,arguments)}return n}()}]),e}()},"7c26":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=["123456","password","111111","12345678","123123","000000","1234567","12345","1234567890","88888888","666666","123456789","abcd1234","qwerty","abc123","admin123","admin888","administrator"],o={weak:/^[0-9]{6,}$/,medium:/^(?=.*[0-9])(?=.*[a-zA-Z])[0-9a-zA-Z]{6,}$/,strong:/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*(),.?":{}|<>])[0-9a-zA-Z!@#$%^&*(),.?":{}|<>]{8,}$/}},"86fd":function(e,t,n){},"8a8d":function(e,t,n){},a888:function(e,t,n){"use strict";var r=n("53ca"),o=20;function a(e,t,n){return Math.min(Math.max(e,t),n)}function s(e){return{dialogHeaderEl:e.querySelector(".el-dialog__header"),dragDom:e.querySelector(".el-dialog")}}function i(e){return e.componentInstance||e.child}function c(e){return Boolean(i(e)&&i(e).visible)}function l(e){return e&&"object"===Object(r["a"])(e.value)&&null!==e.value?e.value:{center:Boolean(e&&e.value)}}function u(e,t){var n=document.documentElement.clientWidth,r=document.documentElement.clientHeight,a=o,s=Math.max(n-e.offsetWidth-o,a),i=o,c=Math.max(r-t.offsetHeight-o,i);return{screenWidth:n,screenHeight:r,minLeft:a,maxLeft:s,minTop:i,maxTop:c}}function d(e){var t=s(e),n=t.dialogHeaderEl,r=t.dragDom;if(n&&r&&r.offsetWidth){var o=e.__dragDialogOptions||{},i=u(r,n),c=window.getComputedStyle(r),l=parseFloat(c.marginTop)||i.minTop,d=(i.screenWidth-r.offsetWidth)/2,p=(i.screenHeight-r.offsetHeight)/2,f=o.center?p:l;r.style.position="fixed",r.style.margin="0",r.style.left="".concat(a(d,i.minLeft,i.maxLeft),"px"),r.style.top="".concat(a(f,i.minTop,i.maxTop),"px"),r.style.right="auto",r.style.bottom="auto"}}function p(e,t,n){e.__dragDialogOptions=l(t),e.__dragDialogVm=i(n);var r=c(n),o=e.__dragDialogVisible;e.__dragDialogVisible=r,r&&!o&&requestAnimationFrame((function(){d(e)}))}var f={inserted:function(e,t,n){var r=s(e),o=r.dialogHeaderEl,i=r.dragDom;o&&i&&(o.style.cursor="move",o.onmousedown=function(t){var n=u(i,o),r=parseFloat(i.style.left)||i.getBoundingClientRect().left,s=parseFloat(i.style.top)||i.getBoundingClientRect().top,c=t.clientX,l=t.clientY,d=function(t){var o=a(r+t.clientX-c,n.minLeft,n.maxLeft),u=a(s+t.clientY-l,n.minTop,n.maxTop);i.style.left="".concat(o,"px"),i.style.top="".concat(u,"px"),e.__dragDialogVm&&e.__dragDialogVm.$emit&&e.__dragDialogVm.$emit("dragDialog")},p=function e(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",e)};document.addEventListener("mousemove",d),document.addEventListener("mouseup",p),t.preventDefault()},p(e,t,n))},componentUpdated:function(e,t,n){p(e,t,n)},unbind:function(e){var t=s(e),n=t.dialogHeaderEl;n&&(n.onmousedown=null),delete e.__dragDialogOptions,delete e.__dragDialogVisible,delete e.__dragDialogVm}},m=function(e){e.directive("el-drag-dialog",f)};window.Vue&&(window["el-drag-dialog"]=f,Vue.use(m)),f.install=m;t["a"]=f},c573:function(e,t,n){"use strict";n("8a8d")},dc3f:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"true"===e.isSchoolClose?n("div",[n("div",{staticClass:"maintenance-message"},[e._v(e._s(e.closeText))])]):n("div",[n("div",{staticClass:"login-container"},[n("ul",{staticClass:"cb-slideshow"},[n("li",{style:"background-image:url("+e.loginPageConfig.baseImg+")"})]),n("div",{staticClass:"title-container",style:e.isPhone?"padding-top:50px":""},[e.isDefaultSchool?n("h3",{staticClass:"title-img"},[e.loginPageConfig.icon?n("img",{attrs:{src:e.loginPageConfig.icon,alt:""},on:{click:function(t){return e.clickLoginTitleImg()}}}):e._e()]):e._e(),n("h3",{staticClass:"title",style:e.isPhone?"font-size:25px":""},[e._v(" "+e._s(e.loginPageConfig.title)+" ")]),n("h4",{staticClass:"sub-title"})]),n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"off","label-position":"left"}},[e.asSchool?e._e():n("el-form-item",{attrs:{prop:"schoolName"}},[n("span",{staticClass:"svg-container"},[n("i",{staticClass:"el-icon-school"})]),n("el-input",{ref:"schoolname",style:e.isPhone?"width:80%":"",attrs:{name:"schoolName",placeholder:"请输入学校名称",onKeypress:"javascript:if(event.keyCode == 32 || event.keyCode == 43)event.returnValue = false;",type:"text",tabindex:"1",autocomplete:"off"},on:{change:e.onSchoolNameChange},model:{value:e.loginForm.schoolName,callback:function(t){e.$set(e.loginForm,"schoolName",t)},expression:"loginForm.schoolName"}})],1),n("el-form-item",{attrs:{prop:"account"}},[n("span",{staticClass:"svg-container"},[n("i",{staticClass:"el-icon-user"})]),n("el-input",{ref:"account",style:e.isPhone?"width:80%":"",attrs:{onKeypress:"javascript:if(event.keyCode == 32 || event.keyCode == 43)event.returnValue = false;",name:"account",placeholder:"请输入用户名",type:"text",tabindex:"2",autocomplete:"off"},on:{change:e.onLoginAccountChange},model:{value:e.loginForm.account,callback:function(t){e.$set(e.loginForm,"account",t)},expression:"loginForm.account"}})],1),e.loginForm.asStudentLogin?n("el-form-item",{attrs:{prop:"teacherid"}},[n("span",{staticClass:"svg-container"},[n("i",{staticClass:"el-icon-s-custom"})]),n("el-select",{staticStyle:{width:"93%",outline:"none"},style:e.isPhone?"width:80%":"",attrs:{tabindex:"3",autocomplete:"off",placeholder:"请选择教师"},model:{value:e.loginForm.teacherid,callback:function(t){e.$set(e.loginForm,"teacherid",t)},expression:"loginForm.teacherid"}},e._l(e.loginForm.teacherList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),n("span",{staticClass:"teacher-tip"},[e._v("授课教师")])],1):e._e(),n("el-tooltip",{attrs:{content:"大写键已打开",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[n("el-form-item",{attrs:{prop:"password"}},[n("span",{staticClass:"svg-container"},[n("i",{staticClass:"el-icon-lock"})]),n("el-input",{key:e.passwordType,ref:"password",style:e.isPhone?"width:80%":"",attrs:{onKeypress:"javascript:if(event.keyCode == 32 || event.keyCode == 43)event.returnValue = false;",type:e.passwordType,placeholder:"请输入密码",name:"password",tabindex:"4",autocomplete:"off"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("i",{staticClass:"el-icon-view"})])],1)],1),n("div",{staticClass:"btn-box"},[n("el-button",{staticStyle:{display:"block",width:"35%",margin:"0 auto","margin-bottom":"30px","font-size":"17px"},attrs:{round:"",loading:e.loginLoading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v(" 登 录 ")]),n("el-button",{staticClass:"btn-forget",attrs:{type:"text"},on:{click:e.clickForgetPasswordBtn}},[e._v("忘记密码？")])],1),e.isDefaultSchool?n("div",{staticStyle:{"text-align":"center","margin-top":"-10px"}},[n("el-button",{attrs:{type:"primary",round:""},on:{click:e.clickMoreBtn}},[e._v("更多教学资源")])],1):e._e(),e.isPhone?n("div",{staticClass:"system-tips"},[n("div",{staticClass:"mobile-bottom-tips flex flex-dr flex-center",staticStyle:{"margin-top":"20px","text-align":"center"}},[n("div",[e._v("技术支持：")]),n("div",[e._v("成都智云鸿道信息技术有限公司")]),e.isDefaultSchool?n("div",[n("div",[e._v("联系电话：")]),n("div",[e._v("13550013785 028-61551840")])]):e._e(),n("div",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.window.open("https://beian.miit.gov.cn/")}}},[e._v("蜀ICP备19034784号-1")]),n("div",[e._v("推荐使用Chrome谷歌、Firefox火狐、360极速浏览器、Edge等浏览器访问本系统")])])]):e._e()],1),e.isPhone?e._e():n("div",{staticClass:"bottomTips"},[n("div",[e._v("技术支持：成都智云鸿道信息技术有限公司 "),e.isDefaultSchool?n("span",[e._v("联系电话：13550013785 028-61551840")]):e._e()]),n("div",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.window.open("https://beian.miit.gov.cn/")}}},[e._v("蜀ICP备19034784号-1")]),n("div",[e._v("推荐使用Chrome谷歌、Firefox火狐、360极速浏览器、Edge等浏览器访问本系统")])])],1),n("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog",value:{center:!0},expression:"{ center: true }"}],attrs:{title:"重置密码",visible:e.findPasswordShow,width:e.isPhone?"92%":"400px","custom-class":"login-mobile-dialog","close-on-click-modal":!1,center:""},on:{"update:visible":function(t){e.findPasswordShow=t}}},[n("div",{staticClass:"dialog-container"},[n("el-form",{ref:"resetForm",attrs:{model:e.resetForm,rules:e.resetRules}},[n("el-form-item",{attrs:{prop:"account"}},[n("el-input",{attrs:{placeholder:"请输入用户名（例如：完整的学号）"},on:{change:e.onResetAccountChange},model:{value:e.resetForm.account,callback:function(t){e.$set(e.resetForm,"account",t)},expression:"resetForm.account"}})],1),e.resetForm.asStudentLogin?n("el-form-item",{attrs:{prop:"teacherid"}},[n("el-select",{staticStyle:{width:"100%",outline:"none"},attrs:{autocomplete:"off",placeholder:"请选择教师"},model:{value:e.resetForm.teacherid,callback:function(t){e.$set(e.resetForm,"teacherid",t)},expression:"resetForm.teacherid"}},e._l(e.resetForm.teacherList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):e._e()],1)],1),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",loading:e.resetPasswordLoading},on:{click:e.clickResetPasswordBtn}},[e._v("重置密码")])],1)]),n("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:"首次登录，请完善信息",visible:e.addInfoShow,width:e.isPhone?"92%":"400px","custom-class":"login-mobile-dialog",center:"","close-on-click-modal":!1},on:{"update:visible":function(t){e.addInfoShow=t}}},[n("div",{staticClass:"dialog-container"},[n("el-form",{ref:"addInfoForm",attrs:{model:e.addInfoForm,rules:e.addInfoRules}},[n("el-form-item",{attrs:{prop:"password1"}},[n("el-input",{attrs:{placeholder:"请输入6-15位的新密码",onKeypress:"javascript:if(event.keyCode == 32 || event.keyCode == 43)event.returnValue = false;",type:"password"},on:{input:e.checkPasswordStrength},model:{value:e.addInfoForm.password1,callback:function(t){e.$set(e.addInfoForm,"password1",t)},expression:"addInfoForm.password1"}}),n("div",{staticClass:"password-counter"},[e._v("已输入"+e._s(e.addInfoForm.password1.length)+"/15位")]),e.addInfoForm.password1?n("div",{staticClass:"password-strength-tips"},[n("div",{staticClass:"strength-bar"},[n("div",{staticClass:"strength-level",class:e.passwordStrengthClass})]),n("div",{staticClass:"strength-text"},[e._v(e._s(e.passwordStrengthText))])]):e._e()],1),n("el-form-item",{attrs:{prop:"password2"}},[n("el-input",{attrs:{placeholder:"请再次输入新密码",type:"password",onKeypress:"javascript:if(event.keyCode == 32 || event.keyCode == 43)event.returnValue = false;"},model:{value:e.addInfoForm.password2,callback:function(t){e.$set(e.addInfoForm,"password2",t)},expression:"addInfoForm.password2"}}),n("div",{staticClass:"password-counter"},[e._v("已输入"+e._s(e.addInfoForm.password2.length)+"/15位")])],1),n("el-form-item",{attrs:{prop:"email"}},[n("el-input",{attrs:{placeholder:"请输入邮箱地址，便于找回密码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickAddInfoBtn(t)}},model:{value:e.addInfoForm.email,callback:function(t){e.$set(e.addInfoForm,"email",t)},expression:"addInfoForm.email"}})],1)],1)],1),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.clickAddInfoBtn}},[e._v("确 认")])],1)]),n("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],staticClass:"super-user",attrs:{visible:e.superUserShow,title:" ",width:"400px",center:"","close-on-click-modal":!1},on:{"update:visible":function(t){e.superUserShow=t}}},[n("div",{staticClass:"dialog-container"},[n("el-form",{ref:"superUserForm",attrs:{model:e.superUserForm,rules:e.superUserRules}},[n("el-form-item",{staticStyle:{visibility:"hidden","margin-top":"-40px","margin-left":"-100px",width:"1px"}},[n("el-input",{attrs:{placeholder:"隐藏"}})],1),n("el-form-item",{attrs:{prop:"account"}},[n("el-input",{attrs:{placeholder:"请输入教师用户名",tabindex:"0"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSuperAdminLoginBtn(t)}},model:{value:e.superUserForm.account,callback:function(t){e.$set(e.superUserForm,"account",t)},expression:"superUserForm.account"}})],1)],1)],1),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.clickSuperAdminLoginBtn}},[e._v("登录")])],1)])],1)},o=[],a=(n("caad"),n("c975"),n("2532"),n("96cf"),n("1da1")),s=n("616e"),i=(n("4ee0"),n("2ca2"),n("a888")),c=n("cf45"),l=n("8bb9"),u=n("a5cf"),d=n("5c8a"),p=n("7b67"),f=n("d808"),m=n("5f87"),g=n("7c26"),h=n("5bfe"),w="49533847984934912",v={name:"Login",components:{},directives:{elDragDialog:i["a"]},data:function(){var e=this,t=function(e,t,n,r,o){if(0===t||t){t.length>r&&n(new Error("最多输入"+r+"个字，当前已输入"+t.length+"个字"));var a=/[`!#$%^&*()_+<>?:"{},.\/;'[\]]/im,s=/[·！#￥（——）：；""''','|《。》？、【】[\]]/im;(a.test(t)||s.test(t))&&n(new Error("仅支持数字、字母、部分符号")),n()}else n(new Error("请输入"+o))},n=function(e,t,n){Object(c["p"])("email",t)||n(new Error("邮箱格式错误")),n()},r=function(e,t,n){t.length<1?n(new Error("请输入密码")):n()},o=function(e,t,n){t.length<6||t.length>15?n(new Error("请输入6-15位密码")):g["b"].includes(t)?n(new Error("密码过于简单，请设置更复杂的密码")):!g["a"].weak.test(t)||g["a"].medium.test(t)?n():n(new Error("密码过于简单，请不要使用纯数字密码"))},a=function(t,n,r){n.length<6||n.length>15?r(new Error("请再次输入6-15位密码")):e.addInfoForm.password1&&e.addInfoForm.password1!==n?r(new Error("两次密码输入不一致")):r()};return{getQuery:c["i"],window:window,loginForm:{account:"",password:"",schoolId:"",schoolName:"",asStudentLogin:!1,teacherid:null,teacherList:[]},loginRules:{schoolName:[{required:!0,trigger:"blur",validator:function(e,n,r){return t(e,n,r,30,"学校名称")}}],account:[{required:!0,trigger:"blur",validator:function(e,n,r){return t(e,n,r,30,"用户名")}}],password:[{required:!0,trigger:"blur",validator:r}],teacherid:[{required:!0,trigger:"blur",message:"请选择教师"}]},passwordType:"password",capsTooltip:!1,loginLoading:!1,showDialog:!1,redirect:void 0,otherQuery:{},asSchool:!1,loginPageConfig:{},loginPageCommonConfig:{},schoolId:this.$route.query["schoolId"],resetForm:{account:"",email:"",asStudentLogin:!1,teacherid:null,teacherList:[]},resetRules:{account:[{required:!0,trigger:"blur",message:"请输入用户名"}],email:[{required:!1,trigger:"blur",validator:n}],teacherid:[{required:!0,trigger:"blur",message:"请选择教师"}]},findPasswordShow:!1,resetPasswordLoading:!1,addInfoForm:{password1:"",password2:"",email:""},addInfoRules:{password1:[{required:!0,trigger:"blur",validator:o}],password2:[{required:!0,trigger:"blur",validator:a}],email:[{required:!0,trigger:"blur",validator:n}]},addInfoShow:!1,superUserShow:!1,superUserForm:{account:""},superUserRules:{account:[{required:!0,trigger:"blur",message:"请输入教师用户名"}]},userInfo:{},isDefaultSchool:!1,isPhone:Object(c["l"])(),hasWeb:!1,passwordStrengthClass:"",passwordStrengthText:"",isSchoolClose:"true",closeText:""}},mounted:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.schoolId){t.next=9;break}return t.next=3,h["a"].getConfig("config_exp_close_school",e.schoolId);case 3:if(e.isSchoolClose=t.sent,"true"!==e.isSchoolClose){t.next=7;break}return e.closeText="网站维护中",t.abrupt("return");case 7:t.next=10;break;case 9:e.isSchoolClose="false";case 10:Object(c["i"])("schoolId")&&Object(c["i"])("schoolId")!==w||(e.isDefaultSchool=!0),-1!==f["a"].webSchool.idList.indexOf(e.schoolId)&&-1===f["a"].webSchool.notShowOfficeWebSchoolIdList.indexOf(e.schoolId)&&(e.hasWeb=!0),document.documentElement.clientHeight,e.getLoginConfig(),e.schoolId?""===e.loginForm.account?e.$refs.account.focus():""===e.loginForm.password&&e.$refs.password.focus():e.$refs.schoolname.focus(),n=document.createElement("script"),n.id="jweixin",n.src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js",document.body.append(n),n.addEventListener("load",(function(e){setTimeout((function(){-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")&&Object(c["q"])(window.location.href,"思政课虚拟仿真体验教学中心","思政树立理想 科技点亮初心","https://exp.cdzyhd.com/images/share_logo.jpg")}),500)}));case 20:case"end":return t.stop()}}),t)})))()},methods:{clickWebBtn:function(){var e=f["a"].webSchool.idToRoute[this.schoolId];window.location.href=e},clickMoreBtn:function(){Object(c["l"])()?window.location.href=p["h"]+"/product":window.location.href=p["i"]+"/product"},clickLoginTitleImg:function(){this.isDefaultSchool&&(window.location.href=p["i"]+"/product")},onSchoolNameChange:function(e){return Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},onLoginAccountChange:function(e){return Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},getLoginConfig:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s["a"].getLoginConfig(e.schoolId);case 2:e.loginPageConfig=t.sent,e.schoolId&&(e.asSchool=!0,e.loginForm.schoolId=e.schoolId);case 4:case"end":return t.stop()}}),t)})))()},checkCapslock:function(e){var t=e.key;this.capsTooltip=t&&1===t.length&&t>="A"&&t<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=19;break}if(e.loginLoading=!0,r="",!e.schoolId){t.next=9;break}return t.next=6,l["a"].expLogin(e.loginForm.account,e.loginForm.password,"schoolId",e.schoolId,null,e.loginForm.teacherid).catch((function(t){e.loginLoading=!1}));case 6:r=t.sent,t.next=12;break;case 9:return t.next=11,l["a"].expLogin(e.loginForm.account,e.loginForm.password,"schoolName",e.loginForm.schoolName,null,e.loginForm.teacherid).catch((function(t){e.loginLoading=!1}));case 11:r=t.sent;case 12:if(e.userInfo=r,!r.hasOwnProperty("asSuperAdminLogin")){t.next=16;break}return e.superUserShow=!0,t.abrupt("return",!0);case 16:0===r.loginsta?e.openAddInfoDialog():e.jumpToIndex(),t.next=20;break;case 19:return t.abrupt("return",!1);case 20:e.loginLoading=!1;case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},openAddInfoDialog:function(){var e=this;this.addInfoForm={password1:"",password2:"",email:""},this.addInfoShow=!0,setTimeout((function(){e.$refs.addInfoForm.clearValidate()}),300)},clickSuperAdminLoginBtn:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs.superUserForm.validate(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=14;break}if(r="",!e.schoolId){t.next=8;break}return t.next=5,l["a"].expLogin(e.loginForm.account,e.loginForm.password,"schoolId",e.schoolId,e.superUserForm.account);case 5:r=t.sent,t.next=11;break;case 8:return t.next=10,l["a"].expLogin(e.loginForm.account,e.loginForm.password,"schoolName",e.loginForm.schoolName,e.superUserForm.account);case 10:r=t.sent;case 11:e.userInfo=r,e.superUserShow=!1,e.jumpToIndex();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},jumpToIndex:function(){var e=this;Object(c["i"])("returnUrl")?window.location.href=unescape(Object(c["i"])("returnUrl")):(Object(m["e"])(this.userInfo.rolename),Object(m["d"])(this.userInfo),Object(m["c"])(this.userInfo.token),setTimeout((function(){"teacher"===e.userInfo.rolename&&u["a"].routerPush(e,"/userInfo","个人信息",{},"3"),"student"===e.userInfo.rolename&&u["a"].routerPush(e,"/student/expList?status=1","我的实验-进行中",{},"0-0")}),50))},clickAddInfoBtn:function(){var e=this;this.$refs.addInfoForm.validate(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=9;break}return t.next=3,l["a"].addUserInfo(e.userInfo.userid,e.addInfoForm.password1,e.addInfoForm.email);case 3:if(!t.sent){t.next=7;break}Object(d["e"])("完善信息成功"),e.userInfo.email=e.addInfoForm.email,e.jumpToIndex();case 7:t.next=10;break;case 9:return t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},clickForgetPasswordBtn:function(){var e=this;this.schoolId||""!==this.loginForm.schoolName?(this.findPasswordShow=!0,this.loginForm.account?(this.resetForm.account=this.loginForm.account,this.loginForm.asStudentLogin?(this.resetForm.teacherid=this.loginForm.teacherid,this.resetForm.teacherList=this.loginForm.teacherList,this.resetForm.asStudentLogin=!0):(this.resetForm.teacherList=[],this.resetForm.teacherid="",this.resetForm.asStudentLogin=!1)):(this.resetForm.account="",this.resetForm.teacherList=[],this.resetForm.teacherid="",this.resetForm.asStudentLogin=!1),this.resetForm.email="",setTimeout((function(){e.$refs["resetForm"].clearValidate()}),300)):Object(d["d"])("请先输入学校名称!")},onResetAccountChange:function(e){return Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},clickResetPasswordBtn:function(){var e=this;this.resetPasswordLoading||this.$refs.resetForm.validate(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=23;break}if(e.resetPasswordLoading=!0,t.prev=2,"",!e.schoolId){t.next=10;break}return t.next=7,l["a"].resetPassword(e.resetForm.account,"schoolId",e.schoolId,"1",e.resetForm.teacherid);case 7:t.sent,t.next=17;break;case 10:if(!e.loginForm.schoolName){t.next=16;break}return t.next=13,l["a"].resetPassword(e.resetForm.account,"schoolName",e.loginForm.schoolName,"1",e.resetForm.teacherid);case 13:t.sent,t.next=17;break;case 16:Object(d["d"])("请先输入学校名称!");case 17:e.findPasswordShow=!1;case 18:return t.prev=18,e.resetPasswordLoading=!1,t.finish(18);case 21:t.next=24;break;case 23:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t,null,[[2,,18,21]])})));return function(e){return t.apply(this,arguments)}}())},checkPasswordStrength:function(){var e=this.addInfoForm.password1;return e?e.length<6?(this.passwordStrengthClass="strength-weak",void(this.passwordStrengthText="密码太短")):g["b"].includes(e)?(this.passwordStrengthClass="strength-weak",void(this.passwordStrengthText="常用密码，极易被破解")):void(g["a"].strong.test(e)?(this.passwordStrengthClass="strength-strong",this.passwordStrengthText="强"):g["a"].medium.test(e)?(this.passwordStrengthClass="strength-medium",this.passwordStrengthText="中"):(this.passwordStrengthClass="strength-weak",this.passwordStrengthText="弱")):(this.passwordStrengthClass="",void(this.passwordStrengthText=""))}}},b=v,x=(n("1af3"),n("c573"),n("2877")),k=Object(x["a"])(b,r,o,!1,null,"4410f2d6",null);t["default"]=k.exports}}]);