icve-sso-vue3 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,5 +4,5 @@ var Ie=(0,r.defineComponent)({name:"CircleCloseFilled",__name:"circle-close-fill
4
4
  /*! js-cookie v3.0.1 | MIT */
5
5
  function Go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Ko={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Wo(e,t){function r(r,n,o){if("undefined"!==typeof document){o=Go({},t,o),"number"===typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+i}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=e.read(a,s),t===s)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",Go({},t,{expires:-1}))},withAttributes:function(e){return Wo(this.converter,Go({},this.attributes,e))},withConverter:function(e){return Wo(Go({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Yo=Wo(Ko,{path:"/"});const Qo=Yo,Xo={name:"userCenterCompleteInformation",props:{language:{type:String,default:""},token:{type:String,default:""},customUserTypes:{type:Array,default:function(){return[]}}},data:function(){return{ssoToken:this.token,show:!0,defaultLang:this.getBrowserLanguage(),value:"",timeout:null,queryParams:{pageSize:10,curPage:1,schoolName:""},list:[],gjList:[],loading:!1,form:{userType:null,gjName:"",schoolId:"",schoolName:"",displayName:"",employeeNumber:"",password:"",rePassword:"",isEmptyPwd:!1},source:localStorage.getItem("source"),footMsg:"",footMsg1:"",sptImg:"",whiteList:[],middleQuery:null,middleUrl:null,defaultUserTypes:[{value:1,labelCn:"学生",labelEn:"Student"},{value:2,labelCn:"老师",labelEn:"Teacher"},{value:3,labelCn:"社会学习者",labelEn:"Social Learner"},{value:4,labelCn:"企业用户",labelEn:"Enterprise User"},{value:5,labelCn:"国际学习者",labelEn:"International Learner"},{value:6,labelCn:"国际教师",labelEn:"International Teacher"}],focusedFields:{userName:!1,userType:!1,gjName:!1,displayName:!1,employeeNumber:!1,schoolId:!1,password:!1,rePassword:!1},disableFields:{userName:!1,userType:!1,gjName:!1,displayName:!1,employeeNumber:!1,schoolId:!1,password:!1,rePassword:!1}}},created:function(){this.getUserInfo(),this.getNationList(),document.addEventListener("keydown",this.handleKeyDown)},beforeDestroy:function(){document.removeEventListener("keydown",this.handleKeyDown)},computed:{userTypeOptions:function(){return this.customUserTypes.length>0?this.customUserTypes:this.defaultUserTypes}},methods:{getBrowserLanguage:function(){if(this.language)return"cn"===this.language;var e=navigator.language||navigator.userLanguage||navigator.browserLanguage,t=e.toLowerCase().includes("zh")||e.toLowerCase().includes("cn")||e.toLowerCase().startsWith("zh-");return t},handleKeyDown:function(e){"Escape"===e.key&&this.show},handleOverlayClick:function(){},selectUserType:function(e){var t=this;this.$set(this.form,"userType",e),this.$nextTick(function(){t.$refs.form&&t.$refs.form.clearValidate()})},handleSchoolInput:function(e){this.form.schoolId=e.schoolId},getUserInfo:function(){var e=this;Jo(Qo.get("token")||this.ssoToken).then(function(t){var r=t.data;e.form=r.data,e.form.gjName=e.defaultLang?e.form.cn:e.form.en,e.disableFields.userName=!!e.form.userName,e.disableFields.userType=!!e.form.userType,e.disableFields.gjName=!!e.form.en,e.disableFields.displayName=!!e.form.displayName,e.disableFields.employeeNumber=!!e.form.employeeNumber,e.disableFields.schoolId=!!e.form.schoolId,e.disableFields.password=!!e.form.password,e.disableFields.rePassword=!!e.form.rePassword,1==e.form.userType&&null!=e.form.en&&"China"!=e.form.en?e.form.userType=5:2==e.form.userType&&null!=e.form.en&&"China"!=e.form.en?e.form.userType=6:!e.form.userType&&e.userTypeOptions.length>0&&(e.form.userType=e.userTypeOptions[0].value)})},getUrlCode:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},getSchoolList:function(){var e=this;this.queryParams.userType=5===this.form.userType?1:6===this.form.userType?2:this.form.userType,$o(this.queryParams).then(function(t){var r=t.data;e.loading=!1,e.list=r.data.data})},remoteMethod:function(e){var t=this;this.queryParams.schoolName=e,clearTimeout(this.timeout),""!==e?(this.loading=!0,this.timeout=setTimeout(function(){t.getSchoolList()},500)):this.list=[]},getNationList:function(){var e=this;Ho().then(function(t){var r=t.data;e.gjList=r.data})},submit:function(){var e=this;this.$refs.form.validate(function(t){if(t){if(e.form.password!==e.form.rePassword)return e.$message.error(e.defaultLang?"确认密码,保持一致":"Confirm password and keep it consistent");e.form.displayName=e.form.displayName.replace(/\s/g,""),e.form.employeeNumber=e.form.employeeNumber.replace(/\s/g,""),e.form.isVerifyData=!!e.form.isEmptyPwd;var r=JSON.parse(JSON.stringify(e.form));r.userType=5==r.userType?1:6==r.userType?2:r.userType,qo(r).then(function(t){500==t.data.code?e.$message.warning(t.data.msg):e.$emit("completeInformation")})}})}}};var Zo=n(6262);const ei=(0,Zo.A)(Xo,[["render",x],["__scopeId","data-v-075f8ed0"]]),ti=ei;n(4346);function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ni(e){if(Array.isArray(e))return ri(e)}n(2675),n(9463),n(2259),n(3418),n(3792),n(7764),n(2953);function oi(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n(6918),n(4782),n(3288),n(906);function ii(e,t){if(e){if("string"==typeof e)return ri(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ri(e,t):void 0}}n(6280);function ai(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function si(e){return ni(e)||oi(e)||ii(e)||ai()}var ci={key:0,class:"icve-sso-login-bg"},li={class:"icve-sso-escrool"},ui={class:"icve-sso-title-wrapper"},di={class:"icve-sso-title"},fi=["title"],pi={class:"icve-sso-source_space"},hi={class:"icve-sso-l"},mi={class:"icve-sso-erm"},gi={class:"icve-sso-ri"},vi={class:"icve-sso-tabs"},yi=["title"],bi={class:"icve-sso-customer"},wi={class:"icve-sso-tip"},Ci={key:1,class:"icve-sso-djs"},Ni={class:"icve-sso-customer"},Ei={class:"icve-sso-tip"},ki={key:1,class:"icve-sso-djs"},xi={class:"icve-sso-customer"},Si={class:"icve-sso-tip"},Ti={class:"icve-sso-footer1"},_i={class:"icve-sso-h5"},Bi={class:"icve-sso-h6"},Vi={class:"custom-dialog icve-sso-test icve-sso-test1"},Li={class:"custom-dialog-header"},Oi={class:"custom-dialog-title"},Ii={class:"custom-dialog-body"},Pi={class:"custom-dialog-footer"},Ai={key:1,class:"custom-dialog-overlay"},Di={class:"custom-dialog"},ji={class:"custom-dialog-header"},Fi={class:"custom-dialog-title"},Ri={class:"custom-dialog-body"},Mi={class:"icve-sso-moreUserName"},Ui={class:"icve-sso-lee"},zi=["onClick"],$i={class:"icve-sso-b"},qi={class:"icve-sso-ree"},Hi={class:"custom-dialog-footer"},Ji={key:2,class:"custom-dialog-overlay"},Gi={class:"custom-dialog icve-sso-test icve-sso-test1"},Ki={class:"custom-dialog-header"},Wi={class:"custom-dialog-title"},Yi={class:"custom-dialog-body"},Qi={class:"custom-dialog-footer"},Xi=["disabled"],Zi={key:3,class:"custom-dialog-overlay"},ea={class:"custom-dialog"},ta={class:"custom-dialog-header"},ra={class:"custom-dialog-title"},na={class:"custom-dialog-body"},oa={class:"icve-sso-wxdl"},ia={class:"custom-dialog-footer"},aa={key:4,class:"custom-dialog-overlay"},sa={class:"custom-dialog icve-sso-test",style:{width:"540px"}},ca={class:"custom-dialog-header"},la={class:"custom-dialog-title"},ua={class:"custom-dialog-body"},da={class:"icve-sso-oneYearBeforeLogin"},fa={class:"icve-sso-user-card"},pa={class:"icve-sso-user-info"},ha={class:"icve-sso-user-name"},ma={class:"icve-sso-user-time"},ga={class:"custom-dialog-footer"},va={key:5,class:"custom-dialog-overlay"},ya={class:"custom-dialog"},ba={class:"custom-dialog-header"},wa={class:"custom-dialog-title"},Ca={class:"custom-dialog-body"},Na={class:"custom-dialog"},Ea={class:"custom-dialog-header"},ka={class:"custom-dialog-title"},xa={class:"custom-dialog-body"};function Sa(e,t,n,o,i,a){var s=(0,r.resolveComponent)("QRCodeLogin"),c=(0,r.resolveComponent)("User"),l=(0,r.resolveComponent)("el-icon"),u=(0,r.resolveComponent)("el-input"),d=(0,r.resolveComponent)("el-form-item"),f=(0,r.resolveComponent)("Lock"),p=(0,r.resolveComponent)("agreement"),h=(0,r.resolveComponent)("el-form"),m=(0,r.resolveComponent)("Iphone"),g=(0,r.resolveComponent)("el-scrollbar"),v=(0,r.resolveComponent)("el-checkbox"),y=(0,r.resolveComponent)("MobileBinding"),b=(0,r.resolveComponent)("improveInformation"),w=(0,r.resolveComponent)("NationalitySelector"),C=(0,r.resolveComponent)("verifyComponents");return e.loginShow?((0,r.openBlock)(),(0,r.createElementBlock)("div",ci,[(0,r.createElementVNode)("div",li,[(0,r.createVNode)(g,{style:{height:"100%"}},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",ui,[(0,r.createElementVNode)("div",di,(0,r.toDisplayString)(e.wxRandom?e.i18n("微信绑定"):e.i18n("欢迎登录")),1),(0,r.createElementVNode)("div",{class:"icve-sso-close-btn",onClick:t[0]||(t[0]=function(){return e.closeLoginModal&&e.closeLoginModal.apply(e,arguments)}),title:e.i18n("关闭")},si(t[28]||(t[28]=[(0,r.createElementVNode)("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),8,fi)]),(0,r.createElementVNode)("div",pi,[(0,r.createElementVNode)("div",hi,[(0,r.createElementVNode)("div",mi,[(0,r.createVNode)(s,{onLoginSuccess:e.wxLoginSuccess},null,8,["onLoginSuccess"])])]),t[32]||(t[32]=(0,r.createElementVNode)("div",{class:"icve-sso-xian"},null,-1)),(0,r.createElementVNode)("div",gi,[(0,r.createElementVNode)("div",vi,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(2==e.tab?"icve-sso-spanActive":""),onClick:t[1]||(t[1]=function(t){return e.handleClick(2)})},(0,r.toDisplayString)("cn"==e.currentLocale?e.i18n("手机验证码登录"):e.i18n("邮箱登录")),3),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(1==e.tab?"icve-sso-spanActive":""),onClick:t[2]||(t[2]=function(t){return e.handleClick(1)})},(0,r.toDisplayString)(e.i18n("账号密码登录")),3),(0,r.createElementVNode)("div",{class:"icve-sso-qiehuan",onClick:t[3]||(t[3]=function(){return e.changeLanguage&&e.changeLanguage.apply(e,arguments)})},[(0,r.createElementVNode)("a",{title:e.i18n("中->英"),href:"#"},si(t[29]||(t[29]=[(0,r.createElementVNode)("img",{alt:"",src:"https://file.icve.com.cn/rc/927/697/E7CAE67C9BE854D9BB773D4AC5A6940D.png"},null,-1)])),8,yi)]),t[30]||(t[30]=(0,r.createElementVNode)("div",{class:"icve-sso-xian1"},null,-1))]),1==e.tab?((0,r.openBlock)(),(0,r.createBlock)(h,{ref:"form",model:e.form,class:"icve-sso-demo-ruleForm",key:1},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{rules:[{required:!0,message:e.i18n("请输入账号"),trigger:"blur"}],label:"",prop:"userName"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{modelValue:e.form.userName,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.form.userName=t}),placeholder:e.i18n("请输入账号")},{prefix:(0,r.withCtx)(function(){return[(0,r.createVNode)(l,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c)]}),_:1})]}),_:1},8,["modelValue","placeholder"])]}),_:1},8,["rules"]),(0,r.createVNode)(d,{rules:[{required:!0,message:e.i18n("请输入密码"),trigger:"blur"}],label:"",prop:"password"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{modelValue:e.form.password,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.form.password=t}),placeholder:e.i18n("请输入密码"),"show-password":""},{prefix:(0,r.withCtx)(function(){return[(0,r.createVNode)(l,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f)]}),_:1})]}),_:1},8,["modelValue","placeholder"])]}),_:1},8,["rules"]),(0,r.createVNode)(p,{ref:"agreement",source:e.source,onChange:e.change},null,8,["source","onChange"]),(0,r.createElementVNode)("div",{class:"icve-sso-login",onClick:t[6]||(t[6]=function(){return e.login&&e.login.apply(e,arguments)})},(0,r.toDisplayString)(e.wxRandom?e.i18n("账号绑定"):e.i18n("登录")),1),(0,r.createElementVNode)("div",bi,[(0,r.createElementVNode)("div",wi,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.i18n("手机号登录新用户自动注册")),1)])])]}),_:1},8,["model"])):(0,r.createCommentVNode)("",!0),2==e.tab&&"cn"==e.currentLocale?((0,r.openBlock)(),(0,r.createBlock)(h,{ref:"phoneForm",model:e.phoneForm,key:2,class:"icve-sso-demo-ruleForm"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{rules:e.isRules?[{required:!0,message:e.i18n("请输入手机号"),trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:e.i18n("手机号码格式错误"),trigger:"change"}]:[],class:"icve-sso-Prefix",label:"",prop:"mobile"},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",{class:"icve-sso-prefix",onClick:t[7]||(t[7]=function(){return e.showNationalityModal&&e.showNationalityModal.apply(e,arguments)})},(0,r.toDisplayString)(e.gjMsg),1),(0,r.createVNode)(u,{modelValue:e.phoneForm.mobile,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.phoneForm.mobile=t}),placeholder:e.i18n("请输入手机号"),class:"icve-sso-mobile_login"},{prefix:(0,r.withCtx)(function(){return[(0,r.createVNode)(l,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m)]}),_:1})]}),_:1},8,["modelValue","placeholder"])]}),_:1},8,["rules"]),(0,r.createVNode)(d,{class:(0,r.normalizeClass)(e.txyzmShow?"icve-sso-Code1":"icve-sso-Code"),rules:[{required:!0,message:e.i18n("请输入验证码"),trigger:"blur"}],label:"",prop:"msgCode"},{default:(0,r.withCtx)(function(){return[t[31]||(t[31]=(0,r.createElementVNode)("img",{alt:"",class:"icve-sso-code",src:"https://file.icve.com.cn/rc/737/546/B8588913D6F3ACDCC1275979123080D6.png"},null,-1)),(0,r.createVNode)(u,{modelValue:e.phoneForm.msgCode,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.phoneForm.msgCode=t}),placeholder:e.i18n("请输入验证码"),"prefix-icon":""},null,8,["modelValue","placeholder"]),e.sms_timer?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ci,(0,r.toDisplayString)(e.sms_time_count+e.i18n("秒重获")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"icve-sso-djs",onClick:t[10]||(t[10]=function(){return e.obtain&&e.obtain.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("获取验证码")),1))]}),_:1},8,["class","rules"]),(0,r.createVNode)(p,{ref:"agreement",source:e.source,onChange:e.change},null,8,["source","onChange"]),(0,r.createElementVNode)("div",{class:"icve-sso-login",onClick:t[11]||(t[11]=function(){return e.phonVerify&&e.phonVerify.apply(e,arguments)})},(0,r.toDisplayString)(e.wxRandom?e.i18n("账号绑定"):e.i18n("登录")),1),(0,r.createElementVNode)("div",Ni,[(0,r.createElementVNode)("div",Ei,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.i18n("手机号登录新用户自动注册")),1)])])]}),_:1},8,["model"])):(0,r.createCommentVNode)("",!0),2==e.tab&&"en"==e.currentLocale?((0,r.openBlock)(),(0,r.createBlock)(h,{ref:"emailForm",model:e.emailForm,key:3,class:"icve-sso-demo-ruleForm"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{rules:[{required:!0,message:e.i18n("请输入邮箱"),trigger:"blur"}],label:"",prop:"email"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{modelValue:e.emailForm.email,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.emailForm.email=t}),placeholder:e.i18n("请输入邮箱")},null,8,["modelValue","placeholder"])]}),_:1},8,["rules"]),(0,r.createVNode)(d,{rules:[{required:!0,message:e.i18n("请输入邮箱验证码"),trigger:"blur"}],class:"icve-sso-Code",label:"",prop:"msgCode"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{modelValue:e.emailForm.msgCode,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.emailForm.msgCode=t}),placeholder:e.i18n("请输入邮箱验证码"),"prefix-icon":""},null,8,["modelValue","placeholder"]),e.sms_timer?((0,r.openBlock)(),(0,r.createElementBlock)("div",ki,(0,r.toDisplayString)(e.sms_time_count+e.i18n("秒重获")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"icve-sso-djs",onClick:t[14]||(t[14]=function(){return e.emailObtain&&e.emailObtain.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("获取验证码")),1))]}),_:1},8,["rules"]),(0,r.createVNode)(p,{ref:"agreement",source:e.source,onChange:e.change},null,8,["source","onChange"]),(0,r.createElementVNode)("div",{class:"icve-sso-login",onClick:t[15]||(t[15]=function(){return e.emailLogin&&e.emailLogin.apply(e,arguments)})},(0,r.toDisplayString)(e.wxRandom?e.i18n("账号绑定"):e.i18n("登录")),1),(0,r.createElementVNode)("div",xi,[(0,r.createElementVNode)("div",Si,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.i18n("邮箱登录新用户自动注册")),1)])])]}),_:1},8,["model"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createElementVNode)("div",Ti,[(0,r.createElementVNode)("div",_i,(0,r.toDisplayString)(e.footMsg),1),(0,r.createElementVNode)("div",Bi,(0,r.toDisplayString)(e.footMsg1),1)])]}),_:1})]),e.testShow?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"custom-dialog-overlay",onClick:t[17]||(t[17]=(0,r.withModifiers)(function(){return e.handleClose&&e.handleClose.apply(e,arguments)},["self"]))},[(0,r.createElementVNode)("div",Vi,[(0,r.createElementVNode)("div",Li,[(0,r.createElementVNode)("h3",Oi,(0,r.toDisplayString)(e.i18n("提示")),1)]),(0,r.createElementVNode)("div",Ii,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.test),1)]),(0,r.createElementVNode)("div",Pi,[(0,r.createElementVNode)("button",{class:"custom-primary-button",onClick:t[16]||(t[16]=function(){return e.handleClose&&e.handleClose.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("确定")),1)])])])):(0,r.createCommentVNode)("",!0),e.isMultipleAccountShow?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ai,[(0,r.createElementVNode)("div",Di,[(0,r.createElementVNode)("div",ji,[(0,r.createElementVNode)("h3",Fi,(0,r.toDisplayString)(e.i18n("安全提醒:检测到当前手机号已绑定多个账号。为保障账户安全,本次登录后,未选择的账号将自动解除手机号绑定。")),1)]),(0,r.createElementVNode)("div",Ri,[(0,r.createElementVNode)("div",Mi,[(0,r.createElementVNode)("ul",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.accountList,function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t.id},[(0,r.createElementVNode)("div",Ui,[(0,r.createElementVNode)("div",{class:"icve-sso-tp",onClick:function(r){return e.phonechange(t.userName)}},(0,r.toDisplayString)(t.userName),9,zi),(0,r.createElementVNode)("div",$i,(0,r.toDisplayString)(e.i18n("最后登录时间"))+":"+(0,r.toDisplayString)(t.dateLastVisit||"--"),1)]),(0,r.createElementVNode)("div",qi,[(0,r.createVNode)(v,{modelValue:t.checked,"onUpdate:modelValue":function(e){return t.checked=e},onChange:function(r){return e.inverseSelected(t,n)}},null,8,["modelValue","onUpdate:modelValue","onChange"])])])}),128))])])]),(0,r.createElementVNode)("div",Hi,[(0,r.createElementVNode)("button",{class:"custom-primary-button",onClick:t[18]||(t[18]=function(){return e.multipleAccountSubmit&&e.multipleAccountSubmit.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("确定")),1)])])])):(0,r.createCommentVNode)("",!0),e.ishbzhShow?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ji,[(0,r.createElementVNode)("div",Gi,[(0,r.createElementVNode)("div",Ki,[(0,r.createElementVNode)("h3",Wi,(0,r.toDisplayString)(e.i18n("提示")),1)]),(0,r.createElementVNode)("div",Yi,[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("检测到该手机号绑定了多个账号,账号名称为:"))+" ",1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.accountList,function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{key:t},(0,r.toDisplayString)(e.userName.replace(/^(.{2}).+(.)/,"$1**$2"))+"("+(0,r.toDisplayString)(e.userType)+"),",1)}),128)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.i18n("建议您合并多余账号")),1)]),(0,r.createElementVNode)("div",Qi,[(0,r.createElementVNode)("button",{class:"custom-plain-button",onClick:t[19]||(t[19]=function(t){e.ishbzhShow=!1,e.isMultipleAccountShow=!0})},(0,r.toDisplayString)(e.i18n("继续登录")),1),(0,r.createElementVNode)("button",{class:"custom-primary-button",disabled:!e.isMerged,onClick:t[20]||(t[20]=function(){return e.hbtiaozhuan&&e.hbtiaozhuan.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("合并账号")),9,Xi)])])])):(0,r.createCommentVNode)("",!0),e.bdwxShow?((0,r.openBlock)(),(0,r.createElementBlock)("div",Zi,[(0,r.createElementVNode)("div",ea,[(0,r.createElementVNode)("div",ta,[(0,r.createElementVNode)("h3",ra,(0,r.toDisplayString)(e.i18n("微信绑定")),1)]),(0,r.createElementVNode)("div",na,[(0,r.createElementVNode)("div",oa,[(0,r.createVNode)(s,{onLoginSuccess:e.wxLoginSuccess,bdwxShow:e.bdwxShow},null,8,["onLoginSuccess","bdwxShow"])])]),(0,r.createElementVNode)("div",ia,[(0,r.createElementVNode)("button",{class:"custom-plain-button",onClick:t[21]||(t[21]=function(){return e.bztx&&e.bztx.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("不再提醒")),1),(0,r.createElementVNode)("button",{class:"custom-primary-button",onClick:t[22]||(t[22]=function(){return e.xcbd&&e.xcbd.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("下次绑定")),1)])])])):(0,r.createCommentVNode)("",!0),e.isOneYearBeforeLogin?((0,r.openBlock)(),(0,r.createElementBlock)("div",aa,[(0,r.createElementVNode)("div",sa,[(0,r.createElementVNode)("div",ca,[(0,r.createElementVNode)("h3",la,(0,r.toDisplayString)(e.i18n("安全提醒:检测到当前手机号已绑定多个账号,且部分账号已超过一年未登录。为保障账户安全,这些长期未登录的账号将自动解除手机号绑定。")),1)]),(0,r.createElementVNode)("div",ua,[(0,r.createElementVNode)("div",da,[(0,r.createElementVNode)("ul",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.userList,function(n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:o},[(0,r.createElementVNode)("div",fa,[t[34]||(t[34]=(0,r.createStaticVNode)('<div class="icve-sso-user-avatar"><svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="20" fill="#E8F0FE"></circle><path d="M20 20C22.7614 20 25 17.7614 25 15C25 12.2386 22.7614 10 20 10C17.2386 10 15 12.2386 15 15C15 17.7614 17.2386 20 20 20Z" fill="#004B90"></path><path d="M28 30C28 25.5817 24.4183 22 20 22C15.5817 22 12 25.5817 12 30" stroke="#004B90" stroke-width="2" stroke-linecap="round"></path></svg></div>',1)),(0,r.createElementVNode)("div",pa,[(0,r.createElementVNode)("div",ha,(0,r.toDisplayString)(n.userName),1),(0,r.createElementVNode)("div",ma,[t[33]||(t[33]=(0,r.createElementVNode)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13Z",stroke:"#95A1BC","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElementVNode)("path",{d:"M7 3.5V7L9 9",stroke:"#95A1BC","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.i18n("最后登录时间"))+": "+(0,r.toDisplayString)(n.dateLastVisit||"--"),1)])])])])}),128))])])]),(0,r.createElementVNode)("div",ga,[(0,r.createElementVNode)("button",{class:"custom-primary-button",onClick:t[23]||(t[23]=function(){return e.oneYearBeforeLogin&&e.oneYearBeforeLogin.apply(e,arguments)})},(0,r.toDisplayString)(e.i18n("确定")),1)])])])):(0,r.createCommentVNode)("",!0),e.phoneBindShow?((0,r.openBlock)(),(0,r.createElementBlock)("div",va,[(0,r.createElementVNode)("div",ya,[(0,r.createElementVNode)("div",ba,[(0,r.createElementVNode)("h3",wa,(0,r.toDisplayString)(e.i18n("手机绑定")),1)]),(0,r.createElementVNode)("div",Ca,[(0,r.createVNode)(y,{userId:e.userId,mobileType:e.mobileType,onLoginSuccess:t[24]||(t[24]=function(t){return e.loginSuccess(e.tzToken)})},null,8,["userId","mobileType"])])])])):(0,r.createCommentVNode)("",!0),e.editPasswordShow?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:6,class:"custom-dialog-overlay",onClick:t[26]||(t[26]=(0,r.withModifiers)(function(){return e.xcbd&&e.xcbd.apply(e,arguments)},["self"]))},[(0,r.createElementVNode)("div",Na,[(0,r.createElementVNode)("div",Ea,[(0,r.createElementVNode)("h3",ka,(0,r.toDisplayString)(e.isWeakPwd?e.i18n("您当前设置的密码强度不足,存在安全风险,请尽快修改为更复杂的密码。"):e.i18n("首次登录完善基本信息")),1)]),(0,r.createElementVNode)("div",xa,[(0,r.createVNode)(b,{weakPwd:e.isWeakPwd,tzToken:e.tzToken,onLoginSuccess:t[25]||(t[25]=function(t){return e.loginSuccess(e.tzToken)})},null,8,["weakPwd","tzToken"])])])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(w,{value:e.nationalityModalShow,onChange:e.handleNationalityChange,onClose:t[27]||(t[27]=function(t){return e.nationalityModalShow=!1})},null,8,["value","onChange"]),e.loadLanguage?((0,r.openBlock)(),(0,r.createBlock)(C,{key:7,ref:"verifyComponents",onSuccess:e.CaptchaSuccess},null,8,["onSuccess"])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)}n(4170),n(9904),n(875),n(3548),n(287),n(4185);function Ta(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ta=function(e,t,r,n){function i(t,r){Ta(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Ta(e,t,r,n)}function _a(){
6
6
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
7
- var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,l=Object.create(c.prototype);return Ta(l,"_invoke",function(r,n,o){var i,s,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,c=e,f.n=r,a}};function p(r,n){for(s=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i["return"])&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Ta(t={},n,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ta(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Ta(d,"constructor",l),Ta(l,"constructor",c),c.displayName="GeneratorFunction",Ta(l,o,"GeneratorFunction"),Ta(d),Ta(d,o,"Generator"),Ta(d,n,function(){return this}),Ta(d,"toString",function(){return"[object Generator]"}),(_a=function(){return{w:i,m:f}})()}function Ba(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Va(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Ba(i,n,o,a,s,"next",e)}function s(e){Ba(i,n,o,a,s,"throw",e)}a(void 0)})}}n(2008),n(1629),n(4114),n(8111),n(2489),n(7588),n(7945),n(3851),n(1278),n(3500);function La(e){return La="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},La(e)}n(5700),n(9572),n(8130);function Oa(e,t){if("object"!=La(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=La(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Ia(e){var t=Oa(e,"string");return"symbol"==La(t)?t:t+""}function Pa(e,t,r){return(t=Ia(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Da(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach(function(t){Pa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}n(5086),n(3579),n(9391),n(2781);var ja={class:"icve-sso-agreement"},Fa={class:""};function Ra(e,t,n,o,i,a){var s=(0,r.resolveComponent)("el-checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ja,[(0,r.createVNode)(s,{modelValue:i.checked,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.checked=e}),class:"el",onChange:a.change},null,8,["modelValue","onChange"]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(7==n.source?"content1":"content")},[(0,r.createElementVNode)("div",Fa,[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("我已阅读并同意"))+" ",1),(0,r.createElementVNode)("span",{onClick:t[1]||(t[1]=function(){return a.userServices&&a.userServices.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("用户服务协议")),1),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.i18n(","))+" ",1),(0,r.createElementVNode)("span",{onClick:t[2]||(t[2]=function(){return a.userPrivacy&&a.userPrivacy.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("隐私协议")),1)]),"cn"==e.currentLocale&&n.show?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"r",onClick:t[3]||(t[3]=function(){return a.recoverYourPassword&&a.recoverYourPassword.apply(a,arguments)})},[t[5]||(t[5]=(0,r.createElementVNode)("img",{alt:"",src:"https://file.icve.com.cn/rc/111/261/1BD417BB2DC8C71CEF3B304913617EC4.png"},null,-1)),(0,r.createElementVNode)("u",null,(0,r.toDisplayString)(e.i18n("找回用户名或密码,请点击")),1)])):(0,r.createCommentVNode)("",!0)],2),"en"==e.currentLocale&&n.show?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"ren",onClick:t[4]||(t[4]=function(){return a.recoverYourPassword&&a.recoverYourPassword.apply(a,arguments)})},[t[6]||(t[6]=(0,r.createElementVNode)("img",{alt:"",src:"https://file.icve.com.cn/rc/111/261/1BD417BB2DC8C71CEF3B304913617EC4.png"},null,-1)),(0,r.createElementVNode)("u",null,(0,r.toDisplayString)(e.i18n("找回用户名或密码,请点击")),1)])):(0,r.createCommentVNode)("",!0)])}function Ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ua(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ia(n.key),n)}}function za(e,t,r){return t&&Ua(e.prototype,t),r&&Ua(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}const $a=JSON.parse('{"手机绑定":"Phone Binding","请输入验证码":"Code","获取验证码":"Send Code","请输入手机号":"Please enter your phone number","手机号码格式错误":"Mobile phone number format error","秒重获":"Seconds to reacquire","中->英":"English ->Chinese","欢迎登录":"Log in to learn in ICVE","账号密码登录":"Account Log in with","手机验证码登录":"Mobile login","请输入账号":"Account","请输入密码":"Password","请输入新密码":"Please enter a new password","姓名":"Name","新密码":"New password","学校或企业":"School or enterprise","点击进行验证":"Click to verify","向右滑动完成验证":"Swipe to the right to complete verification","请完成安全验证":"Please complete the security verification","我已阅读并同意":"I have read and agreed to ","用户协议及隐私协议":"User Agreement and Privacy Agreement","已阅读并同意用户协议,隐私协议":"Already read and agreed to the user agreement and privacy policy","用户服务协议":"the User Service Agreement","隐私协议":"Privacy Agreement","忘记密码":"Forget password","登录":"Log in","注册":"Register","联系客服":"Contact customer service","《国家职业教育智慧教育平台用户协议》":"《National Vocational Education and Training Intelligent Education Platform User Agreement》","《国家职业教育智慧教育平台隐私协议》":"《National Vocational Education and Training Intelligent Education Platform Privacy Agreement》","京公网安备 11010202007836号 京ICP备 12020869号-19":"Jing Gong Wang An Bei No. 11010202007836 Jing ICP Bei No. 12020869-19","Copyright© 2026 国家职业教育智慧教育平台":"Copyright © 2026 National Vocational Education and Training Intelligent Education Platform","Copyright© 2026 湖北职业教育智慧教育平台":"Copyright © 2026 Hubei Vocational Education and Training Intelligent Education Platform","Copyright©2026 高等教育出版社":"Copyright © 2026 Higher Education Press","京ICP备 09059518号-20 京公网安备 11010202007836号":"Beijing ICP No. 09059518-20 Beijing Public Security No. 11010202007836","请仔细阅读用户协议,隐私协议并勾":"Please carefully read the user agreement, privacy agreement and check","请点击验证":"Click to verify","手机号为空或手机号格式不正确":"Mobile phone number is empty or the mobile phone number format is incorrect","登录成功":"Login successful","密码包含大写 小写 特殊字符 数字,大于8位,小于50位":"Password contains capital letters, lowercase letters, special characters, numbers, greater than 8 bits, less than 50 bits","至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)":"At least three classes of characters (capital, lowercase, number, special character) are included, length (8~50 bits)","密码修改成功":"Password modification successful","账号注册":"Account registration","已有账号":"Existing account","立即登录":"Log in now","返回":"return","国籍":"nationality","单位列表":"Unit List","请选择身份类型":"Please select identity type","身份类型":"Identity Type","学生":"student","老师":"teacher","社会学习者":"Social learners","企业用户":"corporate user","国际学习者":"International learners","国际教师":"International teachers","点击选择国籍":"Click to select nationality","单位名称":"Unit Name","工号/学号":"Employee ID/Student ID","真实姓名":"Real Name","性别":"Gender","男":"Male","女":"Female","用户名需符合以下格式:6-20位(字母+数字)":"The username must conform to the following format: 6-20 characters (letters+numbers)","确认密码,保持一致":"Confirm password and keep it consistent","出生日期":"Date of Birth:","注册信息填写不完整":"Incomplete registration information filled in","两次密码输入不一致,请重新输入":"The password entered twice is inconsistent. Please re-enter","注册成功":"registered successfully","账号验证":"Account verification","修改密码":"Change password","完成":"complete","下一步":"Next step","验证通过,您需要修改密码的用户名为":"Verification passed, the username for which you need to change your password is","修改成功":"Modified successfully","去登录":"Log in","账号绑定":"Account Binding","立即绑定":"Bind Now","账号绑定成功":"Account binding successful","还没有账号?":"Don\'t have an account yet?","立即注册":"Register Now","该手机号下拥有多个账号,请选择要进行登录的账号!":"There are multiple accounts under this phone number, please select the account you want to log in to!","请选择要进行登录的账号":"Please select the account to log in to","手机号绑定":"Phone number binding","下次绑定":"Next binding","提交绑定":"Submit binding","取消":"Cancel","确定":"confirm","您当前设置的密码强度不足,存在安全风险,请尽快修改为更复杂的密码。":"The password strength you have set is insufficient and poses a security risk. Please change it to a more complex password as soon as possible.","微信扫码二维码":"Scan QR code on WeChat","不再提醒":"Do not remind again","中国大陆":"Chinese Mainland","手机号验证":"Mobile number verification","无手机号验证":"No phone number verification","该手机号为后续账号绑定手机号":"This phone number is the phone number for subsequent account binding","请选择需修改账号":"Please select the account to be modified","最后登录时间":"last login time","单位未填写":"Unit not filled in","工号未填写":"The job number is not filled in","姓名未填写":"Name not filled in","找回用户名或密码,请点击":"Forgot Account or Password?","该手机号绑定多个账号请选择":"This phone number is bound to multiple accounts. Please select","您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:":"Your username has been changed, and old users will no longer be able to log in. The changed username is called:","手机号登录新用户自动注册":"Mobile phone number login, new user automatic registration","邮箱登录新用户自动注册":"New users will be auto-registered","提示":"prompt","检测到该手机号绑定了多个账号,账号名称为:":"Detected that the phone number is bound to multiple accounts, with the account name being:","建议您合并多余账号":"I suggest you merge your excess accounts!","继续登录":"Continue Login","合并账号":"Merge accounts","验证身份":"Verify identity","立即验证":"Verify Now","去重置":"Go reset","重置密码":"Reset password","重置成功":"Reset successful","提交":"submit","首次登录完善基本信息":"Improve basic information","请输入姓名":"Please enter your name","请输入学校或企业":"Please enter school or enterprise","请输入邮箱地址":"Please enter your email address","邮箱格式不正确":"Email format incorrect","请输入邮箱":"Email","请输入邮箱验证码":"Verification code","邮箱登录":"Email Log in with","邮箱注册":"Please enter the email verification code","手机号注册":"Mobile number registration","用户名":"enter one user name","密码":"Password","手机号":"mobile phone number","确认密码":"Confirm Password","用户名称":"Username","您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?":"The phone number you entered has already been bound to the following account. Binding to this account will automatically unbind the original bound account. Are you sure?","绑定手机":"Bind mobile phone","请选择学校或企业":"Please choose a school or enterprise","安全提醒:检测到当前手机号已绑定多个账号,且部分账号已超过一年未登录。为保障账户安全,这些长期未登录的账号将自动解除手机号绑定。":"Security Reminder: Multiple accounts have been linked to the current phone number, and some accounts have not been logged in for over a year. To ensure account security, these accounts that have not been logged in for a long time will automatically have their phone numbers unbound.","安全提醒:检测到当前手机号已绑定多个账号。为保障账户安全,本次登录后,未选择的账号将自动解除手机号绑定。":"Security reminder: Multiple accounts have been linked to the current phone number. To ensure account security, unselected accounts will be automatically unlinked after this login.","微信或App扫码均可登录":"Scan with Wechat or ICVE+ APP","你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~":"Your current WeChat account or email has not been linked yet. You need to complete the binding first, and there will be no need for repeated verification when logging in later. Just enter directly","微信绑定":"WeChat Binding","密码不能为空":"Password cannot be empty",",":"and","已扫码":"Scanned","请在手机上确认":"Please confirm on your phone","重新扫码":"Rescan QR code","二维码已过期":"The QR code has expired","请点击下方按钮刷新":"Please click the button below to refresh","重新生成":"regenerate","微信绑定成功":"WeChat binding is successful","微信扫码进行账号绑定":"Scan the QR code with WeChat to bind the account","关闭":"Close","请先选择要登录的账号":"Please select the account to log in to"}'),qa=JSON.parse('{"手机绑定":"手机绑定","请输入验证码":"请输入验证码","获取验证码":"获取验证码","请输入手机号":"请输入手机号","手机号码格式错误":"手机号码格式错误","秒重获":"秒重获","中->英":"中->英","欢迎登录":"欢迎登录","账号密码登录":"账号密码登录","手机验证码登录":"手机验证码登录","请输入账号":"请输入账号","请输入密码":"请输入密码","请输入新密码":"请输入新密码","姓名":"姓名","新密码":"新密码","学校或企业":"学校或企业","点击进行验证":"点击进行验证","向右滑动完成验证":"向右滑动完成验证","请完成安全验证":"请完成安全验证","我已阅读并同意":"我已阅读并同意","用户服务协议":"用户服务协议","隐私协议":"隐私协议","忘记密码":"忘记密码","登录":"登录","注册":"注册","联系客服":"联系客服","《国家职业教育智慧教育平台用户协议》":"《国家职业教育智慧教育平台用户协议》","《国家职业教育智慧教育平台隐私协议》":"《国家职业教育智慧教育平台隐私协议》","京公网安备 11010202007836号 京ICP备 12020869号-19":"京公网安备 11010202007836号 京ICP备 12020869号-19","Copyright© 2026 国家职业教育智慧教育平台":"Copyright© 2026 国家职业教育智慧教育平台","Copyright© 2026 湖北职业教育智慧教育平台":"Copyright© 2026 湖北职业教育智慧教育平台","Copyright©2026 高等教育出版社":"Copyright©2026 高等教育出版社","京ICP备 09059518号-20 京公网安备 11010202007836号":"京ICP备 09059518号-20 京公网安备 11010202007836号","请仔细阅读用户协议,隐私协议并勾选":"请仔细阅读用户协议,隐私协议并勾选","已阅读并同意用户协议,隐私协议":"已阅读并同意用户协议,隐私协议","用户协议及隐私协议":"用户协议及隐私协议","请点击验证":"请点击验证","手机号为空或手机号格式不正确":"手机号为空或手机号格式不正确","登录成功":"登录成功","密码包含大写 小写 特殊字符 数字,大于8位,小于50位":"密码包含大写 小写 特殊字符 数字,大于8位,小于50位","至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)":"至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)","密码修改成功":"密码修改成功","账号注册":"账号注册","已有账号":"已有账号","立即登录":"立即登录","返回":"返回","国籍":"国籍","单位列表":"单位列表","请选择身份类型":"请选择身份类型","身份类型":"身份类型","学生":"学生","老师":"老师","社会学习者":"社会学习者","企业用户":"企业用户","国际学习者":"国际学习者","国际教师":"国际教师","点击选择国籍":"点击选择国籍","单位名称":"单位名称","工号/学号":"工号/学号","真实姓名":"真实姓名","性别":"性别","男":"男","女":"女","用户名需符合以下格式:6-20位(字母+数字)":"用户名需符合以下格式:6-20位(字母+数字)","确认密码,保持一致":"确认密码,保持一致","出生日期":"出生日期","注册信息填写不完整":"注册信息填写不完整","两次密码输入不一致,请重新输入":"两次密码输入不一致,请重新输入","注册成功":"注册成功","账号验证":"账号验证","修改密码":"修改密码","完成":"完成","下一步":"下一步","验证通过,您需要修改密码的用户名为":" 验证通过,您需要修改密码的用户名为","修改成功":"修改成功","去登录":"去登录","账号绑定":"账号绑定","立即绑定":"立即绑定","账号绑定成功":"账号绑定成功","还没有账号?":"还没有账号?","立即注册":"立即注册","该手机号下拥有多个账号,请选择要进行登录的账号!":"该手机号下拥有多个账号,请选择要进行登录的账号!","请选择要进行登录的账号":"请选择要进行登录的账号","手机号绑定":"手机号绑定","下次绑定":"下次绑定","提交绑定":"提交绑定","取消":"取消","确定":"确定","您当前设置的密码强度不足,存在安全风险,请尽快修改为更复杂的密码。":"您当前设置的密码强度不足,存在安全风险,请尽快修改为更复杂的密码。","微信扫码二维码":"微信扫码二维码","不再提醒":"不再提醒","中国大陆":"中国大陆","手机号验证":"手机号验证","无手机号验证":"无手机号验证","该手机号为后续账号绑定手机号":"该手机号为后续账号绑定手机号","请选择需修改账号":"请选择需修改账号","最后登录时间":"最后登录时间","单位未填写":"单位未填写","工号未填写":"工号未填写","姓名未填写":"姓名未填写","找回用户名或密码,请点击":"找回用户名或密码,请点击","该手机号绑定多个账号请选择":"该手机号绑定多个账号请选择","您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:":"您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:","手机号登录新用户自动注册":"手机号登录新用户自动注册","邮箱登录新用户自动注册":"邮箱登录新用户自动注册","提示":"提示","检测到该手机号绑定了多个账号,账号名称为:":"检测到该手机号绑定了多个账号,账号名称为:","建议您合并多余账号":"建议您合并多余账号!","继续登录":"继续登录","合并账号":"合并账号","验证身份":"验证身份","立即验证":"立即验证","去重置":"去重置","重置密码":"重置密码","重置成功":"重置成功","提交":"提交","首次登录完善基本信息":"完善基本信息","请输入姓名":"请输入姓名","请输入学校或企业":"请输入学校或企业","请输入邮箱地址":"请输入邮箱地址","邮箱格式不正确":"邮箱格式不正确","请输入邮箱":"请输入邮箱","请输入邮箱验证码":"请输入邮箱验证码","邮箱登录":"邮箱登录","邮箱注册":"邮箱注册","手机号注册":"手机号注册","用户名":"请输入用户名","密码":"密码","手机号":"手机号","确认密码":"确认密码","用户名称":"用户名称","您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?":"您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?","绑定手机":"绑定手机","请选择学校或企业":"请选择学校或企业","安全提醒:检测到当前手机号已绑定多个账号,且部分账号已超过一年未登录。为保障账户安全,这些长期未登录的账号将自动解除手机号绑定。":"安全提醒:检测到当前手机号已绑定多个账号,且部分账号已超过一年未登录。为保障账户安全,这些长期未登录的账号将自动解除手机号绑定。","安全提醒:检测到当前手机号已绑定多个账号。为保障账户安全,本次登录后,未选择的账号将自动解除手机号绑定。":"安全提醒:检测到当前手机号已绑定多个账号。为保障账户安全,本次登录后,未选择的账号将自动解除手机号绑定。","微信或App扫码均可登录":"微信或App扫码均可登录","你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~":"你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~","微信绑定":"微信绑定","密码不能为空":"密码不能为空",",":",","已扫码":"已扫码","请在手机上确认":"请在手机上确认","重新扫码":"重新扫码","二维码已过期":"二维码已过期","请点击下方按钮刷新":"请点击下方按钮刷新","重新生成":"重新生成","微信绑定成功":"微信绑定成功","微信扫码进行账号绑定":"微信扫码进行账号绑定","关闭":"关闭","请先选择要登录的账号":"请先选择要登录的账号"}');var Ha={en:$a,cn:qa},Ja=(0,r.reactive)({locale:localStorage.getItem("language")||"cn"}),Ga=function(){function e(){Ma(this,e),this.messages=Ha,this.state=Ja}return za(e,[{key:"locale",get:function(){return this.state.locale},set:function(e){this.messages[e]?(this.state.locale=e,localStorage.setItem("language",e)):console.warn("Locale ".concat(e," not found"))}},{key:"t",value:function(e){var t=this.state.locale,r=this.messages[t],n=r?r[e]:void 0;return void 0!==n?n:(console.warn("Missing translation for key: ".concat(e," in locale: ").concat(t)),e)}}])}(),Ka=new Ga;const Wa={install:function(e){e.config.globalProperties.$t=function(e){return Ka.t(e)},e.config.globalProperties.$i18n={get locale(){return Ka.locale},set locale(e){Ka.locale=e}}},t:function(e){return Ka.t(e)},get locale(){return Ka.locale},set locale(e){Ka.locale=e}},Ya={data:function(){return{currentLocale:Wa.locale}},computed:{$i18n:function(){return{get locale(){return Wa.locale},set locale(e){Wa.locale=e,this.currentLocale=e}}}},methods:{i18n:function(e){return Wa.t(e)},$t:function(e){return this.i18n(e)}},watch:{"$i18n.locale":function(e){this.currentLocale=e}}},Qa={name:"agreement",mixins:[Ya],props:{source:{type:String,default:0},show:{type:Boolean,default:!0}},data:function(){return{checked:!1}},methods:{userServices:function(){window.open("https://sso.icve.com.cn/userAgreement")},userPrivacy:function(){window.open("https://sso.icve.com.cn/privacyAgreement")},recoverYourPassword:function(){"test"===sessionStorage.getItem("environment")?window.open("https://testssov2.icve.com.cn/sso/forgotPassword"):window.open("https://sso.icve.com.cn/sso/forgotPassword")},change:function(e){this.$emit("change",e)}},created:function(){}},Xa=(0,Zo.A)(Qa,[["render",Ra],["__scopeId","data-v-13fe3570"]]),Za=Xa;function es(){return zo({url:"/v2/user/getCaptcha",method:"post"})}function ts(e){return zo({url:"/v2/user/loginBindWechat",method:"post",data:e})}function rs(e){return zo({url:"/v2/user/emailLogin",method:"post",data:e})}function ns(e){return zo({url:"/common/sendEmailMsg",method:"post",data:e})}function os(){return zo({url:"/v2/user/generateQrCode",method:"get"})}function is(e){return zo({url:"/v2/user/status/"+e,method:"get"})}function as(e){return zo({url:"/v2/user/changeBindMobile",method:"post",data:e})}function ss(e){return zo({url:"/v2/user/unBindPhoneByGTOne",method:"post",data:e})}function cs(e){return zo({url:"/v2/user/saveUser",method:"post",data:e})}function ls(){return zo({url:"/captcha/encrypt",method:"post"})}function us(e){return zo({url:"/v2/user/smsCaptcha",method:"post",data:e})}function ds(e){return zo({url:"/v2/user/userLogin",method:"post",data:e})}function fs(e){return zo({url:"/user/userEncrypt",method:"post",data:e})}function ps(e){return zo({url:"/v2/user/smsLogin",method:"post",data:e})}function hs(e){return zo({url:"/user/userInfo?token="+e,method:"post"})}function ms(e){return zo({url:"/zjy/user/getSchoolList",method:"post",data:e})}function gs(e){return zo({url:"/common/nationalityList",method:"post",data:e})}function vs(e){return zo({url:"/zj/featuresBySource",method:"post",data:e})}var ys={class:"verify"},bs={key:1,class:"aly"},ws={id:"clickButton",ref:"clickButton"};function Cs(e,t,n,o,i,a){var s=(0,r.resolveComponent)("TJCaptcha"),c=(0,r.resolveComponent)("AliyunCaptchaModal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ys,[1==i.type?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,ref:"TJCaptcha",CaptchaAppId:i.CaptchaAppId,onSuccess:a.success},null,8,["CaptchaAppId","onSuccess"])):((0,r.openBlock)(),(0,r.createElementBlock)("div",bs,[(0,r.createVNode)(c,{id:"clickButton",ref:"aliyunCaptcha",sceneId:i.sceneId,onSuccess:a.success},null,8,["sceneId","onSuccess"]),(0,r.createElementVNode)("div",ws,null,512)]))])}var Ns={class:"TJCaptcha"};function Es(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",Ns)}const ks={name:"TJCaptcha",props:{CaptchaAppId:{type:String,default:""}},data:function(){return{captcha:null}},mounted:function(){},methods:{getCaptchaAppid:function(){var e=this;ls().then(function(t){e.init(t.data.data)})},init:function(e){try{if("undefined"===typeof TencentCaptcha)return console.warn("腾讯验证码库未加载,使用容错处理"),void this.loadErrorCallback();this.captcha=new TencentCaptcha(this.CaptchaAppId,this.callback,{aidEncrypted:e}),this.captcha.show()}catch(t){console.log("%c Line:32 🥛 error","color:#93c0a4",t),this.loadErrorCallback()}},loadErrorCallback:function(){var e=this.CaptchaAppId,t="trerror_1001_"+e+"_"+Math.floor((new Date).getTime()/1e3);this.callback({ret:0,randstr:"@"+Math.random().toString(36).substr(2),ticket:t,errorCode:1001,errorMessage:"jsload_error"})},callback:function(e){0==e.ret&&this.$emit("success",{ticket:e.ticket,randstr:e.randstr})}}},xs=(0,Zo.A)(ks,[["render",Es]]),Ss=xs;var Ts=["id"];function _s(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",{id:"captcha-element-".concat(e._uid)},null,8,Ts)])}const Bs={props:{id:{type:String,required:!0},sceneId:{type:String,required:!0}},data:function(){return{captcha:null}},mounted:function(){try{if("undefined"===typeof window.initAliyunCaptcha)return void console.warn("阿里云验证码库未加载");this.initAliyunCaptcha()}catch(e){console.error("阿里云验证码初始化失败:",e)}},methods:{initAliyunCaptcha:function(){var e=this;try{if("undefined"===typeof window.initAliyunCaptcha)return void console.warn("阿里云验证码库未加载,跳过初始化");window.initAliyunCaptcha({SceneId:this.sceneId,mode:"popup",element:"#captcha-element-".concat(this._uid),button:"#".concat(this.id),captchaLogoImg:"https://file.icve.com.cn/app/site/prod/zyzyzx_components/zhzj_logo.webp",success:function(t){try{e.$emit("success",t),e.initAliyunCaptcha()}catch(r){console.error("验证码成功回调处理失败:",r)}},fail:function(e){console.error(e)},getInstance:function(t){try{e.$emit("getInstance",t),e.captcha=t}catch(r){console.error("验证码实例绑定失败:",r)}},slideStyle:{width:360,height:40},language:localStorage.getItem("language")||"cn"})}catch(t){console.error("阿里云验证码初始化失败:",t)}}}},Vs=(0,Zo.A)(Bs,[["render",_s]]),Ls=Vs,Os={name:"VerifySlide",components:{TJCaptcha:Ss,AliyunCaptchaModal:Ls},data:function(){return{CaptchaAppId:"196632980",sceneId:"e7gyz100",type:"alibaba"}},methods:{getType:function(){var e=this;es().then(function(t){e.type=t.data.data})["catch"](function(t){console.warn("获取验证码类型失败,使用默认类型:",t),e.type="alibaba"})},success:function(e){try{if("tencent"===this.type)this.$emit("success",e);else{var t=e?{captchaVerifyParam:e,sceneId:this.sceneId}:{specialKey:!0};this.$emit("success",t)}}catch(r){console.error("验证码处理失败:",r),this.$emit("success",{specialKey:!0})}},show:function(){try{if("tencent"===this.type)this.$refs.TJCaptcha.getCaptchaAppid();else if("alibaba"===this.type)if(window.AliyunCaptcha)this.$refs.aliyunCaptcha.captcha.show();else{var e={specialKey:!0};this.$emit("success",e)}else this.$emit("success")}catch(t){console.error("显示验证码失败:",t),this.$emit("success",{specialKey:!0})}}},created:function(){this.getType()}},Is=(0,Zo.A)(Os,[["render",Cs]]),Ps=Is;var As={class:"qr-code-wrapper"},Ds=["id"],js={key:0,class:"qr-login-overlay"},Fs={key:0,class:"overlay-content"},Rs={class:"overlay-text"},Ms={class:"overlay-tip"},Us={key:1,class:"overlay-content"},zs={class:"overlay-text",style:{color:"red"}},$s={class:"overlay-tip"},qs={class:"qr-tip"},Hs={key:0,class:"bind-tip"};function Js(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["qr-login-container",{"qr-login-container1":n.bdwxShow}])},[(0,r.createElementVNode)("div",As,[(0,r.createElementVNode)("div",{id:"qrcode-container-".concat(e._uid)},null,8,Ds),1==i.loginStatus||3==i.loginStatus?((0,r.openBlock)(),(0,r.createElementBlock)("div",js,[1==i.loginStatus?((0,r.openBlock)(),(0,r.createElementBlock)("div",Fs,[(0,r.createElementVNode)("p",Rs,(0,r.toDisplayString)(e.i18n("已扫码")),1),(0,r.createElementVNode)("p",Ms,(0,r.toDisplayString)(e.i18n("请在手机上确认")),1),(0,r.createElementVNode)("button",{class:"rescan-btn",onClick:t[0]||(t[0]=function(){return a.handleRescanQrCode&&a.handleRescanQrCode.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("重新扫码")),1)])):3==i.loginStatus?((0,r.openBlock)(),(0,r.createElementBlock)("div",Us,[(0,r.createElementVNode)("p",zs,(0,r.toDisplayString)(e.i18n("二维码已过期")),1),(0,r.createElementVNode)("p",$s,(0,r.toDisplayString)(e.i18n("请点击下方按钮刷新")),1),(0,r.createElementVNode)("button",{class:"rescan-btn",onClick:t[1]||(t[1]=function(){return a.handleRescanQrCode&&a.handleRescanQrCode.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("重新生成")),1)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("p",qs,(0,r.toDisplayString)(n.bdwxShow?e.i18n("微信扫码进行账号绑定"):e.i18n("微信或App扫码均可登录")),1),i.wxRandom?((0,r.openBlock)(),(0,r.createElementBlock)("div",Hs,(0,r.toDisplayString)(e.i18n("你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~")),1)):(0,r.createCommentVNode)("",!0)],2)}var Gs=n(9118),Ks=n.n(Gs);const Ws={mixins:[Ya],props:{bdwxShow:{type:Boolean,default:!1}},data:function(){return{sceneId:"",qrCodeUrl:"",loading:!1,error:"",expireTime:0,pollTimer:null,statusTimer:null,loginStatus:0,wxRandom:""}},mounted:function(){this.generateQrCode()},beforeDestroy:function(){this.clearTimers()},methods:{generateQrCode:function(){var e=this;this.loading=!0,this.error="",os().then(function(t){var r=t.data;e.loading=!1,e.generateQRCode(r.data.qrUrl),e.sceneId=r.data.sceneId,e.expireTime=r.data.expireTime,e.startPolling(),e.startCountdown()})["catch"](function(t){e.loading=!1,e.error="生成二维码失败,请重试",console.error(t)})},generateQRCode:function(e){var t="qrcode-container-".concat(this._uid);document.getElementById(t).innerHTML="",new(Ks())(document.getElementById(t),{text:e,width:240,height:240,colorDark:"#000000",colorLight:"#ffffff",correctLevel:Ks().CorrectLevel.H})},startPolling:function(){var e=this;this.pollTimer=setInterval(function(){is(e.sceneId).then(function(t){var r=t.data.data.status;1===r?e.loginStatus=r:2===r?(e.$emit("loginSuccess",t.data.data),e.wxRandom=t.data.data.wxRandom,e.clearTimers()):3===r&&(e.loginStatus=3,e.clearTimers())})["catch"](function(e){console.error("检查登录状态失败",e)})},2e3)},startCountdown:function(){var e=this;this.statusTimer=setInterval(function(){e.expireTime--,e.expireTime<=0&&(e.loginStatus=3,e.clearTimers())},1e3)},clearTimers:function(){this.pollTimer&&clearInterval(this.pollTimer),this.statusTimer&&clearInterval(this.statusTimer)},handleRescanQrCode:function(){this.loginStatus=0,this.generateQrCode()}}},Ys=(0,Zo.A)(Ws,[["render",Js],["__scopeId","data-v-0baca5a0"]]),Qs=Ys;var Xs={class:"main"},Zs={class:"phone_form"},ec={class:"Code"},tc={key:1,id:"djs"},rc={class:"test"},nc={class:"ti"},oc=["onClick"],ic={class:"le"},ac={class:"name"},sc={class:"mobile1"},cc={class:"ri"},lc={class:"footer"};function uc(e,t,n,o,i,a){var s=(0,r.resolveComponent)("Iphone"),c=(0,r.resolveComponent)("el-icon"),l=(0,r.resolveComponent)("el-input"),u=(0,r.resolveComponent)("el-form-item"),d=(0,r.resolveComponent)("el-form"),f=(0,r.resolveComponent)("NationalitySelector"),p=(0,r.resolveComponent)("verifyComponents");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["mobile",{"dialog-mode":i.isDialogMode}])},[(0,r.createElementVNode)("div",Xs,[(0,r.createElementVNode)("div",Zs,[(0,r.withDirectives)((0,r.createVNode)(d,{ref:"phoneForm",model:i.phoneForm},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{rules:i.isRules?[{required:!0,message:e.i18n("请输入手机号"),trigger:"change"},{pattern:/^1[3456789]\d{9}$/,message:e.i18n("手机号码格式错误"),trigger:"change"}]:[],class:"phone",label:"",prop:"mobile"},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",{id:"ghduhfue",onClick:t[0]||(t[0]=function(){return a.tolink&&a.tolink.apply(a,arguments)})},(0,r.toDisplayString)(i.gjMsg),1),(0,r.createVNode)(l,{id:"mobile_login",modelValue:i.phoneForm.mobile,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.phoneForm.mobile=e}),placeholder:e.i18n("请输入手机号")},{prefix:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s)]}),_:1})]}),_:1},8,["modelValue","placeholder"])]}),_:1},8,["rules"]),(0,r.createVNode)(u,{rules:[{required:!0,message:e.i18n("请输入验证码"),trigger:"change"}],label:"",prop:"msgCode"},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",ec,[t[7]||(t[7]=(0,r.createElementVNode)("img",{id:"code",alt:"",src:"https://file.icve.com.cn/rc/737/546/B8588913D6F3ACDCC1275979123080D6.png"},null,-1)),(0,r.createVNode)(l,{modelValue:i.phoneForm.msgCode,"onUpdate:modelValue":t[2]||(t[2]=function(e){return i.phoneForm.msgCode=e}),placeholder:e.i18n("请输入验证码"),"prefix-icon":""},null,8,["modelValue","placeholder"]),i.sms_timer?((0,r.openBlock)(),(0,r.createElementBlock)("div",tc,(0,r.toDisplayString)(i.sms_time_count+e.i18n("秒重获")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:"djs",onClick:t[3]||(t[3]=function(){return a.sjbdobtain&&a.sjbdobtain.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("获取验证码")),1))])]}),_:1},8,["rules"])]}),_:1},8,["model"]),[[r.vShow,0==i.list.length]]),(0,r.withDirectives)((0,r.createElementVNode)("div",rc,[(0,r.createElementVNode)("div",nc,(0,r.toDisplayString)(e.i18n("您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?")),1),(0,r.createElementVNode)("ul",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.list,function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,onClick:function(r){return e.select(t)}},[(0,r.createElementVNode)("div",ic,[(0,r.createElementVNode)("div",ac,(0,r.toDisplayString)(t.userName),1),(0,r.createElementVNode)("div",sc,(0,r.toDisplayString)(t.mobile),1)]),(0,r.createElementVNode)("div",cc,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.i18n("最后登录时间"))+": "+(0,r.toDisplayString)(t.dateCreated),1)])],8,oc)}),128))])],512),[[r.vShow,i.list.length>0]])]),(0,r.createElementVNode)("div",lc,["2"==i.userType&&0==i.list.length?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"custom-plain-button",onClick:t[4]||(t[4]=function(){return a.toRedirect&&a.toRedirect.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("下次绑定")),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{class:"custom-primary-button",onClick:t[5]||(t[5]=function(){return a.mobileSubmit&&a.mobileSubmit.apply(a,arguments)})},(0,r.toDisplayString)(0==i.list.length?e.i18n("绑定手机"):e.i18n("确定")),1)])]),(0,r.createVNode)(f,{value:i.nationalityModalShow,onChange:a.handleNationalityChange,onClose:t[6]||(t[6]=function(e){return i.nationalityModalShow=!1})},null,8,["value","onChange"]),(0,r.createVNode)(p,{ref:"verifyComponents",onSuccess:a.sjbdsuccess},null,8,["onSuccess"])],2)}var dc={class:"custom-dialog nationality-selector"},fc={class:"custom-dialog-header"},pc={class:"custom-dialog-title"},hc=["title"],mc={class:"custom-dialog-body"},gc={key:0,class:"nationality-index-bar"},vc={class:"index-nav"},yc=["onClick"],bc={class:"nationality-list-container"},wc={class:"nationality-list",ref:"nationalityList"},Cc={key:0,class:"letter-section"},Nc={class:"letter-anchor"},Ec=["onClick"],kc={class:"country-name"},xc={key:1,class:"search-results-container"},Sc={class:"search-results"},Tc=["onClick"],_c={class:"country-name"};function Bc(e,t,n,o,i,a){var s=(0,r.resolveComponent)("el-scrollbar");return i.show?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"custom-dialog-overlay",onClick:t[1]||(t[1]=(0,r.withModifiers)(function(){return a.handleOverlayClick&&a.handleOverlayClick.apply(a,arguments)},["self"]))},[(0,r.createElementVNode)("div",dc,[(0,r.createElementVNode)("div",fc,[(0,r.createElementVNode)("h3",pc,(0,r.toDisplayString)(e.i18n("国籍选择")),1),(0,r.createElementVNode)("div",{class:"custom-dialog-close",onClick:t[0]||(t[0]=function(){return a.closeModal&&a.closeModal.apply(a,arguments)}),title:e.i18n("关闭")},si(t[2]||(t[2]=[(0,r.createElementVNode)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),8,hc)]),(0,r.createElementVNode)("div",mc,[i.searchKeyword?((0,r.openBlock)(),(0,r.createElementBlock)("div",xc,[(0,r.createVNode)(s,{style:{height:"100%"}},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",Sc,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.filteredCountries,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,class:"country-item",onClick:function(t){return a.select(e)}},[(0,r.createElementVNode)("span",_c,(0,r.toDisplayString)("cn"===i.defaultLang?e.name:e.country),1),t[4]||(t[4]=(0,r.createElementVNode)("i",{class:"el-icon-check country-check"},null,-1))],8,Tc)}),128))])]}),_:1})])):((0,r.openBlock)(),(0,r.createElementBlock)("div",gc,[(0,r.createElementVNode)("div",vc,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.alphabetList,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e,class:(0,r.normalizeClass)(["index-item",{active:i.currentLetter===e}]),onClick:function(t){return a.scrollToLetter(e)}},(0,r.toDisplayString)(e),11,yc)}),128))]),(0,r.createElementVNode)("div",bc,[(0,r.createVNode)(s,{style:{height:"100%"}},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",wc,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.alphabetList,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e,ref_for:!0,ref:"letter-".concat(e)},[a.getCountriesByLetter(e).length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Cc,[(0,r.createElementVNode)("div",Nc,(0,r.toDisplayString)(e),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.getCountriesByLetter(e),function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,class:"country-item",onClick:function(t){return a.select(e)}},[(0,r.createElementVNode)("span",kc,(0,r.toDisplayString)("cn"===i.defaultLang?e.name:e.country),1),t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"el-icon-check country-check"},null,-1))],8,Ec)}),128))])):(0,r.createCommentVNode)("",!0)])}),128))],512)]}),_:1})])]))])])])):(0,r.createCommentVNode)("",!0)}const Vc={name:"NationalitySelector",mixins:[Ya],props:{value:{type:Boolean,default:!1},language:{type:String,default:""}},data:function(){return{show:this.value,defaultLang:this.getBrowserLanguage(),searchKeyword:"",currentLetter:"A",countriesData:[],alphabetList:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]}},computed:{filteredCountries:function(){var e=this;if(!this.searchKeyword)return[];var t=this.searchKeyword.toLowerCase();return this.countriesData.filter(function(r){var n="cn"===e.defaultLang?r.name:r.country;return n.toLowerCase().includes(t)})}},watch:{value:function(e){this.show=e,e&&this.getList()},show:function(e){this.$emit("input",e)}},created:function(){this.show&&this.getList(),document.addEventListener("keydown",this.handleKeyDown)},beforeDestroy:function(){document.removeEventListener("keydown",this.handleKeyDown)},methods:{getBrowserLanguage:function(){if(this.language)return this.language;var e=localStorage.getItem("language")||"cn";return e},handleKeyDown:function(e){"Escape"===e.key&&this.show&&this.closeModal()},select:function(e){this.$emit("change",e),this.closeModal()},closeModal:function(){this.show=!1,this.searchKeyword="",this.$emit("close")},handleOverlayClick:function(){this.closeModal()},handleSearch:function(){this.currentLetter=""},getCountriesByLetter:function(e){var t=this;return this.countriesData.filter(function(r){var n="cn"===t.defaultLang?r.shortName.charAt(0).toUpperCase():r.country.charAt(0).toUpperCase();return n===e})},scrollToLetter:function(e){var t=this;this.currentLetter=e,this.$nextTick(function(){var r=document.querySelector(".nationality-list-container .el-scrollbar__wrap"),n=t.$refs["letter-".concat(e)];if(n&&n[0]&&r){var o=r.getBoundingClientRect().top,i=n[0].getBoundingClientRect().top,a=r.scrollTop,s=a+(i-o);r.scrollTo({top:s,behavior:"smooth"})}})},getList:function(){var e=this;gs().then(function(t){var r=t.data;e.countriesData=r.data||[]})["catch"](function(t){console.error("获取国籍列表失败:",t),e.countriesData=[]})}}},Lc=(0,Zo.A)(Vc,[["render",Bc],["__scopeId","data-v-4c1d34f3"]]),Oc=Lc,Ic={name:"mobileBinding",mixins:[Ya],components:{verifyComponents:Ps,NationalitySelector:Oc,Iphone:Me},props:{userId:{type:String,default:""},mobileType:{type:Number}},data:function(){return{nationalityModalShow:!1,phoneForm:{},isRules:!0,gjMsg:"+ 86",sms_timer:null,sms_time_count:60,successShow:!1,source:localStorage.getItem("source")||"",nationalityList:{},redirect:null,userType:this.mobileType||"2",whiteList:[],middleQuery:null,middleUrl:null,list:[],isDialogMode:!1}},created:function(){this.checkDialogMode()},methods:{handleNationalityChange:function(e){this.nationalityList=e,this.gjMsg="+ "+e.sms||0,e.sms&&e.sms.includes("86")?this.isRules=!0:this.isRules=!1,this.nationalityModalShow=!1},checkDialogMode:function(){var e=this;this.$nextTick(function(){var t=e.$el.parentElement;while(t){if(t.classList&&(t.classList.contains("custom-dialog-body")||t.classList.contains("el-dialog__body")||t.classList.contains("dialog-body"))){e.isDialogMode=!0;break}t=t.parentElement}})},toRedirect:function(){this.$emit("loginSuccess")},tolink:function(){this.nationalityModalShow=!0},sjbdsuccess:function(e){var t=this,r=Da(Da({msgSendType:5,param:this.nationalityList.sms?this.nationalityList.sms+"-"+this.phoneForm.mobile:"86-"+this.phoneForm.mobile},e),{},{source:this.source});us(r).then(function(e){500==e.data.code?t.$message.warning(e.data.msg):(t.sms_timer=setInterval(function(){t.sms_time_count--,t.sms_time_count<=0&&(t.sms_time_count=60,clearInterval(t.sms_timer),t.sms_timer=null)},1e3),t.phoneForm.msgKey=e.data.data.msgKey)})},sjbdobtain:function(){var e=/^1[3456789]\d{9}$/;!e.test(this.phoneForm.mobile)&&this.gjMsg.includes("86")?this.$message.warning(this.i18n("手机号码格式错误")):this.$refs.verifyComponents.show()},mobileSubmit:function(){var e=this;this.$refs.phoneForm.validate(function(t){if(t){var r=JSON.parse(JSON.stringify(e.phoneForm));r.mobile=e.nationalityList.sms?e.nationalityList.sms+"-"+r.mobile:"86-"+r.mobile,r.isLogin=!1,r.bindVerify=!0,r.userId=e.userId,r.isConfirm=e.list.length>0,as(r).then(function(t){500==t.data.code?e.$message.warning(t.data.msg):(e.list=t.data.data.accountList,0==e.list.length&&e.toRedirect())})}})}}},Pc=(0,Zo.A)(Ic,[["render",uc],["__scopeId","data-v-3371c604"]]),Ac=Pc;var Dc={class:"mproveInformation"},jc={class:"content"},Fc={class:"input-radio"},Rc={key:0,class:"input-field"},Mc={key:1,class:"input-field"},Uc={class:"line-item"},zc={class:"input-field input-displayName"},$c={key:0,class:"input-field input-employeeNumber"},qc={key:2,class:"input-field"},Hc={key:3,class:"input-field"};function Jc(e,t,n,o,i,a){var s=(0,r.resolveComponent)("el-radio"),c=(0,r.resolveComponent)("el-radio-group"),l=(0,r.resolveComponent)("el-form-item"),u=(0,r.resolveComponent)("el-option"),d=(0,r.resolveComponent)("el-select"),f=(0,r.resolveComponent)("el-input"),p=(0,r.resolveComponent)("el-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Dc,[(0,r.createElementVNode)("div",jc,[(0,r.createVNode)(p,{ref:"form",model:i.form},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",Fc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)([{"input-en":"en"===i.defaultLang},"input-type"])},(0,r.toDisplayString)(e.i18n("身份类型")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("请选择身份类型"),trigger:"change"}],prop:"userType"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,{modelValue:i.form.userType,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.form.userType=e}),disabled:i.disableFields.userType},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{label:1},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("学生")),1)]}),_:1}),(0,r.createVNode)(s,{label:2},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("老师")),1)]}),_:1}),(0,r.createVNode)(s,{label:3},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("社会学习者")),1)]}),_:1}),(0,r.createVNode)(s,{label:4},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("企业用户")),1)]}),_:1}),(0,r.createVNode)(s,{label:5},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("国际学习者")),1)]}),_:1}),(0,r.createVNode)(s,{label:6},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("国际教师")),1)]}),_:1})]}),_:1},8,["modelValue","disabled"])]}),_:1},8,["rules"])]),6==i.form.userType||5==i.form.userType?((0,r.openBlock)(),(0,r.createElementBlock)("div",Rc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.gjName||i.focusedFields.gjName})},(0,r.toDisplayString)(e.i18n("国籍")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("国籍"),trigger:"change"}],prop:"gjName"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{modelValue:i.form.gjName,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.form.gjName=e}),disabled:i.disableFields.gjName,loading:i.loading,clearable:"",filterable:"",placeholder:"",remote:"","reserve-keyword":"",style:{width:"100%"},onBlur:t[2]||(t[2]=function(e){return i.focusedFields.gjName=!!i.form.gjName}),onFocus:t[3]||(t[3]=function(e){return i.focusedFields.gjName=!0})},{default:(0,r.withCtx)(function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.gjList,function(e){return(0,r.openBlock)(),(0,r.createBlock)(u,{key:e.sms,label:"cn"==i.defaultLang?e.name:e.country,value:"cn"==i.defaultLang?e.name:e.country},null,8,["label","value"])}),128))]}),_:1},8,["modelValue","disabled","loading"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0),3!=i.form.userType?((0,r.openBlock)(),(0,r.createElementBlock)("div",Mc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.schoolId||i.focusedFields.schoolId})},(0,r.toDisplayString)(e.i18n("单位名称")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("单位名称"),trigger:"change"}],prop:"schoolName"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{modelValue:i.form.schoolName,"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.form.schoolName=e}),disabled:i.disableFields.schoolId,loading:i.loading,"remote-method":a.remoteMethod,clearable:"",filterable:"",placeholder:"",remote:"","reserve-keyword":"",style:{width:"100%"},onBlur:t[5]||(t[5]=function(e){return i.focusedFields.schoolId=!!i.form.schoolId}),onFocus:t[6]||(t[6]=function(e){return i.focusedFields.schoolId=!0})},{default:(0,r.withCtx)(function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.list,function(e){return(0,r.openBlock)(),(0,r.createBlock)(u,{key:e.schoolId,label:e.schoolName,value:e.schoolName,onClick:function(t){return a.handleSchoolInput(e)}},null,8,["label","value","onClick"])}),128))]}),_:1},8,["modelValue","disabled","loading","remote-method"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Uc,[(0,r.createElementVNode)("div",zc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.displayName||i.focusedFields.displayName})},(0,r.toDisplayString)(e.i18n("真实姓名")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("真实姓名"),trigger:"change"}],prop:"displayName"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.displayName,"onUpdate:modelValue":t[7]||(t[7]=function(e){return i.form.displayName=e}),disabled:i.disableFields.displayName,onBlur:t[8]||(t[8]=function(e){return i.focusedFields.displayName=!!i.form.displayName}),onFocus:t[9]||(t[9]=function(e){return i.focusedFields.displayName=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])]),3!=i.form.userType&&4!=i.form.userType?((0,r.openBlock)(),(0,r.createElementBlock)("div",$c,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.employeeNumber||i.focusedFields.employeeNumber})},(0,r.toDisplayString)(e.i18n("工号/学号")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("工号/学号"),trigger:"change"}],prop:"employeeNumber"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.employeeNumber,"onUpdate:modelValue":t[10]||(t[10]=function(e){return i.form.employeeNumber=e}),disabled:i.disableFields.employeeNumber,onBlur:t[11]||(t[11]=function(e){return i.focusedFields.employeeNumber=!!i.form.employeeNumber}),onFocus:t[12]||(t[12]=function(e){return i.focusedFields.employeeNumber=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0)]),i.isWeakPwd||i.form.isEmptyPwd?((0,r.openBlock)(),(0,r.createElementBlock)("div",qc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.password||i.focusedFields.password})},(0,r.toDisplayString)(e.i18n("密码")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)"),trigger:"change"},{pattern:/^(?:(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])|(?=.*[A-Z])(?=.*[a-z])(?=.*[^A-Za-z0-9])|(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).{8,50}$/,message:e.i18n("至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)"),trigger:"change"}],prop:"password"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.password,"onUpdate:modelValue":t[13]||(t[13]=function(e){return i.form.password=e}),disabled:i.disableFields.password,autocomplete:"new-password","show-password":"",onBlur:t[14]||(t[14]=function(e){return i.focusedFields.password=!!i.form.password}),onFocus:t[15]||(t[15]=function(e){return i.focusedFields.password=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0),i.isWeakPwd||i.form.isEmptyPwd?((0,r.openBlock)(),(0,r.createElementBlock)("div",Hc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.rePassword||i.focusedFields.rePassword})},(0,r.toDisplayString)(e.i18n("确认密码")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("确认密码,保持一致"),trigger:"change"}],prop:"rePassword"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.rePassword,"onUpdate:modelValue":t[16]||(t[16]=function(e){return i.form.rePassword=e}),disabled:i.disableFields.rePassword,autocomplete:"new-password","show-password":"",onBlur:t[17]||(t[17]=function(e){return i.focusedFields.rePassword=!!i.form.rePassword}),onFocus:t[18]||(t[18]=function(e){return i.focusedFields.rePassword=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0)]}),_:1},8,["model"]),(0,r.createElementVNode)("div",{class:"button",onClick:t[19]||(t[19]=function(){return a.submit&&a.submit.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("提交")),1)])])}const Gc={name:"mproveInformation",mixins:[Ya],props:{weakPwd:{type:Boolean,default:!0},tzToken:{type:String,default:""}},data:function(){return{defaultLang:"cn",value:"",timeout:null,queryParams:{pageSize:10,curPage:1,schoolName:""},list:[],gjList:[],loading:!1,form:{userType:1},source:localStorage.getItem("source"),footMsg:"",footMsg1:"",sptImg:"",whiteList:[],middleQuery:null,middleUrl:null,isWeakPwd:this.weakPwd,focusedFields:{userName:!1,userType:!1,gjName:!1,displayName:!1,employeeNumber:!1,schoolId:!1,password:!1,rePassword:!1},disableFields:{userName:!1,userType:!1,gjName:!1,displayName:!1,employeeNumber:!1,schoolId:!1,password:!1,rePassword:!1}}},created:function(){this.defaultLang=this.$i18n.locale,this.getUserInfo(),this.getNationList()},methods:{handleSchoolInput:function(e){this.form.schoolId=e.schoolId},getUrlCode:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},getSchoolList:function(){var e=this;ms(this.queryParams).then(function(t){var r=t.data;e.loading=!1,e.list=r.data.data})},remoteMethod:function(e){var t=this;this.queryParams.schoolName=e,clearTimeout(this.timeout),""!==e?(this.loading=!0,this.timeout=setTimeout(function(){t.getSchoolList()},500)):this.list=[]},getNationList:function(){var e=this;gs().then(function(t){var r=t.data;e.gjList=r.data})},getUserInfo:function(){var e=this;hs(this.tzToken).then(function(t){var r=t.data;e.form=r.data,e.form.gjName=e.defaultLang?e.form.cn:e.form.en,e.disableFields.gjName=e.disableFields.userName=!!e.form.userName,e.disableFields.userType=!!e.form.userType,e.disableFields.gjName=!!e.form.en,e.disableFields.displayName=!!e.form.displayName,e.disableFields.employeeNumber=!!e.form.employeeNumber,e.disableFields.schoolId=!!e.form.schoolId,e.disableFields.password=!!e.form.password,e.disableFields.rePassword=!!e.form.rePassword,1==e.form.userType&&null!=e.form.en&&"China"!=e.form.en?e.form.userType=5:2==e.form.userType&&null!=e.form.en&&"China"!=e.form.en?e.form.userType=6:e.form.userType||(e.form.userType=1)})},submit:function(){var e=this;this.$refs.form.validate(function(t){if(t){if(e.form.password!==e.form.rePassword&&(e.form.isEmptyPwd||e.isWeakPwd))return e.$message.error(e.i18n("确认密码,保持一致"));e.form.isVerifyData=e.isWeakPwd||!!e.form.isEmptyPwd;var r=JSON.parse(JSON.stringify(e.form));r.userType=5==r.userType?1:6==r.userType?2:r.userType,cs(r).then(function(t){500==t.data.code?e.$message.warning(t.data.msg):(sessionStorage.removeItem("information"),e.getBusinessPlatformLoginUrl())})}})},getBusinessPlatformLoginUrl:function(){this.$emit("loginSuccess")}}},Kc=(0,Zo.A)(Gc,[["render",Jc],["__scopeId","data-v-088b4acc"]]),Wc=Kc,Yc=(0,r.defineComponent)({name:"Login",mixins:[Ya],components:{Agreement:Za,verifyComponents:Ps,QRCodeLogin:Qs,MobileBinding:Ac,improveInformation:Wc,NationalitySelector:Oc,User:Je,Lock:ze,Iphone:Me},props:{loginModalShow:{type:Boolean,default:!1}},data:function(){return{isMultipleAccountShow:!1,phoneBindShow:!1,editPasswordShow:!1,wxRandom:"",nationalityModalShow:!1,loadLanguage:!0,isOneYearBeforeLogin:!1,isOneYearBeforeLoginForm:{},status:null,captchaVerifyParam:"",isSmartEduLogin:!1,whiteList:[],middleUrl:"",middleQuery:"",isMerged:!0,isTz2p:!1,isUpdateName:!1,zjtxUrl:"",userList:[],verifyForm:{},bdwxShow:!1,tzToken:null,sptImg:"",nationalityList:{},accountList:[],gjMsg:"+ 86",tab:2,isRules:!0,checked:!1,clickVerifyShow:!1,obtainShow:!1,buttonShow:!1,testShow:!1,txyzmShow:!1,kfShow:!1,test:"",sms_timer:null,sms_time_count:60,form:{type:1},phoneForm:{},emailForm:{},footMsg:"",footMsg1:"",source:"",redirect:"",activeIndex:0,mobileList:["绑定新号码","绑定已有手机号"],phoneList:[],userType:null,selectMobile:"",successShow:!1,ishbzhShow:!1,str:"",editForm:{},schoolId:"",userId:"",mobileType:"",isWeakPwd:!1}},computed:{loginShow:function(){return this.loginModalShow}},methods:{hbtiaozhuan:function(){"test"===sessionStorage.getItem("environment")?window.open("https://testssov2.icve.com.cn/sso/accountConsolidation"):window.open("https://sso.icve.com.cn/sso/accountConsolidation")},maskedPhoneNumber:function(e){var t=e.replace(/(\d{3})\d{4}(\d{3})/,function(e,t,r){return t+"*".repeat(4)+r});return t},getfeaturesBySource:function(e){var t=this;vs({source:e,featuresName:"zhzgLogin"}).then(function(e){200==e.data.code&&(1==e.data.data.loginPermission&&(t.zjtxUrl=e.data.data.uri),1==e.data.data.isSmartEduLogin&&(t.isSmartEduLogin=!0))})},phonechange:function(e){this.phoneForm.userName=e,this.accountList.forEach(function(t){t.userName==e?t.checked=!0:t.checked=!1}),this.phoneLogin()},inverseSelected:function(e,t){this.phoneForm.userName=e.userName,this.accountList.forEach(function(t){t.userName==e.userName?t.checked=!0:t.checked=!1})},multipleAccountSubmit:function(){var e=this.accountList.some(function(e){return e.checked});e?this.phoneLogin():this.$message.warning(this.i18n("请先选择要登录的账号"))},inverseSelected1:function(e,t){this.selectMobile=e.mobile,this.phoneList.forEach(function(t){t.mobile==e.mobile?t.checked=!0:t.checked=!1})},kctz:function(){window.open("https://hephelp.udesk.cn/im_client/?web_plugin_id=93901&cur_title=%E6%99%BA%E6%85%A7%E8%81%8C%E6%95%99&src_url=https%3A%2F%2Fsso.icve.com.cn%2Fh5%2F&cur_url=https%3A%2F%2Fsso.icve.com.cn%2F&pre_url=https%3A%2F%2Fsso.icve.com.cn%2Fsso%2Fbackstage%3Fsource%3D14&robot_enable_agent=true&robot_enable_robot=true&robot_reception_strategy=all_day&robot_scene_id=3533&robot_udesk_robot_id=761&robot_show_robot_times=0")},zjtxdl:function(){1==this.source?window.open("https://auth.smartedu.cn/uias/oauth/authorize?client_id=v16wt6TMGejoFeALGzRhzAPMMjLAn1hx&grant_type=authorization_code&response_type=code&redirect_uri=https://vocational.smartedu.cn/thirdLogin.html?state=https://vocational.smartedu.cn"):4==this.source?window.open("https://auth.smartedu.cn/uias/oauth/authorize?client_id=CjuEqAyujmdYI7LDcjrTgAm0YFm6h9em&grant_type=authorization_code&response_type=code&redirect_uri=https://sso.icve.com.cn/sso/zjtxPedding"):7==this.source?window.open("https://auth.smartedu.cn/uias/oauth/authorize?client_id=JUPELHVTxjGGiUK8kZ9gxgDS1r7ZnHXW&grant_type=authorization_code&response_type=code&redirect_uri=https://vocational.beijing.smartedu.cn/icve-admin/pedding&scope=userInfo"):window.open("".concat(this.zjtxUrl))},loginSuccess:function(e){this.$emit("loginSuccess",e)},handleClose:function(){this.test="",this.testShow=!1,this.isUpdateName&&this.loginSuccess(this.editForm.token)},getUrlCode:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},handleClick:function(e){this.tab=e},success:function(e){this.form.imgCode=e.captchaVerification},change:function(e){this.checked=e},changeLanguage:function(){var e=this;this.sms_time_count=60,clearInterval(this.sms_timer),this.sms_timer=null,this.loadLanguage=!1;var t=this.currentLocale,r="cn"===t?"en":"cn";this.$i18n.locale=r,this.gjMsg="+ 86",1==this.source||17==this.source?(this.footMsg=this.i18n("Copyright© 2026 国家职业教育智慧教育平台"),this.footMsg1=this.i18n("京ICP备 09059518号-20 京公网安备 11010202007836号")):4==this.source?(this.footMsg=this.i18n("Copyright© 2026 湖北职业教育智慧教育平台"),this.footMsg1=this.i18n("京ICP备 09059518号-20 京公网安备 11010202007836号")):(this.footMsg=this.i18n("Copyright©2026 高等教育出版社"),this.footMsg1=this.i18n("京公网安备 11010202007836号 京ICP备 12020869号-19")),this.$forceUpdate(),setTimeout(function(){e.loadLanguage=!0},200)},obtain:function(){var e=/^1[3456789]\d{9}$/;!e.test(this.phoneForm.mobile)&&this.gjMsg.includes("86")?(this.testShow=!0,this.test=this.i18n("手机号为空或手机号格式不正确")):(this.status=2,this.$refs.verifyComponents.show())},emailObtain:function(){if(!this.emailForm.email)return this.$message.warning(this.i18n("请输入邮箱地址"));this.status=3,this.$refs.verifyComponents.show()},emailLogin:function(){var e=this;this.$refs.emailForm.validate(function(t){if(t){if(!e.checked)return e.$msgbox({title:e.i18n("用户协议及隐私协议"),message:(0,r.h)("p",null,[(0,r.h)("span",null,e.i18n("我已阅读并同意")),(0,r.h)("span",{style:"color: #004b90"},e.i18n("用户服务协议")+","+e.i18n("隐私协议"))]),showCancelButton:!0,confirmButtonText:e.i18n("确定"),cancelButtonText:e.i18n("取消")}).then(function(t){e.$refs.agreement.checked=!0,e.checked=!0,e.emailLogin()}),!1;e.emailLoginSuccess()}})},emailLoginSuccess:function(){var e=this,t=JSON.parse(JSON.stringify(this.emailForm));t.dataSource=this.source,rs(Da(Da({},t),{},{wxRandom:this.wxRandom})).then(function(t){var r=t.data;500==r.code?(e.testShow=!0,e.test=r.msg):fs({token:r.data.token,source:e.source}).then(function(t){e.whiteList=t.data.data.sources||[],e.middleQuery=t.data.data.sign,e.middleUrl=t.data.data.jumpUrl,e.test=e.i18n("登录成功"),e.testShow=!0,e.loginSuccess(r.data.token)})})},emailSuccess:function(e){var t=this,r=Da({msgSendType:2,param:this.emailForm.email},e);ns(r).then(function(e){if(500==e.data.code)return t.$message.warning(e.data.msg);t.sms_timer=setInterval(function(){t.sms_time_count--,t.sms_time_count<=0&&(t.sms_time_count=60,clearInterval(t.sms_timer),t.sms_timer=null)},1e3),t.emailForm.msgKey=e.data.data.msgKey})},obtainSuccess:function(e){var t=this,r=Da(Da({msgSendType:1},e),{},{param:this.nationalityList.sms?this.nationalityList.sms+"-"+this.phoneForm.mobile:"86-"+this.phoneForm.mobile});us(r).then(function(e){500==e.data.code?(t.testShow=!0,t.test=e.data.msg):(t.sms_timer=setInterval(function(){t.sms_time_count--,t.sms_time_count<=0&&(t.sms_time_count=60,clearInterval(t.sms_timer),t.sms_timer=null)},1e3),t.phoneForm.msgKey=e.data.data.msgKey)})},CaptchaSuccess:function(e){var t=this;return Va(_a().m(function r(){return _a().w(function(r){while(1)switch(r.n){case 0:if(1!=t.status){r.n=1;break}t.getUserLogin(e),r.n=4;break;case 1:if(2!=t.status){r.n=3;break}return r.n=2,t.obtainSuccess(e);case 2:r.n=4;break;case 3:if(3!=t.status){r.n=4;break}return r.n=4,t.emailSuccess(e);case 4:return r.a(2)}},r)}))()},login:function(){var e=this;this.$refs.form.validate(function(t){if(t){if(!e.checked)return e.$msgbox({title:e.i18n("用户协议及隐私协议"),message:(0,r.h)("p",null,[(0,r.h)("span",null,e.i18n("我已阅读并同意")),(0,r.h)("span",{style:"color: #004b90"},e.i18n("用户服务协议")+","+e.i18n("隐私协议"))]),showCancelButton:!0,confirmButtonText:e.i18n("确定"),cancelButtonText:e.i18n("取消")}).then(function(t){e.$refs.agreement.checked=!0,e.checked=!0,e.login()}),!1;e.status=1,e.$refs.verifyComponents.show()}})},wxLoginSuccess:function(e){var t=this;this.bdwxShow?ts({wxRandom:e.wxRandom,token:this.tzToken})["finally"](function(){t.loginSuccess(t.tzToken)}):e.wxRandom?this.wxRandom=e.wxRandom:this.loginSuccess(e.token)},oneYearBeforeLogin:function(){var e=this;ss({userId:this.isOneYearBeforeLoginForm.userId,mobile:this.isOneYearBeforeLoginForm.mobile,token:this.tzToken}).then(function(t){if(500===t.data.code)return e.$message.warning(t.data.msg);e.loginSuccess(e.tzToken)})},getUserLogin:function(e){var t=this;ds(Da(Da(Da({},this.form),{},{webPageSource:1},e),{},{isNationalLogin:this.isSmartEduLogin,wxRandom:this.wxRandom})).then(function(){var e=Va(_a().m(function e(r){var n;return _a().w(function(e){while(1)switch(e.n){case 0:if(n=r.data,500!=n.code){e.n=1;break}t.testShow=!0,t.test=n.msg,e.n=2;break;case 1:return e.n=2,fs({token:n.data.token,source:t.source}).then(function(e){return t.whiteList=e.data.data.sources||[],t.middleQuery=e.data.data.sign,t.middleUrl=e.data.data.jumpUrl,t.isTz2p=n.data.isClosedSchool,t.tzToken=n.data.token,n.data.isGTOne?(t.userList=n.data.accountList,t.isOneYearBeforeLoginForm.userId=n.data.id,t.isOneYearBeforeLoginForm.mobile=n.data.mobile,t.isOneYearBeforeLogin=!0,!1):n.data.mobile||n.data.gjUser?n.data.isWeakPwd?(t.isWeakPwd=1==n.data.isWeakPwd,t.editPasswordShow=!0,!1):localStorage.getItem("wxdltkyc")||n.data.isBindWeChat?n.data.isUpdateName?(t.test=t.i18n("您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:")+n.data.userName,t.isUpdateName=n.data.isUpdateName,t.editForm.token=n.data.token,void(t.testShow=!0)):(t.test=t.i18n("登录成功"),t.testShow=!0,void t.loginSuccess(n.data.token)):(t.bdwxShow=!0,!1):(t.mobileType=n.data.userType,t.userId=n.data.id,t.phoneBindShow=!0,!1)});case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}())},phonVerify:function(){var e=this;this.$refs.phoneForm.validate(function(t){if(t){if(!e.checked)return e.$msgbox({title:e.i18n("用户协议及隐私政策"),message:(0,r.h)("p",null,[(0,r.h)("span",null,e.i18n("已阅读并同意")),(0,r.h)("span",{style:"color: #004b90"},e.i18n("用户协议,隐私协议"))]),showCancelButton:!0,confirmButtonText:e.i18n("确定"),cancelButtonText:e.i18n("取消")}).then(function(t){e.$refs.agreement.checked=!0,e.checked=!0,e.phonVerify()}),!1;e.phoneLogin()}})},phoneLogin:function(e){var t=this,r=JSON.parse(JSON.stringify(this.phoneForm));r.source=this.source,r.mobile=this.nationalityList.sms?this.nationalityList.sms+"-"+this.phoneForm.mobile:"86-"+this.phoneForm.mobile,ps(Da(Da({},r),{},{webPageSource:1,wxRandom:this.wxRandom})).then(function(e){var r=e.data;500==r.code?(t.testShow=!0,t.test=r.msg):fs({token:r.data.token,source:t.source}).then(function(e){return t.isTz2p=r.data.isClosedSchool,r.data.token?(t.whiteList=e.data.data.sources||[],t.middleQuery=e.data.data.sign,t.middleUrl=e.data.data.jumpUrl,localStorage.getItem("wxdltkyc")||r.data.isBindWeChat?(t.tzToken=r.data.token,t.test=t.i18n("登录成功"),t.testShow=!0,void t.loginSuccess(r.data.token)):(t.tzToken=r.data.token,t.bdwxShow=!0,!1)):(t.accountList=r.data.accountList,t.phoneForm.isMultipleAccount=!0,t.accountList.forEach(function(e){1==e.userType?e.userType="学生":2==e.userType?e.userType="老师":3==e.userType?e.userType="社会学习者":4==e.userType?e.userType="企业用户":5==e.userType?e.userType="管理员":6==e.userType?e.userType="编辑":7==e.userType&&(e.userType="访客")}),t.isMerged=r.data.isMerged,void(t.isMerged&&(t.ishbzhShow=!0)))})})},bztx:function(){localStorage.setItem("wxdltkyc","不再提醒"),this.loginSuccess(this.tzToken)},xcbd:function(){this.loginSuccess(this.tzToken)},closeBox:function(){this.txyzmShow=!1,this.clickVerifyShow=!1},closeLoginModal:function(){this.$emit("update:loginModalShow",!1)},showNationalityModal:function(){this.nationalityModalShow=!0},handleNationalityChange:function(e){console.log(e,"nationality"),this.nationalityList=e,this.gjMsg="+ "+e.sms||0,e.sms&&e.sms.includes("86")?this.isRules=!0:this.isRules=!1,this.nationalityModalShow=!1}},created:function(){this.footMsg=this.i18n("Copyright©2026 高等教育出版社"),this.footMsg1=this.i18n("京公网安备 11010202007836号 京ICP备 12020869号-19")}}),Qc=(0,Zo.A)(Yc,[["render",Sa]]),Xc=Qc,Zc={install:function(e){e.component("userCenterCompleteInformation",ti),e.component("userCenterLogin",Xc)}},el=Zc})(),o})());
7
+ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,l=Object.create(c.prototype);return Ta(l,"_invoke",function(r,n,o){var i,s,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,c=e,f.n=r,a}};function p(r,n){for(s=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i["return"])&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Ta(t={},n,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ta(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Ta(d,"constructor",l),Ta(l,"constructor",c),c.displayName="GeneratorFunction",Ta(l,o,"GeneratorFunction"),Ta(d),Ta(d,o,"Generator"),Ta(d,n,function(){return this}),Ta(d,"toString",function(){return"[object Generator]"}),(_a=function(){return{w:i,m:f}})()}function Ba(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Va(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Ba(i,n,o,a,s,"next",e)}function s(e){Ba(i,n,o,a,s,"throw",e)}a(void 0)})}}n(2008),n(1629),n(4114),n(8111),n(2489),n(7588),n(7945),n(3851),n(1278),n(3500);function La(e){return La="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},La(e)}n(5700),n(9572),n(8130);function Oa(e,t){if("object"!=La(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=La(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Ia(e){var t=Oa(e,"string");return"symbol"==La(t)?t:t+""}function Pa(e,t,r){return(t=Ia(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Da(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach(function(t){Pa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}n(5086),n(3579),n(9391),n(2781);var ja={class:"icve-sso-agreement"},Fa={class:""};function Ra(e,t,n,o,i,a){var s=(0,r.resolveComponent)("el-checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ja,[(0,r.createVNode)(s,{modelValue:i.checked,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.checked=e}),class:"el",onChange:a.change},null,8,["modelValue","onChange"]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(7==n.source?"content1":"content")},[(0,r.createElementVNode)("div",Fa,[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("我已阅读并同意"))+" ",1),(0,r.createElementVNode)("span",{onClick:t[1]||(t[1]=function(){return a.userServices&&a.userServices.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("用户服务协议")),1),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.i18n(","))+" ",1),(0,r.createElementVNode)("span",{onClick:t[2]||(t[2]=function(){return a.userPrivacy&&a.userPrivacy.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("隐私协议")),1)]),"cn"==e.currentLocale&&n.show?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"r",onClick:t[3]||(t[3]=function(){return a.recoverYourPassword&&a.recoverYourPassword.apply(a,arguments)})},[t[5]||(t[5]=(0,r.createElementVNode)("img",{alt:"",src:"https://file.icve.com.cn/rc/111/261/1BD417BB2DC8C71CEF3B304913617EC4.png"},null,-1)),(0,r.createElementVNode)("u",null,(0,r.toDisplayString)(e.i18n("找回用户名或密码,请点击")),1)])):(0,r.createCommentVNode)("",!0)],2),"en"==e.currentLocale&&n.show?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"ren",onClick:t[4]||(t[4]=function(){return a.recoverYourPassword&&a.recoverYourPassword.apply(a,arguments)})},[t[6]||(t[6]=(0,r.createElementVNode)("img",{alt:"",src:"https://file.icve.com.cn/rc/111/261/1BD417BB2DC8C71CEF3B304913617EC4.png"},null,-1)),(0,r.createElementVNode)("u",null,(0,r.toDisplayString)(e.i18n("找回用户名或密码,请点击")),1)])):(0,r.createCommentVNode)("",!0)])}function Ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ua(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ia(n.key),n)}}function za(e,t,r){return t&&Ua(e.prototype,t),r&&Ua(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}const $a=JSON.parse('{"手机绑定":"Phone Binding","请输入验证码":"Code","获取验证码":"Send Code","请输入手机号":"Please enter your phone number","手机号码格式错误":"Mobile phone number format error","秒重获":"Seconds to reacquire","中->英":"English ->Chinese","欢迎登录":"Log in to learn in ICVE","账号密码登录":"Account Log in with","手机验证码登录":"Mobile login","请输入账号":"Account","请输入密码":"Password","请输入新密码":"Please enter a new password","姓名":"Name","新密码":"New password","学校或企业":"School or enterprise","点击进行验证":"Click to verify","向右滑动完成验证":"Swipe to the right to complete verification","请完成安全验证":"Please complete the security verification","我已阅读并同意":"I have read and agreed to ","用户协议及隐私协议":"User Agreement and Privacy Agreement","已阅读并同意用户协议,隐私协议":"Already read and agreed to the user agreement and privacy policy","用户服务协议":"the User Service Agreement","隐私协议":"Privacy Agreement","忘记密码":"Forget password","登录":"Log in","注册":"Register","联系客服":"Contact customer service","《国家职业教育智慧教育平台用户协议》":"《National Vocational Education and Training Intelligent Education Platform User Agreement》","《国家职业教育智慧教育平台隐私协议》":"《National Vocational Education and Training Intelligent Education Platform Privacy Agreement》","京公网安备 11010202007836号 京ICP备 12020869号-19":"Jing Gong Wang An Bei No. 11010202007836 Jing ICP Bei No. 12020869-19","Copyright© 2026 国家职业教育智慧教育平台":"Copyright © 2026 National Vocational Education and Training Intelligent Education Platform","Copyright© 2026 湖北职业教育智慧教育平台":"Copyright © 2026 Hubei Vocational Education and Training Intelligent Education Platform","Copyright©2026 高等教育出版社":"Copyright © 2026 Higher Education Press","京ICP备 09059518号-20 京公网安备 11010202007836号":"Beijing ICP No. 09059518-20 Beijing Public Security No. 11010202007836","请仔细阅读用户协议,隐私协议并勾":"Please carefully read the user agreement, privacy agreement and check","请点击验证":"Click to verify","手机号为空或手机号格式不正确":"Mobile phone number is empty or the mobile phone number format is incorrect","登录成功":"Login successful","密码包含大写 小写 特殊字符 数字,大于8位,小于50位":"Password contains capital letters, lowercase letters, special characters, numbers, greater than 8 bits, less than 50 bits","至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)":"At least three classes of characters (capital, lowercase, number, special character) are included, length (8~50 bits)","密码修改成功":"Password modification successful","账号注册":"Account registration","已有账号":"Existing account","立即登录":"Log in now","返回":"return","国籍":"nationality","单位列表":"Unit List","请选择身份类型":"Please select identity type","身份类型":"Identity Type","学生":"student","老师":"teacher","社会学习者":"Social learners","企业用户":"corporate user","国际学习者":"International learners","国际教师":"International teachers","点击选择国籍":"Click to select nationality","单位名称":"Unit Name","工号/学号":"Employee ID/Student ID","真实姓名":"Real Name","性别":"Gender","男":"Male","女":"Female","用户名需符合以下格式:6-20位(字母+数字)":"The username must conform to the following format: 6-20 characters (letters+numbers)","确认密码,保持一致":"Confirm password and keep it consistent","出生日期":"Date of Birth:","注册信息填写不完整":"Incomplete registration information filled in","两次密码输入不一致,请重新输入":"The password entered twice is inconsistent. Please re-enter","注册成功":"registered successfully","账号验证":"Account verification","修改密码":"Change password","完成":"complete","下一步":"Next step","验证通过,您需要修改密码的用户名为":"Verification passed, the username for which you need to change your password is","修改成功":"Modified successfully","去登录":"Log in","账号绑定":"Account Binding","立即绑定":"Bind Now","账号绑定成功":"Account binding successful","还没有账号?":"Don\'t have an account yet?","立即注册":"Register Now","该手机号下拥有多个账号,请选择要进行登录的账号!":"There are multiple accounts under this phone number, please select the account you want to log in to!","请选择要进行登录的账号":"Please select the account to log in to","手机号绑定":"Phone number binding","下次绑定":"Next binding","提交绑定":"Submit binding","取消":"Cancel","确定":"confirm","您当前设置的密码强度不足,存在安全风险,请尽快修改为更复杂的密码。":"The password strength you have set is insufficient and poses a security risk. Please change it to a more complex password as soon as possible.","微信扫码二维码":"Scan QR code on WeChat","不再提醒":"Do not remind again","中国大陆":"Chinese Mainland","手机号验证":"Mobile number verification","无手机号验证":"No phone number verification","该手机号为后续账号绑定手机号":"This phone number is the phone number for subsequent account binding","请选择需修改账号":"Please select the account to be modified","最后登录时间":"last login time","单位未填写":"Unit not filled in","工号未填写":"The job number is not filled in","姓名未填写":"Name not filled in","找回用户名或密码,请点击":"Forgot Account or Password?","该手机号绑定多个账号请选择":"This phone number is bound to multiple accounts. Please select","您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:":"Your username has been changed, and old users will no longer be able to log in. The changed username is called:","手机号登录新用户自动注册":"Mobile phone number login, new user automatic registration","邮箱登录新用户自动注册":"New users will be auto-registered","提示":"prompt","检测到该手机号绑定了多个账号,账号名称为:":"Detected that the phone number is bound to multiple accounts, with the account name being:","建议您合并多余账号":"I suggest you merge your excess accounts!","继续登录":"Continue Login","合并账号":"Merge accounts","验证身份":"Verify identity","立即验证":"Verify Now","去重置":"Go reset","重置密码":"Reset password","重置成功":"Reset successful","提交":"submit","首次登录完善基本信息":"Improve basic information","请输入姓名":"Please enter your name","请输入学校或企业":"Please enter school or enterprise","请输入邮箱地址":"Please enter your email address","邮箱格式不正确":"Email format incorrect","请输入邮箱":"Email","请输入邮箱验证码":"Verification code","邮箱登录":"Email Log in with","邮箱注册":"Please enter the email verification code","手机号注册":"Mobile number registration","用户名":"enter one user name","密码":"Password","手机号":"mobile phone number","确认密码":"Confirm Password","用户名称":"Username","您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?":"The phone number you entered has already been bound to the following account. Binding to this account will automatically unbind the original bound account. Are you sure?","绑定手机":"Bind mobile phone","请选择学校或企业":"Please choose a school or enterprise","安全提醒:检测到当前手机号已绑定多个账号,且部分账号已超过一年未登录。为保障账户安全,这些长期未登录的账号将自动解除手机号绑定。":"Security Reminder: Multiple accounts have been linked to the current phone number, and some accounts have not been logged in for over a year. To ensure account security, these accounts that have not been logged in for a long time will automatically have their phone numbers unbound.","安全提醒:检测到当前手机号已绑定多个账号。为保障账户安全,本次登录后,未选择的账号将自动解除手机号绑定。":"Security reminder: Multiple accounts have been linked to the current phone number. To ensure account security, unselected accounts will be automatically unlinked after this login.","微信或App扫码均可登录":"Scan with Wechat or ICVE+ APP","你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~":"Your current WeChat account or email has not been linked yet. You need to complete the binding first, and there will be no need for repeated verification when logging in later. Just enter directly","微信绑定":"WeChat Binding","密码不能为空":"Password cannot be empty",",":"and","已扫码":"Scanned","请在手机上确认":"Please confirm on your phone","重新扫码":"Rescan QR code","二维码已过期":"The QR code has expired","请点击下方按钮刷新":"Please click the button below to refresh","重新生成":"regenerate","微信绑定成功":"WeChat binding is successful","微信扫码进行账号绑定":"Scan the QR code with WeChat to bind the account","关闭":"Close","请先选择要登录的账号":"Please select the account to log in to"}'),qa=JSON.parse('{"手机绑定":"手机绑定","请输入验证码":"请输入验证码","获取验证码":"获取验证码","请输入手机号":"请输入手机号","手机号码格式错误":"手机号码格式错误","秒重获":"秒重获","中->英":"中->英","欢迎登录":"欢迎登录","账号密码登录":"账号密码登录","手机验证码登录":"手机验证码登录","请输入账号":"请输入账号","请输入密码":"请输入密码","请输入新密码":"请输入新密码","姓名":"姓名","新密码":"新密码","学校或企业":"学校或企业","点击进行验证":"点击进行验证","向右滑动完成验证":"向右滑动完成验证","请完成安全验证":"请完成安全验证","我已阅读并同意":"我已阅读并同意","用户服务协议":"用户服务协议","隐私协议":"隐私协议","忘记密码":"忘记密码","登录":"登录","注册":"注册","联系客服":"联系客服","《国家职业教育智慧教育平台用户协议》":"《国家职业教育智慧教育平台用户协议》","《国家职业教育智慧教育平台隐私协议》":"《国家职业教育智慧教育平台隐私协议》","京公网安备 11010202007836号 京ICP备 12020869号-19":"京公网安备 11010202007836号 京ICP备 12020869号-19","Copyright© 2026 国家职业教育智慧教育平台":"Copyright© 2026 国家职业教育智慧教育平台","Copyright© 2026 湖北职业教育智慧教育平台":"Copyright© 2026 湖北职业教育智慧教育平台","Copyright©2026 高等教育出版社":"Copyright©2026 高等教育出版社","京ICP备 09059518号-20 京公网安备 11010202007836号":"京ICP备 09059518号-20 京公网安备 11010202007836号","请仔细阅读用户协议,隐私协议并勾选":"请仔细阅读用户协议,隐私协议并勾选","已阅读并同意用户协议,隐私协议":"已阅读并同意用户协议,隐私协议","用户协议及隐私协议":"用户协议及隐私协议","请点击验证":"请点击验证","手机号为空或手机号格式不正确":"手机号为空或手机号格式不正确","登录成功":"登录成功","密码包含大写 小写 特殊字符 数字,大于8位,小于50位":"密码包含大写 小写 特殊字符 数字,大于8位,小于50位","至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)":"至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)","密码修改成功":"密码修改成功","账号注册":"账号注册","已有账号":"已有账号","立即登录":"立即登录","返回":"返回","国籍":"国籍","单位列表":"单位列表","请选择身份类型":"请选择身份类型","身份类型":"身份类型","学生":"学生","老师":"老师","社会学习者":"社会学习者","企业用户":"企业用户","国际学习者":"国际学习者","国际教师":"国际教师","点击选择国籍":"点击选择国籍","单位名称":"单位名称","工号/学号":"工号/学号","真实姓名":"真实姓名","性别":"性别","男":"男","女":"女","用户名需符合以下格式:6-20位(字母+数字)":"用户名需符合以下格式:6-20位(字母+数字)","确认密码,保持一致":"确认密码,保持一致","出生日期":"出生日期","注册信息填写不完整":"注册信息填写不完整","两次密码输入不一致,请重新输入":"两次密码输入不一致,请重新输入","注册成功":"注册成功","账号验证":"账号验证","修改密码":"修改密码","完成":"完成","下一步":"下一步","验证通过,您需要修改密码的用户名为":" 验证通过,您需要修改密码的用户名为","修改成功":"修改成功","去登录":"去登录","账号绑定":"账号绑定","立即绑定":"立即绑定","账号绑定成功":"账号绑定成功","还没有账号?":"还没有账号?","立即注册":"立即注册","该手机号下拥有多个账号,请选择要进行登录的账号!":"该手机号下拥有多个账号,请选择要进行登录的账号!","请选择要进行登录的账号":"请选择要进行登录的账号","手机号绑定":"手机号绑定","下次绑定":"下次绑定","提交绑定":"提交绑定","取消":"取消","确定":"确定","您当前设置的密码强度不足,存在安全风险,请尽快修改为更复杂的密码。":"您当前设置的密码强度不足,存在安全风险,请尽快修改为更复杂的密码。","微信扫码二维码":"微信扫码二维码","不再提醒":"不再提醒","中国大陆":"中国大陆","手机号验证":"手机号验证","无手机号验证":"无手机号验证","该手机号为后续账号绑定手机号":"该手机号为后续账号绑定手机号","请选择需修改账号":"请选择需修改账号","最后登录时间":"最后登录时间","单位未填写":"单位未填写","工号未填写":"工号未填写","姓名未填写":"姓名未填写","找回用户名或密码,请点击":"找回用户名或密码,请点击","该手机号绑定多个账号请选择":"该手机号绑定多个账号请选择","您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:":"您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:","手机号登录新用户自动注册":"手机号登录新用户自动注册","邮箱登录新用户自动注册":"邮箱登录新用户自动注册","提示":"提示","检测到该手机号绑定了多个账号,账号名称为:":"检测到该手机号绑定了多个账号,账号名称为:","建议您合并多余账号":"建议您合并多余账号!","继续登录":"继续登录","合并账号":"合并账号","验证身份":"验证身份","立即验证":"立即验证","去重置":"去重置","重置密码":"重置密码","重置成功":"重置成功","提交":"提交","首次登录完善基本信息":"完善基本信息","请输入姓名":"请输入姓名","请输入学校或企业":"请输入学校或企业","请输入邮箱地址":"请输入邮箱地址","邮箱格式不正确":"邮箱格式不正确","请输入邮箱":"请输入邮箱","请输入邮箱验证码":"请输入邮箱验证码","邮箱登录":"邮箱登录","邮箱注册":"邮箱注册","手机号注册":"手机号注册","用户名":"请输入用户名","密码":"密码","手机号":"手机号","确认密码":"确认密码","用户名称":"用户名称","您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?":"您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?","绑定手机":"绑定手机","请选择学校或企业":"请选择学校或企业","安全提醒:检测到当前手机号已绑定多个账号,且部分账号已超过一年未登录。为保障账户安全,这些长期未登录的账号将自动解除手机号绑定。":"安全提醒:检测到当前手机号已绑定多个账号,且部分账号已超过一年未登录。为保障账户安全,这些长期未登录的账号将自动解除手机号绑定。","安全提醒:检测到当前手机号已绑定多个账号。为保障账户安全,本次登录后,未选择的账号将自动解除手机号绑定。":"安全提醒:检测到当前手机号已绑定多个账号。为保障账户安全,本次登录后,未选择的账号将自动解除手机号绑定。","微信或App扫码均可登录":"微信或App扫码均可登录","你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~":"你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~","微信绑定":"微信绑定","密码不能为空":"密码不能为空",",":",","已扫码":"已扫码","请在手机上确认":"请在手机上确认","重新扫码":"重新扫码","二维码已过期":"二维码已过期","请点击下方按钮刷新":"请点击下方按钮刷新","重新生成":"重新生成","微信绑定成功":"微信绑定成功","微信扫码进行账号绑定":"微信扫码进行账号绑定","关闭":"关闭","请先选择要登录的账号":"请先选择要登录的账号"}');var Ha={en:$a,cn:qa},Ja=(0,r.reactive)({locale:localStorage.getItem("language")||"cn"}),Ga=function(){function e(){Ma(this,e),this.messages=Ha,this.state=Ja}return za(e,[{key:"locale",get:function(){return this.state.locale},set:function(e){this.messages[e]?(this.state.locale=e,localStorage.setItem("language",e)):console.warn("Locale ".concat(e," not found"))}},{key:"t",value:function(e){var t=this.state.locale,r=this.messages[t],n=r?r[e]:void 0;return void 0!==n?n:(console.warn("Missing translation for key: ".concat(e," in locale: ").concat(t)),e)}}])}(),Ka=new Ga;const Wa={install:function(e){e.config.globalProperties.$t=function(e){return Ka.t(e)},e.config.globalProperties.$i18n={get locale(){return Ka.locale},set locale(e){Ka.locale=e}}},t:function(e){return Ka.t(e)},get locale(){return Ka.locale},set locale(e){Ka.locale=e}},Ya={data:function(){return{currentLocale:Wa.locale}},computed:{$i18n:function(){return{get locale(){return Wa.locale},set locale(e){Wa.locale=e,this.currentLocale=e}}}},methods:{i18n:function(e){return Wa.t(e)},$t:function(e){return this.i18n(e)}},watch:{"$i18n.locale":function(e){this.currentLocale=e}}},Qa={name:"agreement",mixins:[Ya],props:{source:{type:String,default:0},show:{type:Boolean,default:!0}},data:function(){return{checked:!1}},methods:{userServices:function(){window.open("https://sso.icve.com.cn/userAgreement")},userPrivacy:function(){window.open("https://sso.icve.com.cn/privacyAgreement")},recoverYourPassword:function(){"test"===sessionStorage.getItem("environment")?window.open("https://testssov2.icve.com.cn/sso/forgotPassword"):window.open("https://sso.icve.com.cn/sso/forgotPassword")},change:function(e){this.$emit("change",e)}},created:function(){}},Xa=(0,Zo.A)(Qa,[["render",Ra],["__scopeId","data-v-13fe3570"]]),Za=Xa;function es(){return zo({url:"/v2/user/getCaptcha",method:"post"})}function ts(e){return zo({url:"/v2/user/loginBindWechat",method:"post",data:e})}function rs(e){return zo({url:"/v2/user/emailLogin",method:"post",data:e})}function ns(e){return zo({url:"/common/sendEmailMsg",method:"post",data:e})}function os(){return zo({url:"/v2/user/generateQrCode",method:"get"})}function is(e){return zo({url:"/v2/user/status/"+e,method:"get"})}function as(e){return zo({url:"/v2/user/changeBindMobile",method:"post",data:e})}function ss(e){return zo({url:"/v2/user/unBindPhoneByGTOne",method:"post",data:e})}function cs(e){return zo({url:"/v2/user/saveUser",method:"post",data:e})}function ls(){return zo({url:"/captcha/encrypt",method:"post"})}function us(e){return zo({url:"/v2/user/smsCaptcha",method:"post",data:e})}function ds(e){return zo({url:"/v2/user/userLogin",method:"post",data:e})}function fs(e){return zo({url:"/user/userEncrypt",method:"post",data:e})}function ps(e){return zo({url:"/v2/user/smsLogin",method:"post",data:e})}function hs(e){return zo({url:"/user/userInfo?token="+e,method:"post"})}function ms(e){return zo({url:"/zjy/user/getSchoolList",method:"post",data:e})}function gs(e){return zo({url:"/common/nationalityList",method:"post",data:e})}function vs(e){return zo({url:"/zj/featuresBySource",method:"post",data:e})}var ys={class:"verify"},bs={key:1,class:"aly"},ws={id:"clickButton",ref:"clickButton"};function Cs(e,t,n,o,i,a){var s=(0,r.resolveComponent)("TJCaptcha"),c=(0,r.resolveComponent)("AliyunCaptchaModal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ys,[1==i.type?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,ref:"TJCaptcha",CaptchaAppId:i.CaptchaAppId,onSuccess:a.success},null,8,["CaptchaAppId","onSuccess"])):((0,r.openBlock)(),(0,r.createElementBlock)("div",bs,[(0,r.createVNode)(c,{id:"clickButton",ref:"aliyunCaptcha",sceneId:i.sceneId,onSuccess:a.success},null,8,["sceneId","onSuccess"]),(0,r.createElementVNode)("div",ws,null,512)]))])}var Ns={class:"TJCaptcha"};function Es(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",Ns)}const ks={name:"TJCaptcha",props:{CaptchaAppId:{type:String,default:""}},data:function(){return{captcha:null}},mounted:function(){},methods:{getCaptchaAppid:function(){var e=this;ls().then(function(t){e.init(t.data.data)})},init:function(e){try{if("undefined"===typeof TencentCaptcha)return console.warn("腾讯验证码库未加载,使用容错处理"),void this.loadErrorCallback();this.captcha=new TencentCaptcha(this.CaptchaAppId,this.callback,{aidEncrypted:e}),this.captcha.show()}catch(t){console.log("%c Line:32 🥛 error","color:#93c0a4",t),this.loadErrorCallback()}},loadErrorCallback:function(){var e=this.CaptchaAppId,t="trerror_1001_"+e+"_"+Math.floor((new Date).getTime()/1e3);this.callback({ret:0,randstr:"@"+Math.random().toString(36).substr(2),ticket:t,errorCode:1001,errorMessage:"jsload_error"})},callback:function(e){0==e.ret&&this.$emit("success",{ticket:e.ticket,randstr:e.randstr})}}},xs=(0,Zo.A)(ks,[["render",Es]]),Ss=xs;var Ts=["id"];function _s(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",{id:"captcha-element-".concat(i.uniqueId)},null,8,Ts)])}const Bs={props:{id:{type:String,required:!0},sceneId:{type:String,required:!0}},data:function(){return{captcha:null,uniqueId:""}},mounted:function(){this.uniqueId="captcha-"+Math.random().toString(36).substr(2,9);try{if("undefined"===typeof window.initAliyunCaptcha)return void console.warn("阿里云验证码库未加载");this.initAliyunCaptcha()}catch(e){console.error("阿里云验证码初始化失败:",e)}},methods:{initAliyunCaptcha:function(){var e=this;try{if("undefined"===typeof window.initAliyunCaptcha)return void console.warn("阿里云验证码库未加载,跳过初始化");window.initAliyunCaptcha({SceneId:this.sceneId,mode:"popup",element:"#captcha-element-".concat(this.uniqueId),button:"#".concat(this.id),captchaLogoImg:"https://file.icve.com.cn/app/site/prod/zyzyzx_components/zhzj_logo.webp",success:function(t){try{e.$emit("success",t),e.initAliyunCaptcha()}catch(r){console.error("验证码成功回调处理失败:",r)}},fail:function(e){console.error(e)},getInstance:function(t){try{e.$emit("getInstance",t),e.captcha=t}catch(r){console.error("验证码实例绑定失败:",r)}},slideStyle:{width:360,height:40},language:"undefined"!==typeof localStorage&&localStorage.getItem("language")||"cn"})}catch(t){console.error("阿里云验证码初始化失败:",t)}}}},Vs=(0,Zo.A)(Bs,[["render",_s]]),Ls=Vs,Os={name:"VerifySlide",components:{TJCaptcha:Ss,AliyunCaptchaModal:Ls},data:function(){return{CaptchaAppId:"196632980",sceneId:"e7gyz100",type:"alibaba"}},methods:{getType:function(){var e=this;es().then(function(t){e.type=t.data.data})["catch"](function(t){console.warn("获取验证码类型失败,使用默认类型:",t),e.type="alibaba"})},success:function(e){try{if("tencent"===this.type)this.$emit("success",e);else{var t=e?{captchaVerifyParam:e,sceneId:this.sceneId}:{specialKey:!0};this.$emit("success",t)}}catch(r){console.error("验证码处理失败:",r),this.$emit("success",{specialKey:!0})}},show:function(){try{if("tencent"===this.type)this.$refs.TJCaptcha.getCaptchaAppid();else if("alibaba"===this.type)if(window.AliyunCaptcha)this.$refs.aliyunCaptcha.captcha.show();else{var e={specialKey:!0};this.$emit("success",e)}else this.$emit("success")}catch(t){console.error("显示验证码失败:",t),this.$emit("success",{specialKey:!0})}}},created:function(){this.getType()}},Is=(0,Zo.A)(Os,[["render",Cs]]),Ps=Is;var As={class:"qr-code-wrapper"},Ds=["id"],js={key:0,class:"qr-login-overlay"},Fs={key:0,class:"overlay-content"},Rs={class:"overlay-text"},Ms={class:"overlay-tip"},Us={key:1,class:"overlay-content"},zs={class:"overlay-text",style:{color:"red"}},$s={class:"overlay-tip"},qs={class:"qr-tip"},Hs={key:0,class:"bind-tip"};function Js(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["qr-login-container",{"qr-login-container1":n.bdwxShow}])},[(0,r.createElementVNode)("div",As,[(0,r.createElementVNode)("div",{id:"qrcode-container-".concat(i.uniqueId)},null,8,Ds),1==i.loginStatus||3==i.loginStatus?((0,r.openBlock)(),(0,r.createElementBlock)("div",js,[1==i.loginStatus?((0,r.openBlock)(),(0,r.createElementBlock)("div",Fs,[(0,r.createElementVNode)("p",Rs,(0,r.toDisplayString)(e.i18n("已扫码")),1),(0,r.createElementVNode)("p",Ms,(0,r.toDisplayString)(e.i18n("请在手机上确认")),1),(0,r.createElementVNode)("button",{class:"rescan-btn",onClick:t[0]||(t[0]=function(){return a.handleRescanQrCode&&a.handleRescanQrCode.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("重新扫码")),1)])):3==i.loginStatus?((0,r.openBlock)(),(0,r.createElementBlock)("div",Us,[(0,r.createElementVNode)("p",zs,(0,r.toDisplayString)(e.i18n("二维码已过期")),1),(0,r.createElementVNode)("p",$s,(0,r.toDisplayString)(e.i18n("请点击下方按钮刷新")),1),(0,r.createElementVNode)("button",{class:"rescan-btn",onClick:t[1]||(t[1]=function(){return a.handleRescanQrCode&&a.handleRescanQrCode.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("重新生成")),1)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("p",qs,(0,r.toDisplayString)(n.bdwxShow?e.i18n("微信扫码进行账号绑定"):e.i18n("微信或App扫码均可登录")),1),i.wxRandom?((0,r.openBlock)(),(0,r.createElementBlock)("div",Hs,(0,r.toDisplayString)(e.i18n("你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~")),1)):(0,r.createCommentVNode)("",!0)],2)}var Gs=n(9118),Ks=n.n(Gs);const Ws={mixins:[Ya],props:{bdwxShow:{type:Boolean,default:!1}},data:function(){return{sceneId:"",qrCodeUrl:"",loading:!1,error:"",expireTime:0,pollTimer:null,statusTimer:null,loginStatus:0,wxRandom:"",uniqueId:""}},mounted:function(){this.uniqueId="qr-"+Math.random().toString(36).substr(2,9),this.generateQrCode()},beforeDestroy:function(){this.clearTimers()},methods:{generateQrCode:function(){var e=this;this.loading=!0,this.error="",os().then(function(t){var r=t.data;e.loading=!1,e.generateQRCode(r.data.qrUrl),e.sceneId=r.data.sceneId,e.expireTime=r.data.expireTime,e.startPolling(),e.startCountdown()})["catch"](function(t){e.loading=!1,e.error="生成二维码失败,请重试",console.error(t)})},generateQRCode:function(e){var t="qrcode-container-".concat(this.uniqueId);document.getElementById(t).innerHTML="",new(Ks())(document.getElementById(t),{text:e,width:240,height:240,colorDark:"#000000",colorLight:"#ffffff",correctLevel:Ks().CorrectLevel.H})},startPolling:function(){var e=this;this.pollTimer=setInterval(function(){is(e.sceneId).then(function(t){var r=t.data.data.status;1===r?e.loginStatus=r:2===r?(e.$emit("loginSuccess",t.data.data),e.wxRandom=t.data.data.wxRandom,e.clearTimers()):3===r&&(e.loginStatus=3,e.clearTimers())})["catch"](function(e){console.error("检查登录状态失败",e)})},2e3)},startCountdown:function(){var e=this;this.statusTimer=setInterval(function(){e.expireTime--,e.expireTime<=0&&(e.loginStatus=3,e.clearTimers())},1e3)},clearTimers:function(){this.pollTimer&&clearInterval(this.pollTimer),this.statusTimer&&clearInterval(this.statusTimer)},handleRescanQrCode:function(){this.loginStatus=0,this.generateQrCode()}}},Ys=(0,Zo.A)(Ws,[["render",Js],["__scopeId","data-v-6badd114"]]),Qs=Ys;var Xs={class:"main"},Zs={class:"phone_form"},ec={class:"Code"},tc={key:1,id:"djs"},rc={class:"test"},nc={class:"ti"},oc=["onClick"],ic={class:"le"},ac={class:"name"},sc={class:"mobile1"},cc={class:"ri"},lc={class:"footer"};function uc(e,t,n,o,i,a){var s=(0,r.resolveComponent)("Iphone"),c=(0,r.resolveComponent)("el-icon"),l=(0,r.resolveComponent)("el-input"),u=(0,r.resolveComponent)("el-form-item"),d=(0,r.resolveComponent)("el-form"),f=(0,r.resolveComponent)("NationalitySelector"),p=(0,r.resolveComponent)("verifyComponents");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["mobile",{"dialog-mode":i.isDialogMode}])},[(0,r.createElementVNode)("div",Xs,[(0,r.createElementVNode)("div",Zs,[(0,r.withDirectives)((0,r.createVNode)(d,{ref:"phoneForm",model:i.phoneForm},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{rules:i.isRules?[{required:!0,message:e.i18n("请输入手机号"),trigger:"change"},{pattern:/^1[3456789]\d{9}$/,message:e.i18n("手机号码格式错误"),trigger:"change"}]:[],class:"phone",label:"",prop:"mobile"},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",{id:"ghduhfue",onClick:t[0]||(t[0]=function(){return a.tolink&&a.tolink.apply(a,arguments)})},(0,r.toDisplayString)(i.gjMsg),1),(0,r.createVNode)(l,{id:"mobile_login",modelValue:i.phoneForm.mobile,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.phoneForm.mobile=e}),placeholder:e.i18n("请输入手机号")},{prefix:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s)]}),_:1})]}),_:1},8,["modelValue","placeholder"])]}),_:1},8,["rules"]),(0,r.createVNode)(u,{rules:[{required:!0,message:e.i18n("请输入验证码"),trigger:"change"}],label:"",prop:"msgCode"},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",ec,[t[7]||(t[7]=(0,r.createElementVNode)("img",{id:"code",alt:"",src:"https://file.icve.com.cn/rc/737/546/B8588913D6F3ACDCC1275979123080D6.png"},null,-1)),(0,r.createVNode)(l,{modelValue:i.phoneForm.msgCode,"onUpdate:modelValue":t[2]||(t[2]=function(e){return i.phoneForm.msgCode=e}),placeholder:e.i18n("请输入验证码"),"prefix-icon":""},null,8,["modelValue","placeholder"]),i.sms_timer?((0,r.openBlock)(),(0,r.createElementBlock)("div",tc,(0,r.toDisplayString)(i.sms_time_count+e.i18n("秒重获")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:"djs",onClick:t[3]||(t[3]=function(){return a.sjbdobtain&&a.sjbdobtain.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("获取验证码")),1))])]}),_:1},8,["rules"])]}),_:1},8,["model"]),[[r.vShow,0==i.list.length]]),(0,r.withDirectives)((0,r.createElementVNode)("div",rc,[(0,r.createElementVNode)("div",nc,(0,r.toDisplayString)(e.i18n("您输入的手机号已绑定过以下账号,绑定到该账号将自动解绑原绑定账户,是否确定?")),1),(0,r.createElementVNode)("ul",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.list,function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,onClick:function(r){return e.select(t)}},[(0,r.createElementVNode)("div",ic,[(0,r.createElementVNode)("div",ac,(0,r.toDisplayString)(t.userName),1),(0,r.createElementVNode)("div",sc,(0,r.toDisplayString)(t.mobile),1)]),(0,r.createElementVNode)("div",cc,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.i18n("最后登录时间"))+": "+(0,r.toDisplayString)(t.dateCreated),1)])],8,oc)}),128))])],512),[[r.vShow,i.list.length>0]])]),(0,r.createElementVNode)("div",lc,["2"==i.userType&&0==i.list.length?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"custom-plain-button",onClick:t[4]||(t[4]=function(){return a.toRedirect&&a.toRedirect.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("下次绑定")),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{class:"custom-primary-button",onClick:t[5]||(t[5]=function(){return a.mobileSubmit&&a.mobileSubmit.apply(a,arguments)})},(0,r.toDisplayString)(0==i.list.length?e.i18n("绑定手机"):e.i18n("确定")),1)])]),(0,r.createVNode)(f,{value:i.nationalityModalShow,onChange:a.handleNationalityChange,onClose:t[6]||(t[6]=function(e){return i.nationalityModalShow=!1})},null,8,["value","onChange"]),(0,r.createVNode)(p,{ref:"verifyComponents",onSuccess:a.sjbdsuccess},null,8,["onSuccess"])],2)}var dc={class:"custom-dialog nationality-selector"},fc={class:"custom-dialog-header"},pc={class:"custom-dialog-title"},hc=["title"],mc={class:"custom-dialog-body"},gc={key:0,class:"nationality-index-bar"},vc={class:"index-nav"},yc=["onClick"],bc={class:"nationality-list-container"},wc={class:"nationality-list",ref:"nationalityList"},Cc={key:0,class:"letter-section"},Nc={class:"letter-anchor"},Ec=["onClick"],kc={class:"country-name"},xc={key:1,class:"search-results-container"},Sc={class:"search-results"},Tc=["onClick"],_c={class:"country-name"};function Bc(e,t,n,o,i,a){var s=(0,r.resolveComponent)("el-scrollbar");return i.show?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"custom-dialog-overlay",onClick:t[1]||(t[1]=(0,r.withModifiers)(function(){return a.handleOverlayClick&&a.handleOverlayClick.apply(a,arguments)},["self"]))},[(0,r.createElementVNode)("div",dc,[(0,r.createElementVNode)("div",fc,[(0,r.createElementVNode)("h3",pc,(0,r.toDisplayString)(e.i18n("国籍选择")),1),(0,r.createElementVNode)("div",{class:"custom-dialog-close",onClick:t[0]||(t[0]=function(){return a.closeModal&&a.closeModal.apply(a,arguments)}),title:e.i18n("关闭")},si(t[2]||(t[2]=[(0,r.createElementVNode)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),8,hc)]),(0,r.createElementVNode)("div",mc,[i.searchKeyword?((0,r.openBlock)(),(0,r.createElementBlock)("div",xc,[(0,r.createVNode)(s,{style:{height:"100%"}},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",Sc,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.filteredCountries,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,class:"country-item",onClick:function(t){return a.select(e)}},[(0,r.createElementVNode)("span",_c,(0,r.toDisplayString)("cn"===i.defaultLang?e.name:e.country),1),t[4]||(t[4]=(0,r.createElementVNode)("i",{class:"el-icon-check country-check"},null,-1))],8,Tc)}),128))])]}),_:1})])):((0,r.openBlock)(),(0,r.createElementBlock)("div",gc,[(0,r.createElementVNode)("div",vc,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.alphabetList,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e,class:(0,r.normalizeClass)(["index-item",{active:i.currentLetter===e}]),onClick:function(t){return a.scrollToLetter(e)}},(0,r.toDisplayString)(e),11,yc)}),128))]),(0,r.createElementVNode)("div",bc,[(0,r.createVNode)(s,{style:{height:"100%"}},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",wc,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.alphabetList,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e,ref_for:!0,ref:"letter-".concat(e)},[a.getCountriesByLetter(e).length>0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Cc,[(0,r.createElementVNode)("div",Nc,(0,r.toDisplayString)(e),1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.getCountriesByLetter(e),function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.id,class:"country-item",onClick:function(t){return a.select(e)}},[(0,r.createElementVNode)("span",kc,(0,r.toDisplayString)("cn"===i.defaultLang?e.name:e.country),1),t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"el-icon-check country-check"},null,-1))],8,Ec)}),128))])):(0,r.createCommentVNode)("",!0)])}),128))],512)]}),_:1})])]))])])])):(0,r.createCommentVNode)("",!0)}const Vc={name:"NationalitySelector",mixins:[Ya],props:{value:{type:Boolean,default:!1},language:{type:String,default:""}},data:function(){return{show:this.value,defaultLang:this.getBrowserLanguage(),searchKeyword:"",currentLetter:"A",countriesData:[],alphabetList:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]}},computed:{filteredCountries:function(){var e=this;if(!this.searchKeyword)return[];var t=this.searchKeyword.toLowerCase();return this.countriesData.filter(function(r){var n="cn"===e.defaultLang?r.name:r.country;return n.toLowerCase().includes(t)})}},watch:{value:function(e){this.show=e,e&&this.getList()},show:function(e){this.$emit("input",e)}},created:function(){this.show&&this.getList(),document.addEventListener("keydown",this.handleKeyDown)},beforeDestroy:function(){document.removeEventListener("keydown",this.handleKeyDown)},methods:{getBrowserLanguage:function(){if(this.language)return this.language;var e=localStorage.getItem("language")||"cn";return e},handleKeyDown:function(e){"Escape"===e.key&&this.show&&this.closeModal()},select:function(e){this.$emit("change",e),this.closeModal()},closeModal:function(){this.show=!1,this.searchKeyword="",this.$emit("close")},handleOverlayClick:function(){this.closeModal()},handleSearch:function(){this.currentLetter=""},getCountriesByLetter:function(e){var t=this;return this.countriesData.filter(function(r){var n="cn"===t.defaultLang?r.shortName.charAt(0).toUpperCase():r.country.charAt(0).toUpperCase();return n===e})},scrollToLetter:function(e){var t=this;this.currentLetter=e,this.$nextTick(function(){var r=document.querySelector(".nationality-list-container .el-scrollbar__wrap"),n=t.$refs["letter-".concat(e)];if(n&&n[0]&&r){var o=r.getBoundingClientRect().top,i=n[0].getBoundingClientRect().top,a=r.scrollTop,s=a+(i-o);r.scrollTo({top:s,behavior:"smooth"})}})},getList:function(){var e=this;gs().then(function(t){var r=t.data;e.countriesData=r.data||[]})["catch"](function(t){console.error("获取国籍列表失败:",t),e.countriesData=[]})}}},Lc=(0,Zo.A)(Vc,[["render",Bc],["__scopeId","data-v-4c1d34f3"]]),Oc=Lc,Ic={name:"mobileBinding",mixins:[Ya],components:{verifyComponents:Ps,NationalitySelector:Oc,Iphone:Me},props:{userId:{type:String,default:""},mobileType:{type:Number}},data:function(){return{nationalityModalShow:!1,phoneForm:{},isRules:!0,gjMsg:"+ 86",sms_timer:null,sms_time_count:60,successShow:!1,source:localStorage.getItem("source")||"",nationalityList:{},redirect:null,userType:this.mobileType||"2",whiteList:[],middleQuery:null,middleUrl:null,list:[],isDialogMode:!1}},created:function(){this.checkDialogMode()},methods:{handleNationalityChange:function(e){this.nationalityList=e,this.gjMsg="+ "+e.sms||0,e.sms&&e.sms.includes("86")?this.isRules=!0:this.isRules=!1,this.nationalityModalShow=!1},checkDialogMode:function(){var e=this;this.$nextTick(function(){var t=e.$el.parentElement;while(t){if(t.classList&&(t.classList.contains("custom-dialog-body")||t.classList.contains("el-dialog__body")||t.classList.contains("dialog-body"))){e.isDialogMode=!0;break}t=t.parentElement}})},toRedirect:function(){this.$emit("loginSuccess")},tolink:function(){this.nationalityModalShow=!0},sjbdsuccess:function(e){var t=this,r=Da(Da({msgSendType:5,param:this.nationalityList.sms?this.nationalityList.sms+"-"+this.phoneForm.mobile:"86-"+this.phoneForm.mobile},e),{},{source:this.source});us(r).then(function(e){500==e.data.code?t.$message.warning(e.data.msg):(t.sms_timer=setInterval(function(){t.sms_time_count--,t.sms_time_count<=0&&(t.sms_time_count=60,clearInterval(t.sms_timer),t.sms_timer=null)},1e3),t.phoneForm.msgKey=e.data.data.msgKey)})},sjbdobtain:function(){var e=/^1[3456789]\d{9}$/;!e.test(this.phoneForm.mobile)&&this.gjMsg.includes("86")?this.$message.warning(this.i18n("手机号码格式错误")):this.$refs.verifyComponents.show()},mobileSubmit:function(){var e=this;this.$refs.phoneForm.validate(function(t){if(t){var r=JSON.parse(JSON.stringify(e.phoneForm));r.mobile=e.nationalityList.sms?e.nationalityList.sms+"-"+r.mobile:"86-"+r.mobile,r.isLogin=!1,r.bindVerify=!0,r.userId=e.userId,r.isConfirm=e.list.length>0,as(r).then(function(t){500==t.data.code?e.$message.warning(t.data.msg):(e.list=t.data.data.accountList,0==e.list.length&&e.toRedirect())})}})}}},Pc=(0,Zo.A)(Ic,[["render",uc],["__scopeId","data-v-3371c604"]]),Ac=Pc;var Dc={class:"mproveInformation"},jc={class:"content"},Fc={class:"input-radio"},Rc={key:0,class:"input-field"},Mc={key:1,class:"input-field"},Uc={class:"line-item"},zc={class:"input-field input-displayName"},$c={key:0,class:"input-field input-employeeNumber"},qc={key:2,class:"input-field"},Hc={key:3,class:"input-field"};function Jc(e,t,n,o,i,a){var s=(0,r.resolveComponent)("el-radio"),c=(0,r.resolveComponent)("el-radio-group"),l=(0,r.resolveComponent)("el-form-item"),u=(0,r.resolveComponent)("el-option"),d=(0,r.resolveComponent)("el-select"),f=(0,r.resolveComponent)("el-input"),p=(0,r.resolveComponent)("el-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Dc,[(0,r.createElementVNode)("div",jc,[(0,r.createVNode)(p,{ref:"form",model:i.form},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",Fc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)([{"input-en":"en"===i.defaultLang},"input-type"])},(0,r.toDisplayString)(e.i18n("身份类型")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("请选择身份类型"),trigger:"change"}],prop:"userType"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,{modelValue:i.form.userType,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.form.userType=e}),disabled:i.disableFields.userType},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{label:1},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("学生")),1)]}),_:1}),(0,r.createVNode)(s,{label:2},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("老师")),1)]}),_:1}),(0,r.createVNode)(s,{label:3},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("社会学习者")),1)]}),_:1}),(0,r.createVNode)(s,{label:4},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("企业用户")),1)]}),_:1}),(0,r.createVNode)(s,{label:5},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("国际学习者")),1)]}),_:1}),(0,r.createVNode)(s,{label:6},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.i18n("国际教师")),1)]}),_:1})]}),_:1},8,["modelValue","disabled"])]}),_:1},8,["rules"])]),6==i.form.userType||5==i.form.userType?((0,r.openBlock)(),(0,r.createElementBlock)("div",Rc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.gjName||i.focusedFields.gjName})},(0,r.toDisplayString)(e.i18n("国籍")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("国籍"),trigger:"change"}],prop:"gjName"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{modelValue:i.form.gjName,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.form.gjName=e}),disabled:i.disableFields.gjName,loading:i.loading,clearable:"",filterable:"",placeholder:"",remote:"","reserve-keyword":"",style:{width:"100%"},onBlur:t[2]||(t[2]=function(e){return i.focusedFields.gjName=!!i.form.gjName}),onFocus:t[3]||(t[3]=function(e){return i.focusedFields.gjName=!0})},{default:(0,r.withCtx)(function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.gjList,function(e){return(0,r.openBlock)(),(0,r.createBlock)(u,{key:e.sms,label:"cn"==i.defaultLang?e.name:e.country,value:"cn"==i.defaultLang?e.name:e.country},null,8,["label","value"])}),128))]}),_:1},8,["modelValue","disabled","loading"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0),3!=i.form.userType?((0,r.openBlock)(),(0,r.createElementBlock)("div",Mc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.schoolId||i.focusedFields.schoolId})},(0,r.toDisplayString)(e.i18n("单位名称")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("单位名称"),trigger:"change"}],prop:"schoolName"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{modelValue:i.form.schoolName,"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.form.schoolName=e}),disabled:i.disableFields.schoolId,loading:i.loading,"remote-method":a.remoteMethod,clearable:"",filterable:"",placeholder:"",remote:"","reserve-keyword":"",style:{width:"100%"},onBlur:t[5]||(t[5]=function(e){return i.focusedFields.schoolId=!!i.form.schoolId}),onFocus:t[6]||(t[6]=function(e){return i.focusedFields.schoolId=!0})},{default:(0,r.withCtx)(function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.list,function(e){return(0,r.openBlock)(),(0,r.createBlock)(u,{key:e.schoolId,label:e.schoolName,value:e.schoolName,onClick:function(t){return a.handleSchoolInput(e)}},null,8,["label","value","onClick"])}),128))]}),_:1},8,["modelValue","disabled","loading","remote-method"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Uc,[(0,r.createElementVNode)("div",zc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.displayName||i.focusedFields.displayName})},(0,r.toDisplayString)(e.i18n("真实姓名")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("真实姓名"),trigger:"change"}],prop:"displayName"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.displayName,"onUpdate:modelValue":t[7]||(t[7]=function(e){return i.form.displayName=e}),disabled:i.disableFields.displayName,onBlur:t[8]||(t[8]=function(e){return i.focusedFields.displayName=!!i.form.displayName}),onFocus:t[9]||(t[9]=function(e){return i.focusedFields.displayName=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])]),3!=i.form.userType&&4!=i.form.userType?((0,r.openBlock)(),(0,r.createElementBlock)("div",$c,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.employeeNumber||i.focusedFields.employeeNumber})},(0,r.toDisplayString)(e.i18n("工号/学号")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("工号/学号"),trigger:"change"}],prop:"employeeNumber"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.employeeNumber,"onUpdate:modelValue":t[10]||(t[10]=function(e){return i.form.employeeNumber=e}),disabled:i.disableFields.employeeNumber,onBlur:t[11]||(t[11]=function(e){return i.focusedFields.employeeNumber=!!i.form.employeeNumber}),onFocus:t[12]||(t[12]=function(e){return i.focusedFields.employeeNumber=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0)]),i.isWeakPwd||i.form.isEmptyPwd?((0,r.openBlock)(),(0,r.createElementBlock)("div",qc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.password||i.focusedFields.password})},(0,r.toDisplayString)(e.i18n("密码")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)"),trigger:"change"},{pattern:/^(?:(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])|(?=.*[A-Z])(?=.*[a-z])(?=.*[^A-Za-z0-9])|(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).{8,50}$/,message:e.i18n("至少包含四类字符(大写、小写、数字、特殊字符)中的三类,长度为( 8~50 位)"),trigger:"change"}],prop:"password"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.password,"onUpdate:modelValue":t[13]||(t[13]=function(e){return i.form.password=e}),disabled:i.disableFields.password,autocomplete:"new-password","show-password":"",onBlur:t[14]||(t[14]=function(e){return i.focusedFields.password=!!i.form.password}),onFocus:t[15]||(t[15]=function(e){return i.focusedFields.password=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0),i.isWeakPwd||i.form.isEmptyPwd?((0,r.openBlock)(),(0,r.createElementBlock)("div",Hc,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)({active:i.form.rePassword||i.focusedFields.rePassword})},(0,r.toDisplayString)(e.i18n("确认密码")),3),(0,r.createVNode)(l,{rules:[{required:!0,message:e.i18n("确认密码,保持一致"),trigger:"change"}],prop:"rePassword"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:i.form.rePassword,"onUpdate:modelValue":t[16]||(t[16]=function(e){return i.form.rePassword=e}),disabled:i.disableFields.rePassword,autocomplete:"new-password","show-password":"",onBlur:t[17]||(t[17]=function(e){return i.focusedFields.rePassword=!!i.form.rePassword}),onFocus:t[18]||(t[18]=function(e){return i.focusedFields.rePassword=!0})},null,8,["modelValue","disabled"])]}),_:1},8,["rules"])])):(0,r.createCommentVNode)("",!0)]}),_:1},8,["model"]),(0,r.createElementVNode)("div",{class:"button",onClick:t[19]||(t[19]=function(){return a.submit&&a.submit.apply(a,arguments)})},(0,r.toDisplayString)(e.i18n("提交")),1)])])}const Gc={name:"mproveInformation",mixins:[Ya],props:{weakPwd:{type:Boolean,default:!0},tzToken:{type:String,default:""}},data:function(){return{defaultLang:"cn",value:"",timeout:null,queryParams:{pageSize:10,curPage:1,schoolName:""},list:[],gjList:[],loading:!1,form:{userType:1},source:localStorage.getItem("source"),footMsg:"",footMsg1:"",sptImg:"",whiteList:[],middleQuery:null,middleUrl:null,isWeakPwd:this.weakPwd,focusedFields:{userName:!1,userType:!1,gjName:!1,displayName:!1,employeeNumber:!1,schoolId:!1,password:!1,rePassword:!1},disableFields:{userName:!1,userType:!1,gjName:!1,displayName:!1,employeeNumber:!1,schoolId:!1,password:!1,rePassword:!1}}},created:function(){this.defaultLang=this.$i18n.locale,this.getUserInfo(),this.getNationList()},methods:{handleSchoolInput:function(e){this.form.schoolId=e.schoolId},getUrlCode:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},getSchoolList:function(){var e=this;ms(this.queryParams).then(function(t){var r=t.data;e.loading=!1,e.list=r.data.data})},remoteMethod:function(e){var t=this;this.queryParams.schoolName=e,clearTimeout(this.timeout),""!==e?(this.loading=!0,this.timeout=setTimeout(function(){t.getSchoolList()},500)):this.list=[]},getNationList:function(){var e=this;gs().then(function(t){var r=t.data;e.gjList=r.data})},getUserInfo:function(){var e=this;hs(this.tzToken).then(function(t){var r=t.data;e.form=r.data,e.form.gjName=e.defaultLang?e.form.cn:e.form.en,e.disableFields.gjName=e.disableFields.userName=!!e.form.userName,e.disableFields.userType=!!e.form.userType,e.disableFields.gjName=!!e.form.en,e.disableFields.displayName=!!e.form.displayName,e.disableFields.employeeNumber=!!e.form.employeeNumber,e.disableFields.schoolId=!!e.form.schoolId,e.disableFields.password=!!e.form.password,e.disableFields.rePassword=!!e.form.rePassword,1==e.form.userType&&null!=e.form.en&&"China"!=e.form.en?e.form.userType=5:2==e.form.userType&&null!=e.form.en&&"China"!=e.form.en?e.form.userType=6:e.form.userType||(e.form.userType=1)})},submit:function(){var e=this;this.$refs.form.validate(function(t){if(t){if(e.form.password!==e.form.rePassword&&(e.form.isEmptyPwd||e.isWeakPwd))return e.$message.error(e.i18n("确认密码,保持一致"));e.form.isVerifyData=e.isWeakPwd||!!e.form.isEmptyPwd;var r=JSON.parse(JSON.stringify(e.form));r.userType=5==r.userType?1:6==r.userType?2:r.userType,cs(r).then(function(t){500==t.data.code?e.$message.warning(t.data.msg):(sessionStorage.removeItem("information"),e.getBusinessPlatformLoginUrl())})}})},getBusinessPlatformLoginUrl:function(){this.$emit("loginSuccess")}}},Kc=(0,Zo.A)(Gc,[["render",Jc],["__scopeId","data-v-088b4acc"]]),Wc=Kc,Yc=(0,r.defineComponent)({name:"Login",mixins:[Ya],components:{Agreement:Za,verifyComponents:Ps,QRCodeLogin:Qs,MobileBinding:Ac,improveInformation:Wc,NationalitySelector:Oc,User:Je,Lock:ze,Iphone:Me},props:{loginModalShow:{type:Boolean,default:!1}},data:function(){return{isMultipleAccountShow:!1,phoneBindShow:!1,editPasswordShow:!1,wxRandom:"",nationalityModalShow:!1,loadLanguage:!0,isOneYearBeforeLogin:!1,isOneYearBeforeLoginForm:{},status:null,captchaVerifyParam:"",isSmartEduLogin:!1,whiteList:[],middleUrl:"",middleQuery:"",isMerged:!0,isTz2p:!1,isUpdateName:!1,zjtxUrl:"",userList:[],verifyForm:{},bdwxShow:!1,tzToken:null,sptImg:"",nationalityList:{},accountList:[],gjMsg:"+ 86",tab:2,isRules:!0,checked:!1,clickVerifyShow:!1,obtainShow:!1,buttonShow:!1,testShow:!1,txyzmShow:!1,kfShow:!1,test:"",sms_timer:null,sms_time_count:60,form:{type:1},phoneForm:{},emailForm:{},footMsg:"",footMsg1:"",source:"",redirect:"",activeIndex:0,mobileList:["绑定新号码","绑定已有手机号"],phoneList:[],userType:null,selectMobile:"",successShow:!1,ishbzhShow:!1,str:"",editForm:{},schoolId:"",userId:"",mobileType:"",isWeakPwd:!1}},computed:{loginShow:function(){return this.loginModalShow}},methods:{hbtiaozhuan:function(){"test"===sessionStorage.getItem("environment")?window.open("https://testssov2.icve.com.cn/sso/accountConsolidation"):window.open("https://sso.icve.com.cn/sso/accountConsolidation")},maskedPhoneNumber:function(e){var t=e.replace(/(\d{3})\d{4}(\d{3})/,function(e,t,r){return t+"*".repeat(4)+r});return t},getfeaturesBySource:function(e){var t=this;vs({source:e,featuresName:"zhzgLogin"}).then(function(e){200==e.data.code&&(1==e.data.data.loginPermission&&(t.zjtxUrl=e.data.data.uri),1==e.data.data.isSmartEduLogin&&(t.isSmartEduLogin=!0))})},phonechange:function(e){this.phoneForm.userName=e,this.accountList.forEach(function(t){t.userName==e?t.checked=!0:t.checked=!1}),this.phoneLogin()},inverseSelected:function(e,t){this.phoneForm.userName=e.userName,this.accountList.forEach(function(t){t.userName==e.userName?t.checked=!0:t.checked=!1})},multipleAccountSubmit:function(){var e=this.accountList.some(function(e){return e.checked});e?this.phoneLogin():this.$message.warning(this.i18n("请先选择要登录的账号"))},inverseSelected1:function(e,t){this.selectMobile=e.mobile,this.phoneList.forEach(function(t){t.mobile==e.mobile?t.checked=!0:t.checked=!1})},kctz:function(){window.open("https://hephelp.udesk.cn/im_client/?web_plugin_id=93901&cur_title=%E6%99%BA%E6%85%A7%E8%81%8C%E6%95%99&src_url=https%3A%2F%2Fsso.icve.com.cn%2Fh5%2F&cur_url=https%3A%2F%2Fsso.icve.com.cn%2F&pre_url=https%3A%2F%2Fsso.icve.com.cn%2Fsso%2Fbackstage%3Fsource%3D14&robot_enable_agent=true&robot_enable_robot=true&robot_reception_strategy=all_day&robot_scene_id=3533&robot_udesk_robot_id=761&robot_show_robot_times=0")},zjtxdl:function(){1==this.source?window.open("https://auth.smartedu.cn/uias/oauth/authorize?client_id=v16wt6TMGejoFeALGzRhzAPMMjLAn1hx&grant_type=authorization_code&response_type=code&redirect_uri=https://vocational.smartedu.cn/thirdLogin.html?state=https://vocational.smartedu.cn"):4==this.source?window.open("https://auth.smartedu.cn/uias/oauth/authorize?client_id=CjuEqAyujmdYI7LDcjrTgAm0YFm6h9em&grant_type=authorization_code&response_type=code&redirect_uri=https://sso.icve.com.cn/sso/zjtxPedding"):7==this.source?window.open("https://auth.smartedu.cn/uias/oauth/authorize?client_id=JUPELHVTxjGGiUK8kZ9gxgDS1r7ZnHXW&grant_type=authorization_code&response_type=code&redirect_uri=https://vocational.beijing.smartedu.cn/icve-admin/pedding&scope=userInfo"):window.open("".concat(this.zjtxUrl))},loginSuccess:function(e){this.$emit("loginSuccess",e)},handleClose:function(){this.test="",this.testShow=!1,this.isUpdateName&&this.loginSuccess(this.editForm.token)},getUrlCode:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},handleClick:function(e){this.tab=e},success:function(e){this.form.imgCode=e.captchaVerification},change:function(e){this.checked=e},changeLanguage:function(){var e=this;this.sms_time_count=60,clearInterval(this.sms_timer),this.sms_timer=null,this.loadLanguage=!1;var t=this.currentLocale,r="cn"===t?"en":"cn";this.$i18n.locale=r,this.gjMsg="+ 86",1==this.source||17==this.source?(this.footMsg=this.i18n("Copyright© 2026 国家职业教育智慧教育平台"),this.footMsg1=this.i18n("京ICP备 09059518号-20 京公网安备 11010202007836号")):4==this.source?(this.footMsg=this.i18n("Copyright© 2026 湖北职业教育智慧教育平台"),this.footMsg1=this.i18n("京ICP备 09059518号-20 京公网安备 11010202007836号")):(this.footMsg=this.i18n("Copyright©2026 高等教育出版社"),this.footMsg1=this.i18n("京公网安备 11010202007836号 京ICP备 12020869号-19")),this.$forceUpdate(),setTimeout(function(){e.loadLanguage=!0},200)},obtain:function(){var e=/^1[3456789]\d{9}$/;!e.test(this.phoneForm.mobile)&&this.gjMsg.includes("86")?(this.testShow=!0,this.test=this.i18n("手机号为空或手机号格式不正确")):(this.status=2,this.$refs.verifyComponents.show())},emailObtain:function(){if(!this.emailForm.email)return this.$message.warning(this.i18n("请输入邮箱地址"));this.status=3,this.$refs.verifyComponents.show()},emailLogin:function(){var e=this;this.$refs.emailForm.validate(function(t){if(t){if(!e.checked)return e.$msgbox({title:e.i18n("用户协议及隐私协议"),message:(0,r.h)("p",null,[(0,r.h)("span",null,e.i18n("我已阅读并同意")),(0,r.h)("span",{style:"color: #004b90"},e.i18n("用户服务协议")+","+e.i18n("隐私协议"))]),showCancelButton:!0,confirmButtonText:e.i18n("确定"),cancelButtonText:e.i18n("取消")}).then(function(t){e.$refs.agreement.checked=!0,e.checked=!0,e.emailLogin()}),!1;e.emailLoginSuccess()}})},emailLoginSuccess:function(){var e=this,t=JSON.parse(JSON.stringify(this.emailForm));t.dataSource=this.source,rs(Da(Da({},t),{},{wxRandom:this.wxRandom})).then(function(t){var r=t.data;500==r.code?(e.testShow=!0,e.test=r.msg):fs({token:r.data.token,source:e.source}).then(function(t){e.whiteList=t.data.data.sources||[],e.middleQuery=t.data.data.sign,e.middleUrl=t.data.data.jumpUrl,e.test=e.i18n("登录成功"),e.testShow=!0,e.loginSuccess(r.data.token)})})},emailSuccess:function(e){var t=this,r=Da({msgSendType:2,param:this.emailForm.email},e);ns(r).then(function(e){if(500==e.data.code)return t.$message.warning(e.data.msg);t.sms_timer=setInterval(function(){t.sms_time_count--,t.sms_time_count<=0&&(t.sms_time_count=60,clearInterval(t.sms_timer),t.sms_timer=null)},1e3),t.emailForm.msgKey=e.data.data.msgKey})},obtainSuccess:function(e){var t=this,r=Da(Da({msgSendType:1},e),{},{param:this.nationalityList.sms?this.nationalityList.sms+"-"+this.phoneForm.mobile:"86-"+this.phoneForm.mobile});us(r).then(function(e){500==e.data.code?(t.testShow=!0,t.test=e.data.msg):(t.sms_timer=setInterval(function(){t.sms_time_count--,t.sms_time_count<=0&&(t.sms_time_count=60,clearInterval(t.sms_timer),t.sms_timer=null)},1e3),t.phoneForm.msgKey=e.data.data.msgKey)})},CaptchaSuccess:function(e){var t=this;return Va(_a().m(function r(){return _a().w(function(r){while(1)switch(r.n){case 0:if(1!=t.status){r.n=1;break}t.getUserLogin(e),r.n=4;break;case 1:if(2!=t.status){r.n=3;break}return r.n=2,t.obtainSuccess(e);case 2:r.n=4;break;case 3:if(3!=t.status){r.n=4;break}return r.n=4,t.emailSuccess(e);case 4:return r.a(2)}},r)}))()},login:function(){var e=this;this.$refs.form.validate(function(t){if(t){if(!e.checked)return e.$msgbox({title:e.i18n("用户协议及隐私协议"),message:(0,r.h)("p",null,[(0,r.h)("span",null,e.i18n("我已阅读并同意")),(0,r.h)("span",{style:"color: #004b90"},e.i18n("用户服务协议")+","+e.i18n("隐私协议"))]),showCancelButton:!0,confirmButtonText:e.i18n("确定"),cancelButtonText:e.i18n("取消")}).then(function(t){e.$refs.agreement.checked=!0,e.checked=!0,e.login()}),!1;e.status=1,e.$refs.verifyComponents.show()}})},wxLoginSuccess:function(e){var t=this;this.bdwxShow?ts({wxRandom:e.wxRandom,token:this.tzToken})["finally"](function(){t.loginSuccess(t.tzToken)}):e.wxRandom?this.wxRandom=e.wxRandom:this.loginSuccess(e.token)},oneYearBeforeLogin:function(){var e=this;ss({userId:this.isOneYearBeforeLoginForm.userId,mobile:this.isOneYearBeforeLoginForm.mobile,token:this.tzToken}).then(function(t){if(500===t.data.code)return e.$message.warning(t.data.msg);e.loginSuccess(e.tzToken)})},getUserLogin:function(e){var t=this;ds(Da(Da(Da({},this.form),{},{webPageSource:1},e),{},{isNationalLogin:this.isSmartEduLogin,wxRandom:this.wxRandom})).then(function(){var e=Va(_a().m(function e(r){var n;return _a().w(function(e){while(1)switch(e.n){case 0:if(n=r.data,500!=n.code){e.n=1;break}t.testShow=!0,t.test=n.msg,e.n=2;break;case 1:return e.n=2,fs({token:n.data.token,source:t.source}).then(function(e){return t.whiteList=e.data.data.sources||[],t.middleQuery=e.data.data.sign,t.middleUrl=e.data.data.jumpUrl,t.isTz2p=n.data.isClosedSchool,t.tzToken=n.data.token,n.data.isGTOne?(t.userList=n.data.accountList,t.isOneYearBeforeLoginForm.userId=n.data.id,t.isOneYearBeforeLoginForm.mobile=n.data.mobile,t.isOneYearBeforeLogin=!0,!1):n.data.mobile||n.data.gjUser?n.data.isWeakPwd?(t.isWeakPwd=1==n.data.isWeakPwd,t.editPasswordShow=!0,!1):localStorage.getItem("wxdltkyc")||n.data.isBindWeChat?n.data.isUpdateName?(t.test=t.i18n("您的用户名已经更改,老用户将不能登录,更改之后的用户名称为:")+n.data.userName,t.isUpdateName=n.data.isUpdateName,t.editForm.token=n.data.token,void(t.testShow=!0)):(t.test=t.i18n("登录成功"),t.testShow=!0,void t.loginSuccess(n.data.token)):(t.bdwxShow=!0,!1):(t.mobileType=n.data.userType,t.userId=n.data.id,t.phoneBindShow=!0,!1)});case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}())},phonVerify:function(){var e=this;this.$refs.phoneForm.validate(function(t){if(t){if(!e.checked)return e.$msgbox({title:e.i18n("用户协议及隐私政策"),message:(0,r.h)("p",null,[(0,r.h)("span",null,e.i18n("已阅读并同意")),(0,r.h)("span",{style:"color: #004b90"},e.i18n("用户协议,隐私协议"))]),showCancelButton:!0,confirmButtonText:e.i18n("确定"),cancelButtonText:e.i18n("取消")}).then(function(t){e.$refs.agreement.checked=!0,e.checked=!0,e.phonVerify()}),!1;e.phoneLogin()}})},phoneLogin:function(e){var t=this,r=JSON.parse(JSON.stringify(this.phoneForm));r.source=this.source,r.mobile=this.nationalityList.sms?this.nationalityList.sms+"-"+this.phoneForm.mobile:"86-"+this.phoneForm.mobile,ps(Da(Da({},r),{},{webPageSource:1,wxRandom:this.wxRandom})).then(function(e){var r=e.data;500==r.code?(t.testShow=!0,t.test=r.msg):fs({token:r.data.token,source:t.source}).then(function(e){return t.isTz2p=r.data.isClosedSchool,r.data.token?(t.whiteList=e.data.data.sources||[],t.middleQuery=e.data.data.sign,t.middleUrl=e.data.data.jumpUrl,localStorage.getItem("wxdltkyc")||r.data.isBindWeChat?(t.tzToken=r.data.token,t.test=t.i18n("登录成功"),t.testShow=!0,void t.loginSuccess(r.data.token)):(t.tzToken=r.data.token,t.bdwxShow=!0,!1)):(t.accountList=r.data.accountList,t.phoneForm.isMultipleAccount=!0,t.accountList.forEach(function(e){1==e.userType?e.userType="学生":2==e.userType?e.userType="老师":3==e.userType?e.userType="社会学习者":4==e.userType?e.userType="企业用户":5==e.userType?e.userType="管理员":6==e.userType?e.userType="编辑":7==e.userType&&(e.userType="访客")}),t.isMerged=r.data.isMerged,void(t.isMerged&&(t.ishbzhShow=!0)))})})},bztx:function(){localStorage.setItem("wxdltkyc","不再提醒"),this.loginSuccess(this.tzToken)},xcbd:function(){this.loginSuccess(this.tzToken)},closeBox:function(){this.txyzmShow=!1,this.clickVerifyShow=!1},closeLoginModal:function(){this.$emit("update:loginModalShow",!1)},showNationalityModal:function(){this.nationalityModalShow=!0},handleNationalityChange:function(e){console.log(e,"nationality"),this.nationalityList=e,this.gjMsg="+ "+e.sms||0,e.sms&&e.sms.includes("86")?this.isRules=!0:this.isRules=!1,this.nationalityModalShow=!1}},created:function(){this.footMsg=this.i18n("Copyright©2026 高等教育出版社"),this.footMsg1=this.i18n("京公网安备 11010202007836号 京ICP备 12020869号-19")}}),Qc=(0,Zo.A)(Yc,[["render",Sa]]),Xc=Qc,Zc={install:function(e){e.component("userCenterCompleteInformation",ti),e.component("userCenterLogin",Xc)}},el=Zc})(),o})());
8
8
  //# sourceMappingURL=icve-sso-vue3.umd.min.js.map