(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b210d96"],{"0b99":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAdCAYAAACwuqxLAAAABHNCSVQICAgIfAhkiAAAA0ZJREFUSImtVj2PW1UQPWfu200iRcLu6OKfYCQ6Cl4K6lhUCCicMg14pYDSBEyHtEFxKspsJBLRZZcKiSJOR+n9BTiiREpsCpasfedQvI997/kZZRduY41nfD5m7p1d4j+eT25rBOgGgJTg9R/ucVrNJxcF/vgL9QF/CqlXfLdOMG/W8SLgg/Fp39Z6FmQdi4C5wZwvHt+zXrP2Qg5WO+vDENiJUQiBoAvmNm6rPTfBB9/9OVx5vBYjYYGIkTDZ0U9f7R78LwSvdzQI7rBgMAfMeXTlr9fDbfXnJljtrtLoBot+HMTJ9LNuq/LibAz509tKnfqcQg9AH8AU0Ey0R0/2OXv34R/pW8vw8u3fu+/INKCQAugAmEGakfaoelVLgsFYncsnegp5aiDgAJv8whzEIifefqSDnWh7BxMukgJ899SfuXmfINwFBkISKIIq5Wxcw/a+cLhK1ANwPQGAsF6NneiTOagRkMN4RgIBhuzzDc6S4gMA4GB80qPbb8WPMzCBIFi0SWjEOekWcJHpk33OACABNJIJUQKZPZrSSSDgFSeWgdedqTYrQpPH+zYr4sQD+0WRXLBK7yUHA+FlnNV5KcIzcFfpdJ1Y7domkXqfBJgrbHXChpOQgVrLzH781moLL1EQJMAqCmtOACi/VTUntdhLZ81jTkEGRApugtMhEyI9j7O85/loWd7zfKSf5QPw0Z2TXp3A8NwpKGQAMmSfAY24QlbkWa3LSKOFtE4QfFFV+sZO2HBSiCG+rhNA07oibVFYcdJ0WnWWqPfh3b9HlRb5tE3puZyE6kwEGe8P7p4Os3cBIH2wmFO8Vq6Dyr2uLb5ajPLlU5UXX8YAhCPLnp/GNaUV22fKtznx9plkLPOMIOJQAcuyt2XvfXuvQwZezqhlZpAmBgDTve5izTiSKQctlDachKYT/JuTbw7HV+a1lfje9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q90/GTnxqXJa7XSp7idxC/hzySz4bKc/wJspXFPFbZHlQAAAABJRU5ErkJggg=="},"692e":function(t,e,a){},"805b":function(t,e,a){},"90fd":function(t,e,a){},"9d0c":function(t,e,a){"use strict";var r=a("90fd"),s=a.n(r);s.a},"9f32":function(t,e,a){"use strict";a("28a5"),a("96cf");var r=a("3b8d"),s=(a("805b"),a("d044")),i=a.n(s),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ibosi-qr-warp"},[a("div",{staticClass:"ibosi-qr-title"},[t._v("扫一扫，下载 i 博思 APP")]),t._m(0),a("div",{staticClass:"close-warp"},[a("el-button",{staticClass:"btn_close",on:{click:function(e){return t.$emit("close")}}},[t._v("关闭")])],1)])},n=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"ibosi-qr-box"},[r("div",{staticClass:"ios-warp item-warp"},[r("div",{staticClass:"item-warp-title"},[r("img",{attrs:{src:a("0b99")}}),t._v(" iOS APP下载\n      ")]),r("img",{staticClass:"qr-pic",attrs:{src:a("06b0")}})]),r("div",{staticClass:"android-warp item-warp"},[r("div",{staticClass:"item-warp-title"},[r("img",{attrs:{src:a("5bd1")}}),t._v(" Android APP下载\n      ")]),r("img",{staticClass:"qr-pic",attrs:{src:a("e883")}})])])}],c={data:function(){return{}}},u=c,h=(a("a211"),a("2877")),l=Object(h["a"])(u,o,n,!1,null,null,null),d=l.exports,p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-check-warp"},[a("p",{staticClass:"title-tip"},[t._v("您的工号/学号可能与其他用户重复，请输入学校全称验证您的身份。")]),a("el-form",[a("el-form-item",{attrs:{label:"您所在学校："}},[a("el-input",{staticStyle:{width:"344px"},attrs:{placeholder:"请输入学校全称",size:"small"},model:{value:t.form.schoolName,callback:function(e){t.$set(t.form,"schoolName",e)},expression:"form.schoolName"}})],1)],1),t._m(0),a("div",{staticClass:"mydialog-footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.check}},[t._v("验 证")])],1),a("div",{staticClass:"clearfix"})],1)},m=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"check-tip"},[a("p",[t._v("温馨提示：")]),a("p",[t._v("1.登录后，请尽快修改个人密码、完善个人信息；")]),a("p",[t._v("2.推荐使用手机号、邮箱登录; ")]),a("p",[t._v("3.如无法登录，请联系管理员。")])])}],g={props:{account:{type:String,default:""},password:{type:String,default:""},remember:{type:Boolean,default:!1}},data:function(){return{form:{schoolName:"",account:"",password:"",remember:!1}}},mounted:function(){this.initPage(this.account,this.password,this.remember)},methods:{check:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.form.schoolName){t.next=3;break}return this.$alert.warning("请填写学校全称"),t.abrupt("return");case 3:if(this.form.account){t.next=6;break}return this.$alert.warning("登录名不能为空"),t.abrupt("return");case 6:if(this.form.password){t.next=9;break}return this.$alert.warning("密码不能为空"),t.abrupt("return");case 9:return this.loading=!0,e={Account:this.form.account,Password:this.$util.base64Encode(this.form.password),IsRemember:this.form.remember,host:window.location.hostname,schoolName:this.form.schoolName},t.next=13,this.$api.vaildSchoolLogin(e);case 13:if(a=t.sent,r=a.data,this.loading=!1,!r||1!=r.status){t.next=32;break}if(1!=r.data.State){t.next=32;break}if(sessionStorage.setItem("UserType",r.data.Type),localStorage.setItem("s_pageName",this.pageName()),localStorage.setItem("s_UserID",r.data.ObjectID),localStorage.setItem("s_SchoolID",r.data.SchoolID),localStorage.setItem("s_SchoolName",r.data.SchoolName),localStorage.setItem("s_UserName",r.data.Name),this.$cookies.set("cacheHeader",r.data.CookieStr),this.$cookies.set("SessionId",r.data.SessionId),9!=r.data.Type&&1!=r.data.Type){t.next=29;break}return this.$router.push({path:"/teacher"}),t.abrupt("return");case 29:if(0!=r.data.Type){t.next=32;break}return this.$router.push({path:"/student"}),t.abrupt("return");case 32:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),pageName:function(){var t=location.href,e=t.split("/"),a=e[e.length-1];return a},initPage:function(t,e,a){this.form={schoolName:"",account:t,password:e,remember:a}}}},f=g,S=(a("0c0e"),Object(h["a"])(f,p,m,!1,null,null,null)),b=S.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"school-sso-marp"},[a("p",{staticClass:"label"},[t._v("请选择您所在的学校：")]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:-1==t.loading,expression:"loading==-1"}],staticClass:"school-list-warp"},[1==t.loading&&t.schoolList.length>0?a("ul",t._l(t.schoolList,(function(e){return a("li",{key:e.SchoolID},[a("el-button",{staticClass:"ell",attrs:{type:"text",title:e.SchoolName},on:{click:function(a){return t.selectSchool(e)}}},[t._v(t._s(e.SchoolName))])],1)})),0):a("div",{staticClass:"empty"},[t._v("暂无数据")])]),a("p",{staticClass:"tip"},[t._v("注：仅供开通统一身份登录的学校使用，如学校未开通该功能，请正常登录")])])},A=[],I={data:function(){return{schoolList:[],loading:-1}},mounted:function(){this.getSSOSchool()},methods:{getSSOSchool:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=-1,t.next=3,this.$api.getSSOSchool();case 3:e=t.sent,a=e.data,1==a.status&&(this.schoolList=a.data),this.loading=1;case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),selectSchool:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.getSchoolSSOUrl({SchoolID:e.SchoolID,plateform:"web",port:"0"});case 2:a=t.sent,r=a.data,1==r.status&&(window.open(r.data),this.$emit("close",e),this.$cookies.set("iflysse_client_school",JSON.stringify(e),"30D"));case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},v=I,k=(a("9d0c"),Object(h["a"])(v,w,A,!1,null,null,null)),D=k.exports,N={components:{ibosiQr:d,loginCheck:b,schoolSso:D},data:function(){return{versioninfo:window.config.getVersionInfo,way:1,ticket:this.$route.query.ticket,form:{remember:!1,account:"",password:"",code:""},codeData:{Code:"",SessionID:""},qrData:{loop:null,clientId:"",seconds:0,loop_timedown:null,isExpire:!1},rules:{account:[{required:!0,message:"请输入身份证号码 | 邮箱 | 手机号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},error:{password:"",code:""},loading:!1,ibosiShow:!1,checkData:{isShow:!1,remember:!1,account:"",password:""},ssoData:{isShow:!1,data:null}}},mounted:function(){var t=this.$cookies.get("userName");t&&(this.form.account=t),this.ticket&&this.casLogin(this.ticket),this.generateLoginCode(),this.createLoginCode(),this.isLogin();var e=this.$cookies.get("iflysse_client_school");void 0!=e&&(this.ssoData.data=e)},methods:{toSchoolUrl:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$cookies.set("iflysse_client_school",JSON.stringify(this.ssoData.data),"30D"),t.next=3,this.$api.post("/net-api".concat(this.ssoData.data.SSOUrlInterface),{SchoolID:this.ssoData.data.SchoolID});case 3:e=t.sent,a=e.data,1==a.status&&window.open(a.data);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),casLogin:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=location.protocol+"//"+location.host+location.pathname,this.loading=!0,a={ticket:this.ticket,callbackurl:e},t.next=5,this.$api.login(a);case 5:if(r=t.sent,s=r.data,this.loading=!1,!s||1!=s.status){t.next=28;break}if(6!=s.data.State){t.next=13;break}return this.$alert.PromptforConfirm('应从 <a href="http://'.concat(s.data.Domain,'" style="color:red;float:none">').concat(s.data.Domain,"</a> 登录"),"提示","我知道了"),this.createLoginCode(),t.abrupt("return");case 13:if(1!=s.data.State){t.next=28;break}if(sessionStorage.setItem("UserType",s.data.Type),localStorage.setItem("s_pageName",this.pageName()),localStorage.setItem("s_UserID",s.data.ObjectID),localStorage.setItem("s_SchoolID",s.data.SchoolID),localStorage.setItem("s_SchoolName",s.data.SchoolName),localStorage.setItem("s_UserName",s.data.Name),this.$cookies.set("cacheHeader",s.data.CookieStr),this.$cookies.set("SessionId",s.data.SessionId),9!=s.data.Type&&1!=s.data.Type){t.next=25;break}return this.$router.push({path:"/teacher"}),t.abrupt("return");case 25:if(0!=s.data.Type){t.next=28;break}return this.$router.push({path:"/student"}),t.abrupt("return");case 28:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),aiitLogin:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.getGotoAiitLoginUrl();case 2:e=t.sent,a=e.data,a&&1==a.status&&(location.href=a.data);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),ahdyLogin:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.getGotoAhdyLoginUrl();case 2:e=t.sent,a=e.data,a&&1==a.status&&(location.href=a.data);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),generateLoginCode:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.generateLoginCode();case 2:e=t.sent,a=e.data,a&&1==a.status&&(this.qrData.isExpire=!1,this.qrcode(a.data),this.qrData.clientId=a.info,this.qrData.seconds=parseInt(a.msg),this.qrData.seconds>0&&(this.qrData.loop_timedown||(this.timeDownRefresh(),this.qrData.loop_timedown=setInterval((function(){r.timeDownRefresh()}),1e3))),clearInterval(this.qrData.loop),this.qrData.loop=setInterval((function(){r.checkLogin()}),3e3));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),pageName:function(){var t=location.href,e=t.split("/"),a=e[e.length-1];return a},checkLogin:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return window.isProgress=!1,t.next=3,this.$api.qrCodeIsLogin({location:"",ClientID:this.qrData.clientId});case 3:if(e=t.sent,a=e.data,!a||1!=a.status){t.next=30;break}if(2!=a.data.State){t.next=9;break}return this.qrData.isExpire=!0,t.abrupt("return");case 9:if(7!=a.data.State){t.next=12;break}return this.$alert.warning("学校被禁用,请联系管理员"),t.abrupt("return");case 12:if(6!=a.data.State){t.next=15;break}return this.$alert.PromptforConfirm('应从 <a href="http://'.concat(a.data.Domain,'" style="color:red;float:none">').concat(a.data.Domain,"</a> 登录"),"提示","我知道了"),t.abrupt("return");case 15:if(1!=a.data.State){t.next=30;break}if(sessionStorage.setItem("UserType",a.data.Type),localStorage.setItem("s_pageName",this.pageName()),localStorage.setItem("s_UserID",a.data.ObjectID),localStorage.setItem("s_SchoolID",a.data.SchoolID),localStorage.setItem("s_SchoolName",a.data.SchoolName),localStorage.setItem("s_UserName",a.data.Name),this.$cookies.set("cacheHeader",a.data.CookieStr),this.$cookies.set("SessionId",a.data.SessionId),9!=a.data.Type&&1!=a.data.Type){t.next=27;break}return this.$router.push({path:"/teacher"}),t.abrupt("return");case 27:if(0!=a.data.Type){t.next=30;break}return this.$router.push({path:"/student"}),t.abrupt("return");case 30:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),isLogin:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return window.isProgress=!1,t.next=3,this.$api.isLogin();case 3:if(e=t.sent,a=e.data,!a||1!=a.status){t.next=20;break}if(1!=a.data.State){t.next=20;break}if(sessionStorage.setItem("UserType",a.data.Type),localStorage.setItem("s_pageName",this.pageName()),localStorage.setItem("s_UserID",a.data.ObjectID),localStorage.setItem("s_SchoolID",a.data.SchoolID),localStorage.setItem("s_SchoolName",a.data.SchoolName),localStorage.setItem("s_UserName",a.data.Name),this.$cookies.set("cacheHeader",a.data.CookieStr),9!=a.data.Type&&1!=a.data.Type){t.next=17;break}return this.$router.push({path:"/teacher"}),t.abrupt("return");case 17:if(0!=a.data.Type){t.next=20;break}return this.$router.push({path:"/student"}),t.abrupt("return");case 20:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),timeDownRefresh:function(){this.qrData.seconds<=0?(clearInterval(this.qrData.loop_timedown),this.qrData.loop_timedown=null,this.qrData.isExpire=!0):this.qrData.seconds--},createLoginCode:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.createLoginCode();case 2:e=t.sent,a=e.data,a&&1==a.status&&(this.codeData=a.data);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),changeWay:function(){this.way=1==this.way?2:1},complaint:function(){window.open("/Complaint.aspx")},forgetPwd:function(){this.$router.push({path:"/find-password",query:{from:0}})},qrcode:function(t){void 0!=document.getElementById("qrcode")&&(document.getElementById("qrcode").innerHTML="",new i.a("qrcode",{width:180,height:180,text:t}),document.getElementById("qrcode").removeAttribute("title"))},login:function(){var t=this;this.error={password:"",code:""},this.$refs.form.validate((function(e){if(!e)return!1;t.submitLogin()}))},submitLogin:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,e={Account:this.form.account,Password:this.$util.base64Encode(this.form.password),Code:this.form.code,SessionID:this.codeData.SessionID,IsRemember:this.form.remember,host:window.location.hostname},this.$cookies.set("userName",this.form.account,"30D"),t.next=5,this.$api.login(e);case 5:if(a=t.sent,r=a.data,this.loading=!1,!r||1!=r.status){t.next=47;break}if(2!=r.data.State){t.next=13;break}return this.error.code="验证码已过期",this.createLoginCode(),t.abrupt("return");case 13:if(3!=r.data.State){t.next=17;break}return this.error.code="验证码错误",this.createLoginCode(),t.abrupt("return");case 17:if(4!=r.data.State){t.next=21;break}return this.error.password="账号或密码错误",this.createLoginCode(),t.abrupt("return");case 21:if(7!=r.data.State){t.next=25;break}return this.error.password="学校被禁用,请联系管理员",this.createLoginCode(),t.abrupt("return");case 25:if(5!=r.data.State){t.next=28;break}return this.checkAccount(),t.abrupt("return");case 28:if(6!=r.data.State){t.next=32;break}return this.$alert.PromptforConfirm('应从 <a href="http://'.concat(r.data.Domain,'" style="color:red;float:none">').concat(r.data.Domain,"</a> 登录"),"提示","我知道了"),this.createLoginCode(),t.abrupt("return");case 32:if(1!=r.data.State){t.next=47;break}if(sessionStorage.setItem("UserType",r.data.Type),localStorage.setItem("s_pageName",this.pageName()),localStorage.setItem("s_UserID",r.data.ObjectID),localStorage.setItem("s_SchoolID",r.data.SchoolID),localStorage.setItem("s_SchoolName",r.data.SchoolName),localStorage.setItem("s_UserName",r.data.Name),this.$cookies.set("cacheHeader",r.data.CookieStr),this.$cookies.set("SessionId",r.data.SessionId),9!=r.data.Type&&1!=r.data.Type){t.next=44;break}return this.$router.push({path:"/teacher"}),t.abrupt("return");case 44:if(0!=r.data.Type){t.next=47;break}return this.$router.push({path:"/student"}),t.abrupt("return");case 47:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),checkAccount:function(){this.checkData.isShow=!0,this.checkData.account=this.form.account,this.checkData.password=this.form.password,this.checkData.remember=this.form.remember,void 0!=this.$refs.loginCheck&&this.$refs.loginCheck.initPage(this.form.account,this.form.password,this.form.remember)},toTp:function(){window.open(window.config.getTpUrl)},ssoLogin:function(){this.ssoData.isShow=!0},ossClose:function(t){this.ssoData.isShow=!1,this.ssoData.data=t}}};e["a"]=N},a211:function(t,e,a){"use strict";var r=a("bddc"),s=a.n(r);s.a},bddc:function(t,e,a){}}]);