index-legacy-958b4ee0.js 27 KB

1
  1. !function(){const e=["extra","loginType","autoRegister","password","multiUser"];function t(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function o(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?t(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function n(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function r(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},s=Object.keys(e);for(n=0;n<s.length;n++)o=s[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)o=s[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function s(e,t,o,n,r,s,a){try{var l=e[s](a),i=l.value}catch(u){return void o(u)}l.done?t(i):Promise.resolve(i).then(n,r)}function a(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var a=e.apply(t,o);function l(e){s(a,n,r,l,i,"next",e)}function i(e){s(a,n,r,l,i,"throw",e)}l(void 0)}))}}System.register(["./index-legacy-f009f15c.js","./index-legacy-05a868d7.js","./student-register-store-legacy-55ffceed.js","./index-legacy-e967afa4.js","./index-legacy-1fec9eae.js","./index-legacy-76c7cff8.js","./index-legacy-2623805f.js","./api-legacy-7d345705.js","./index-legacy-9a91b295.js","./index-legacy-84ce7ac4.js","./index-legacy-d8afa998.js","./index-legacy-46326dc7.js","./index-legacy-e490e3f2.js","./index-legacy-2b26c214.js","./index-legacy-a7324da7.js","./index-legacy-e4fd63fa.js","./index-legacy-bfb39003.js","./index-legacy-698b71ba.js","./index-legacy-0afb6593.js","./index-legacy-1e9af5a3.js","./index-legacy-f7bba36d.js","./Checker-legacy-142cfdad.js","./Picker-legacy-a576753f.js"],(function(t,n){"use strict";var s,l,i,u,d,c,p,m,g,h,f,C,v,_,y,w,S,x,b,T,A,I,F,P,k,q,N,O,L,B,E,R,j,G,D,V,U;return{setters:[e=>{s=e.d,l=e.P,i=e.q,u=e.r,d=e.x,c=e.al,p=e.e,m=e.y,g=e.D,h=e.a,f=e.A,C=e.N,v=e.C,_=e.U,y=e.z,w=e.M,S=e.bY,x=e.J},e=>{b=e.M},e=>{T=e.u},e=>{A=e.O},e=>{I=e.M},e=>{F=e.M},e=>{P=e.S},e=>{k=e.a},e=>{q=e.C},e=>{N=e.M},e=>{O=e.b},e=>{L=e.F},e=>{B=e.F},e=>{E=e.C},e=>{R=e.R,j=e.a},e=>{G=e.T},e=>{D=e.P},e=>{V=e.A},e=>{U=e.C},null,null,null,null],execute:function(){var M=document.createElement("style");M.textContent="._student-register_1vgqd_1{min-height:100vh;background:linear-gradient(180deg,#C9EDFD 0%,#CCF0FF 100%);overflow:hidden;position:relative;--k-font-primary: #007AFE}._student-register_1vgqd_1 ._studentRegisterContainer_1vgqd_8{padding-top:4.13333rem;background:url("+new URL("banner-bg-31681108.png",n.meta.url).href+') no-repeat top center;background-size:contain}._student-register_1vgqd_1 .van-picker__loading{top:calc(var(--van-picker-toolbar-height) + .53333rem + var(--van-search-input-height))!important}._paymentContainer_1vgqd_16{font-size:.37333rem;padding:.32rem .66667rem calc(.32rem + env(safe-area-inset-bottom)) .66667rem;background:#FFFFFF;box-shadow:0 -.02667rem #f2f2f2,inset 0 .02667rem .08rem #fff;border-radius:.48rem .48rem 0 0}._paymentContainer_1vgqd_16 .van-button{height:1.06667rem;line-height:1.06667rem;background:linear-gradient(135deg,#31C7FF 0%,#007AFE 100%);font-size:.42667rem;color:#fff;font-weight:500;border:0}._studentSection_1vgqd_32{margin:0 .37333rem .32rem;padding:0;background:linear-gradient(180deg,#DBF6FD 0%,#FFFFFF 4%,#FFFFFF 100%);border-radius:.42667rem;border:.05333rem solid #FFFFFF}._registerForm_1vgqd_39{border-radius:.48rem;overflow:hidden}._registerForm_1vgqd_39 ._selectStudentGroup_1vgqd_43{margin-left:.26667rem;font-size:.37333rem;color:#1189ff;display:flex;align-items:center;justify-content:center}._registerForm_1vgqd_39 ._selectStudentGroup_1vgqd_43._selectStudentGroupChecked_1vgqd_51 span:after{transform:rotate(180deg)}._registerForm_1vgqd_39 ._selectStudentGroup_1vgqd_43 span{display:flex;align-items:center;justify-content:center}._registerForm_1vgqd_39 ._selectStudentGroup_1vgqd_43 span:after{display:inline-block;content:"";width:.24rem;height:.13333rem;margin-left:.10667rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAQpJREFUKFOV0sEuA0Ecx/Hvb1MuKlUJHoAn4NhLL5zqBSTODk4k7TYeQKwmnBycJV5AT1x6ceQJeAAktht1ofYvs6qhths7t//M7/+ZycwIoBzYPuADnqtzjBgIQl97ck0zB3YksZMDGEbNOO42tZtAnNpEOaKNsZYLE5dhiRpbev+CgLkTK/Zf6WCs/AsTN4Upqk/b6rn8EHJFsWXzhZhrwVIWZnDX96j06nr8zv2C3GTp0BZlCbaQhhk8mKhEDd3/XP8DDbBlz+gA0yPYSyyqUUO3o5ukQi40G9hqDG3BpKsN3jyoPfu6SjvpWCj5Xy3bIOYsafTYDOs6H3d3mdAAW+cDwqYush7gE/MJSwtu5d2eAAAAAElFTkSuQmCC) no-repeat center;background-size:contain}._registerForm_1vgqd_39 .van-cell{background-color:transparent}._registerForm_1vgqd_39 .van-cell{padding:.37333rem .48rem}._registerForm_1vgqd_39 .van-field__label{font-size:.42667rem;color:#666;line-height:.58667rem;display:flex;align-items:center}._registerForm_1vgqd_39 .van-field__control{font-size:.42667rem;color:#131415}._registerForm_1vgqd_39 ._codeText_1vgqd_85{color:#1189ff;font-size:.37333rem}._radioSection_1vgqd_89{position:relative;min-width:.85333rem;justify-content:center;padding:.13333rem .50667rem;font-size:.37333rem;font-weight:500;border-radius:.16rem}._radioItem_1vgqd_98{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_1vgqd_89+._radioSection_1vgqd_89{margin-left:.32rem}._selectStudentPopup_1vgqd_109 .van-popup__close-icon{color:#767c7f}._studentInfo_1vgqd_112 .van-cell{padding:.26667rem 0}._studentInfo_1vgqd_112 .van-cell:first-child{padding-top:0}._studentInfo_1vgqd_112 .van-cell:last-child{padding-bottom:0}._studentInfo_1vgqd_112 .van-cell__title{flex:1 auto;font-size:.37333rem;color:#666;line-height:.53333rem}._studentInfo_1vgqd_112 .van-cell__title span{color:#666!important}._studentInfo_1vgqd_112 .van-cell__value{font-size:.37333rem;color:#131415;flex:1 auto;line-height:.53333rem}._studentInfo_1vgqd_112 .van-cell__value span{color:#131415!important}._studentBtnGroup_1vgqd_139{display:flex;align-items:center;padding-top:.53333rem;padding-bottom:.13333rem}._studentBtnGroup_1vgqd_139 .van-button{flex:1}._studentBtnGroup_1vgqd_139 .van-button+.van-button{margin-left:.4rem}\n',document.head.appendChild(M);const z={"student-register":"_student-register_1vgqd_1",studentRegisterContainer:"_studentRegisterContainer_1vgqd_8",paymentContainer:"_paymentContainer_1vgqd_16",studentSection:"_studentSection_1vgqd_32",registerForm:"_registerForm_1vgqd_39",selectStudentGroup:"_selectStudentGroup_1vgqd_43",selectStudentGroupChecked:"_selectStudentGroupChecked_1vgqd_51",codeText:"_codeText_1vgqd_85",radioSection:"_radioSection_1vgqd_89",radioItem:"_radioItem_1vgqd_98",selectStudentPopup:"_selectStudentPopup_1vgqd_109",studentInfo:"_studentInfo_1vgqd_112",studentBtnGroup:"_studentBtnGroup_1vgqd_139"},Y=[];for(let e=1;e<=40;e++)Y.push({text:e+"班",value:e});t("default",s({name:"activation-register",setup(){const t=l(),n=T(),s=i(),M=u(),K=d({schoolId:null,schoolAreaId:null,activationCode:null,paymentType:"",paymentChannel:"",multi_user_limit:1,registerDetails:{},details:[],gradeYear:"",schoolInstrumentSetType:null,isRegister:"create",isDisabled:!1,isTipRegister:!1,isChangeSchool:!1,schoolStatus:!1,schoolPopupShow:!1,schoolLoading:!1,schoolPopupIndex:[],schoolAreaList:[],provinceCode:null,cityCode:null,regionCode:null,showResultPopup:!1,reslutPopupType:"",resultPopupContent:"",registerType:"",detailVip:{},giftVipDay:0,submitLoading:!1,showTips:!1,showButton:!1,showMessage:"请使用微信扫描二维码",countDownStatus:!0,countDownTime:12e4,imgCodeStatus:!1,gradeNumText:"",currentClassText:"",schoolName:"",areaName:"",gradeStatus:!1,classStatus:!1,loading:!1,showConfirmPopup:!1,showPicker:!1,areaList:[],tipStatus:!0,dialogConfirmStatus:!1,contract_sign:!1,countDownTimePay:6e4,dialogConfig:{},showSelectStudent:!1,studentList:[],studentItem:{},joinType:"digitalize",gradeList:[],classList:[],saveUserId:null,saveId:null,openId:null,code:null,registerExpireTime:null,instrumentCode:null,activeOverTime:0,activeOverStatus:!0,gradePopupShow:!1,gradePopupIndex:[],classPopupShow:!1,classPopupIndex:[]}),Q=d({showOtherSchool:!1,showCloseButton:!0,showOtherMessage:"",otherType:"",showCancelButton:!0,cancelButtonColor:"",cancelButtonText:"取消",showConfirmButton:!0,confirmButtonColor:"",confirmButtonText:"确定",messageAlign:"left"});d({showQrcode:!1,qrCodeUrl:"",pay_channel:"",orderInfo:{},authShow:!1,orderNo:null,config:{},paymentStatus:!1,orderTimer:null});const J=d({autoRegister:!0,multiUser:!0,client_id:"cooleshow-student",client_secret:"cooleshow-student",extra:{nickname:"",currentGradeNum:"",currentClass:"",gender:1,registerType:null,giftVipDay:0},grant_type:"password",loginType:"SMS",password:"",username:""});O(1e3,{controls:!0}).pause(),c({time:K.activeOverTime,onFinish(){K.activeOverStatus=!0,K.submitLoading||X()}});const X=()=>{K.showTips=!0,K.showMessage='<p style="color: #F44541">报名已截止,感谢您的参与</p>',K.showButton=!1},Z=()=>{K.countDownStatus=!1,y((()=>{M.value.start()}))},H=()=>{if(!w(J.username))return C("请输入正确的手机号码");K.imgCodeStatus=!0},W=p((()=>!!w(J.username))),$=()=>{K.countDownStatus=!0,M.value.reset()},ee=(e,t)=>{K.isTipRegister=e,K.isChangeSchool=t},te=(e=!0)=>w(J.username)?J.password?J.extra.nickname?[0,1].includes(J.extra.gender)?J.extra.currentGradeNum?J.extra.currentClass?!K.activationCode&&(e&&C("请输入互通码"),!0):(e&&C("请选择所在班级"),!0):(e&&C("请选择所在年级"),!0):(e&&C("请选择性别"),!0):(e&&C("请输入学生姓名"),!0):(e&&C("请输入验证码"),!0):(e&&C("请输入正确的手机号码"),!0),oe=()=>{const{extra:e}=J;return K.studentItem.nickname!==e.nickname&&K.isTipRegister?(Q.showOtherMessage="学生姓名与上次提交信息不一致,请确认修改学生信息或创建新的学生账号",Q.showOtherSchool=!0,Q.showCancelButton=!0,Q.showCloseButton=!0,Q.cancelButtonColor="linear-gradient( 224deg, #3FE1E6 0%, #00CDD4 100%)",Q.cancelButtonText="新建学生",Q.confirmButtonColor="linear-gradient( 305deg, #40C8FF 0%, #3192FF 100%)",Q.confirmButtonText="修改信息",Q.otherType="nickname",Q.messageAlign="left",!0):"create"===K.isRegister&&K.studentList.length>=K.multi_user_limit&&(Q.showOtherMessage=`同一手机号最多创建${K.multi_user_limit}个学生`,Q.showOtherSchool=!0,Q.showCancelButton=!1,Q.showCloseButton=!0,Q.confirmButtonColor="linear-gradient( 305deg, #40C8FF 0%, #3192FF 100%)",Q.confirmButtonText="我知道了",Q.otherType="limit",Q.messageAlign="center",!0)},ne=function(){var t=a((function*(){K.submitLoading=!0;try{if(te()||oe())return void(K.submitLoading=!1);const{extra:t,loginType:s,autoRegister:a,password:l,multiUser:i}=J,u=r(J,e);let d=s,c=a,p=l,m=i;"update"===K.isRegister&&(d="TOKEN",c=!1,p=K.studentItem.token,m=!1);const h=yield g.post("/edu-app/userlogin",{requestType:"form",data:o(o({loginType:d,autoRegister:c,password:p,multiUser:m},u),{},{extra:JSON.stringify(o(o({},t),{},{schoolId:K.schoolId}))})});if(200!==h.code)5436===h.code?(K.showTips=!0,K.showMessage="二维码已经失效,详情请咨询学校老师",K.showButton=!1):5435===h.code&&(K.showTips=!0,K.showMessage=h.message,K.showButton=!0);else{n.setToken(h.data.token_type+" "+h.data.access_token),S();const e=yield g.get("/edu-app/user/getUserInfo",{requestType:"form"});x(e.data),yield re()}}catch(t){ee("create"!==K.isRegister,!1)}finally{K.submitLoading=!1}}));return function(){return t.apply(this,arguments)}}(),re=function(){var e=a((function*(){try{const{extra:e,username:t}=J,n=yield g.post("/edu-app/student/register",{data:o(o({clientType:"STUDENT"},e),{},{activationCode:K.activationCode,schoolId:K.schoolId,schoolAreaId:K.schoolAreaId,schoolVerify:!1,mobile:t,newRegUser:"create"===K.isRegister})});return 200!==n.code?(5436===n.code?(K.showTips=!0,K.showMessage="二维码已经失效,详情请咨询学校老师",K.showButton=!1):5435===n.code?(K.showTips=!0,K.showMessage=n.message,K.showButton=!0):5437===n.code?(K.showTips=!0,K.showMessage='<p style="color: #F44541">报名已截止,感谢您的参与</p>',K.showButton=!1):5442===n.code?(K.showResultPopup=!0,K.reslutPopupType="EXPIRED",K.resultPopupContent=n.message):5443===n.code&&(K.showResultPopup=!0,K.reslutPopupType="CANCELLED",K.resultPopupContent=n.message),!1):(K.showResultPopup=!0,K.reslutPopupType="ACTIVATING",!0)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),se=function(){var e=a((function*(){if(6===J.password.length&&w(J.username))try{const{data:e}=yield g.get(`/edu-app/open/student/studentInfo?mobile=${J.username}&code=${J.password}&type=REGISTER`);if(K.studentList=e||[],K.studentList.length>0){const e=K.studentList[0];K.studentItem=e,J.extra.nickname=e.nickname;const t=[];e.provinceName&&(t.push(e.provinceName),K.provinceCode=e.provinceCode),e.cityName&&(t.push(e.cityName),K.cityCode=e.cityCode),e.regionName&&(t.push(e.regionName),K.regionCode=e.regionCode),K.areaName=t.join(" "),K.schoolName=e.schoolName,K.schoolId=e.schoolId,K.schoolAreaId=e.schoolAreaId;const o=K.gradeList||[];null==o||o.forEach((t=>{t.value===e.currentGradeNum&&(K.instrumentCode=t.instrumentCode,K.gradeNumText=t.text,J.extra.currentGradeNum=e.currentGradeNum,"CLASS"===K.schoolInstrumentSetType&&(K.classList=t.classList))})),K.classList.forEach((t=>{t.value===e.currentClass&&(K.currentClassText=t.text,J.extra.currentClass=e.currentClass)})),J.extra.gender=e.gender,K.isRegister="update",ee(!0,!1)}else K.isRegister="create",ee(!1,!1),K.studentItem=[]}catch(e){}}));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=a((function*(e){K.schoolLoading=!0;try{const{data:t}=yield g.post("/edu-app/open/schoolArea/list",{data:{name:e,testFlag:!0,provinceCode:K.provinceCode,cityCode:K.cityCode,regionCode:K.regionCode}});K.schoolAreaList=t}catch(t){}K.schoolLoading=!1}));return function(t){return e.apply(this,arguments)}}(),le=e=>{if(!e)return"";let t=e.match(/\d+/);if(t){let o=e.indexOf(t[0]),n=o+t[0].length;return e.substring(0,o)+"*".repeat(t[0].length)+e.substring(n)}return e};return m(a((function*(){try{const e=t.query.code;e&&(K.activationCode=window.atob(e))}catch(e){}k().then((e=>{200===(null==e?void 0:e.code)&&(K.areaList=(e=>{const t={},o={},n={};return e.forEach((e=>{t[e.code]=e.name})),e.forEach((e=>{var t;null===(t=e.areas)||void 0===t||t.forEach((e=>{o[e.code]=e.name}))})),e.forEach((e=>{var t;null===(t=e.areas)||void 0===t||t.forEach((e=>{var t;null===(t=e.areas)||void 0===t||t.forEach((e=>{n[e.code]=e.name}))}))})),{province_list:t,city_list:o,county_list:n}})(e.data))}));try{const{data:e}=yield g.get("/edu-app/open/paramConfig/queryByParamNameList",{requestType:"form",params:{paramNames:"multi_user_limit"}});e&&Array.isArray(e)&&e.forEach((e=>{"multi_user_limit"===e.paramName&&(K.multi_user_limit=e.paramValue?Number(e.paramValue):1)}))}catch(o){}K.gradeList=((e,t)=>{let o=[];const n=[{text:"一年级",value:1,instrumentCode:t},{text:"二年级",value:2,instrumentCode:t},{text:"三年级",value:3,instrumentCode:t},{text:"四年级",value:4,instrumentCode:t},{text:"五年级",value:5,instrumentCode:t}],r=[{text:"六年级",value:6,instrumentCode:t}],s=[{text:"七年级",value:7,instrumentCode:t},{text:"八年级",value:8,instrumentCode:t},{text:"九年级",value:9,instrumentCode:t}];return"FIVE_YEAR_SYSTEM"===e?o.push(...n):"SIX_YEAR_SYSTEM"===e?o.push(...n,...r):"THREE_YEAR_SYSTEM"===e?o.push(...s):"FORE_YEAR_SYSTEM"===e?o.push(...r,...s):o.push(...n,...r,...s),o})(),K.classList=Y}))),()=>{return h("div",{class:z["student-register"]},[h("div",{class:z.studentRegisterContainer},[h("div",{class:[z.studentSection]},[h(L,{labelAlign:"left",class:z.registerForm},{default:()=>[h(B,{clearable:!1,label:"联系方式",placeholder:"请输入手机号码",type:"tel",required:!0,autocomplete:"off",inputAlign:"right",modelValue:J.username,"onUpdate:modelValue":[e=>J.username=e,()=>{J.password="",J.extra.nickname="",J.extra.currentGradeNum="",J.extra.currentClass="",J.extra.gender=1,K.areaName="",K.schoolName="",K.currentClassText="",K.gradeNumText="",K.studentList=[],K.studentItem={},K.isRegister="create",K.isTipRegister=!1,K.isChangeSchool=!1}],maxlength:11},null),h(B,{center:!0,clearable:!1,required:!0,inputAlign:"right",label:"验证码",placeholder:"请输入验证码",autocomplete:"off",type:"number",modelValue:J.password,"onUpdate:modelValue":[e=>J.password=e,e=>{se()}],maxlength:6},{button:()=>K.countDownStatus?h("span",{class:[z.codeText,W.value?"":z.codeTextDisabled],onClick:H},[f("获取验证码")]):h(E,{ref:e=>M.value=e,"auto-start":!1,class:z.countDown,time:K.countDownTime,onFinish:$,format:"ss秒后重试"},null)}),h(B,{clearable:!1,required:!0,inputAlign:"right",label:"学生姓名",placeholder:"请输入学生姓名",autocomplete:"off",maxlength:14,modelValue:J.extra.nickname,"onUpdate:modelValue":e=>J.extra.nickname=e},{extra:()=>K.studentList.length>1&&h("div",{class:[z.selectStudentGroup,K.showSelectStudent&&z.selectStudentGroupChecked],onClick:()=>K.showSelectStudent=!0},[h("span",null,[K.studentItem.userId?"切换":"新增"])])}),h(B,{clearable:!1,required:!0,inputAlign:"right",label:"学生性别",placeholder:"请选择性别",autocomplete:"off"},{input:()=>h(R,{"checked-color":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",modelValue:J.extra.gender,"onUpdate:modelValue":e=>J.extra.gender=e,direction:"horizontal"},{default:()=>[h(G,{size:"large",type:"primary",color:1!==J.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:1!==J.extra.gender?"#626264":"#fff",class:z.radioSection},{default:()=>[h(j,{class:z.radioItem,name:1},null),f("男")]}),h(G,{size:"large",type:"primary",color:0!==J.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:0!==J.extra.gender?"#626264":"#fff",class:z.radioSection},{default:()=>[h(j,{class:z.radioItem,name:0},null),f("女")]})]})}),h(B,{clearable:!1,required:!0,inputAlign:"right",label:"所在地区",placeholder:"请选择地区",isLink:"update"!==K.isRegister,readonly:!0,clickable:!1,modelValue:K.areaName,onClick:()=>{"update"!==K.isRegister&&(K.showPicker=!0)}},null),h(B,{clearable:!1,required:!0,inputAlign:"right",label:"互通学校",placeholder:"请选择学校",isLink:"update"!==K.isRegister,readonly:!0,clickable:!1,modelValue:K.schoolName,onClick:()=>{"update"!==K.isRegister&&(K.areaName?(K.schoolStatus=!0,K.schoolAreaId&&(K.schoolPopupIndex=[K.schoolAreaId])):C("请选择地区"))}},null),h(B,{clearable:!1,required:!0,inputAlign:"right",label:"所在年级",placeholder:"请选择年级",isLink:"update"!==K.isRegister,readonly:!0,clickable:!1,modelValue:K.gradeNumText,onClick:()=>{"update"!==K.isRegister&&(K.gradePopupIndex=[J.extra.currentGradeNum],K.gradeStatus=!0)}},null),h(B,{clearable:!1,required:!0,inputAlign:"right",label:"所在班级",placeholder:"请选择班级",isLink:"update"!==K.isRegister,readonly:!0,clickable:!1,modelValue:K.currentClassText,onClick:()=>{"update"!=K.isRegister&&("CLASS"===K.schoolInstrumentSetType&&K.classList.length<=0?C("请先选择年级"):(K.classPopupIndex=[J.extra.currentClass],K.classStatus=!0))}},null),t.query.code?h(B,{clearable:!1,required:!0,inputAlign:"right",label:"互通码",readonly:!!t.query.code,modelValue:le(K.activationCode)},null):h(B,{clearable:!1,required:!0,inputAlign:"right",label:"互通码",placeholder:"请输入互通码",autocomplete:"off",modelValue:K.activationCode,"onUpdate:modelValue":e=>K.activationCode=e},null)]})]),h(b,{position:"bottom"},{default:()=>[h("div",{class:z.paymentContainer},[h(v,{onClick:()=>{te()||oe()?K.submitLoading=!1:K.showConfirmPopup=!0},round:!0,block:!0,disabled:K.submitLoading,loading:K.submitLoading},{default:()=>[f("提交")]})])]})]),K.imgCodeStatus?h(I,{value:K.imgCodeStatus,"onUpdate:value":e=>K.imgCodeStatus=e,phone:J.username,type:"REGISTER",onClose:()=>{K.imgCodeStatus=!1},onSendCode:Z},null):null,h(_,{show:K.schoolStatus,"onUpdate:show":e=>K.schoolStatus=e,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch",onOpen:()=>{K.schoolPopupShow=!0},onClosed:()=>{K.schoolPopupShow=!1}},{default:()=>[K.schoolPopupShow&&h("div",null,[h(D,{showToolbar:!0,modelValue:K.schoolPopupIndex,"onUpdate:modelValue":e=>K.schoolPopupIndex=e,columns:K.schoolAreaList,loading:K.schoolLoading,columnsFieldNames:{text:"name",value:"id"},onCancel:()=>K.schoolStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];K.schoolId=null,K.schoolAreaId=t.id,K.schoolName=t.name,K.schoolStatus=!1}},{"columns-top":h(N,{placeholder:"请输入学校名称",onSearch:e=>{ae(e)}},null)})])]}),h(_,{show:K.gradeStatus,"onUpdate:show":e=>K.gradeStatus=e,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch",onOpen:()=>{K.gradePopupShow=!0},onClosed:()=>{K.gradePopupShow=!1}},{default:()=>[K.gradePopupShow&&h(D,{showToolbar:!0,modelValue:K.gradePopupIndex,"onUpdate:modelValue":e=>K.gradePopupIndex=e,columns:K.gradeList,onCancel:()=>K.gradeStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];J.extra.currentGradeNum=t.value,K.gradeNumText=t.text,K.gradeStatus=!1,["SCHOOL","GRADE"].includes(K.schoolInstrumentSetType)&&(K.instrumentCode=t.instrumentCode),"CLASS"===K.schoolInstrumentSetType&&(K.classList=t.classList),["CLASS","GRADE"].includes(K.schoolInstrumentSetType)&&(K.currentClassText="",J.extra.currentClass="")}},null)]}),h(_,{show:K.classStatus,"onUpdate:show":e=>K.classStatus=e,position:"bottom",round:!0,class:"popupBottomSearch",onOpen:()=>{K.classPopupShow=!0},onClosed:()=>{K.classPopupShow=!1}},{default:()=>[K.classPopupShow&&h(D,{showToolbar:!0,modelValue:K.classPopupIndex,"onUpdate:modelValue":e=>K.classPopupIndex=e,columns:K.classList,onCancel:()=>K.classStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];J.extra.currentClass=t.value,K.currentClassText=t.text,K.classStatus=!1,["CLASS"].includes(K.schoolInstrumentSetType)&&(K.instrumentCode=t.instrumentCode)}},null)]}),h(A,{show:K.showTips,message:K.showMessage,showButton:K.showButton,buttonText:"刷新",onConfirm:()=>window.location.reload()},null),h(F,{show:Q.showOtherSchool,messageAlign:Q.messageAlign,message:Q.showOtherMessage,showCancelButton:Q.showCancelButton,cancelButtonColor:Q.cancelButtonColor,cancelButtonText:Q.cancelButtonText,confirmButtonColor:Q.confirmButtonColor,confirmButtonText:Q.confirmButtonText,onClose:()=>Q.showOtherSchool=!1,onCancel:(o=a((function*(){if(Q.showOtherSchool=!1,"nickname"===Q.otherType)K.isRegister="create",ee(!1,!1),ne();else if("member"===Q.otherType){if(!(yield re()))return;K.registerExpireTime&&K.activeOverStatus&&X()}else"payment"===Q.otherType&&(K.joinType="tradition")})),function(){return o.apply(this,arguments)}),onConfirm:(e=a((function*(){Q.showOtherSchool=!1,"nickname"===Q.otherType?(K.isRegister="update",ee(!1,!1),ne()):"change"===Q.otherType?(K.isChangeSchool=!0,ne()):"limit"===Q.otherType?ee(!("create"===K.isRegister&&!K.studentItem.userId),!1):Q.otherType})),function(){return e.apply(this,arguments)})},null),h(_,{show:K.showSelectStudent,"onUpdate:show":e=>K.showSelectStudent=e,round:!0,position:"bottom",safeAreaInsetBottom:!0,closeable:!0},{default:()=>[h(P,{studentItem:K.studentItem,list:K.studentList,onClose:()=>K.showSelectStudent=!1,onConfirm:e=>{if(e.userId){K.studentItem=e;const t=e;J.extra.nickname=t.nickname;const o=K.gradeList||[],n=[];t.provinceName&&(n.push(t.provinceName),K.provinceCode=t.provinceCode),t.cityName&&(n.push(t.cityName),K.cityCode=t.cityCode),t.regionName&&(n.push(t.regionName),K.regionCode=t.regionCode),K.areaName=n.join(" "),K.schoolName=t.schoolName,K.schoolId=t.schoolId,K.schoolAreaId=t.schoolAreaId,J.extra.currentGradeNum=null,K.gradeNumText="",K.instrumentCode="",null==o||o.forEach((e=>{e.value===t.currentGradeNum&&(K.instrumentCode=e.instrumentCode,K.gradeNumText=e.text,J.extra.currentGradeNum=t.currentGradeNum,"CLASS"===K.schoolInstrumentSetType&&(K.classList=e.classList))})),J.extra.currentClass=null,K.currentClassText="",K.classList.forEach((e=>{e.value===t.currentClass&&(K.currentClassText=e.text,J.extra.currentClass=t.currentClass)})),J.extra.gender=t.gender,K.isRegister="update",ee(!0,!1),K.showSelectStudent=!1}else{if(K.studentList.length>=K.multi_user_limit)return Q.showOtherMessage=`同一手机号最多创建${K.multi_user_limit}个学生`,Q.showOtherSchool=!0,Q.showCancelButton=!1,Q.showCloseButton=!0,Q.confirmButtonColor="linear-gradient( 305deg, #40C8FF 0%, #3192FF 100%)",Q.confirmButtonText="我知道了",Q.otherType="limit",Q.messageAlign="center",!0;K.studentItem=e,K.isRegister="create",ee(!1,!1),J.extra.nickname="",J.extra.currentGradeNum="",J.extra.currentClass="",J.extra.gender=1,K.currentClassText="",K.gradeNumText="",K.showSelectStudent=!1}}},null)]}),h(_,{show:K.showPicker,"onUpdate:show":e=>K.showPicker=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[h(V,{areaList:K.areaList,onCancel:()=>K.showPicker=!1,onConfirm:({selectedOptions:e})=>{K.provinceCode=e[0].value,K.cityCode=e[1].value,K.regionCode=e[2].value,K.areaName=e.map((e=>e.text)).join(" "),K.showPicker=!1,K.schoolAreaId=null,K.schoolName="",ae()}},null)]}),h(_,{show:K.showConfirmPopup,style:{background:"transparent",overflow:"visible !important"}},{default:()=>[h(q,{type:"INFO",showButton:!1},{default:()=>[h("div",{class:z.studentInfo},[h(U,{border:!1,title:"学生姓名",value:J.username},null),h(U,{border:!1,title:"学生性别",value:1===J.extra.gender?"男":"女"},null),h(U,{border:!1,title:"所在地区",value:K.areaName},null),h(U,{border:!1,title:"互通学校",value:K.schoolName},null),h(U,{border:!1,title:"所在年级",value:K.gradeNumText},null),h(U,{border:!1,title:"所在班级",value:K.currentClassText},null),!t.query.code&&h(U,{border:!1,title:"互通码",value:K.activationCode},null)]),h("div",{class:z.studentBtnGroup},[h(v,{round:!0,block:!0,onClick:()=>K.showConfirmPopup=!1},{default:()=>[f("取消")]}),h(v,{round:!0,block:!0,disabled:K.submitLoading,loading:K.submitLoading,color:"linear-gradient( 305deg, #3192FF 0%, #40C8FF 100%)",onClick:()=>{K.showConfirmPopup=!1,ne()}},{default:()=>[f("提交")]})])]})]}),h(_,{show:K.showResultPopup,style:{background:"transparent",overflow:"visible !important"}},{default:()=>[h(q,{type:K.reslutPopupType,btnText:"ACTIVATING"===K.reslutPopupType?"立即下载激活":"我知道了",onConfirm:()=>{"ACTIVATING"===K.reslutPopupType?s.push("/download"):K.showResultPopup=!1}},{default:()=>["ACTIVATING"===K.reslutPopupType&&h("p",null,[f("请下载"),h("span",{style:{color:"#2B85FF"}},[f("【音乐数字课堂App】")]),f(",使用手机号激活,实现音乐课堂互通互联")]),"CANCELLED"===K.reslutPopupType&&h("p",{style:{textAlign:"center",paddingTop:"5px"}},[K.resultPopupContent]),"EXPIRED"===K.reslutPopupType&&h("p",{style:{textAlign:"center",paddingTop:"5px"}},[K.resultPopupContent])]})]})]);var e,o}}}))}}}))}();