!function(){function e(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 t(t){for(var n=1;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r",e.selectType),"Radio"===e.selectType?e.radio=e.choiceSubjectIds[0]:e.checkBox=n(e.choiceSubjectIds);case 2:case"end":return t.stop()}}),t)})))()},watch:{choiceSubjectIds:function(e,t){console.log(this.choiceSubjectIds,this.checkBox,"choiceSubjectIds"),this.checkBox=n(e)}},methods:{onSelect:function(e){"Checkbox"===this.selectType?(this.max!==this.checkBox.length||this.checkBox.includes(e)||o("乐器最多选择".concat(this.max,"个")),this.checkboxRefs[e].toggle(),console.log(this.checkBox,"onSelect====>")):"Radio"===this.selectType&&(this.radio=e)}},render:function(){var e=this;return i("div",{class:W},[i("h2",{class:I},[u("选择声部")]),i("div",{class:R},[this.subjectList.length?"Checkbox"===this.selectType?i(C,{modelValue:this.checkBox,"onUpdate:modelValue":function(t){return e.checkBox=t},max:this.max},{default:function(){return[i("div",{class:N},[u("最多可选择"),e.max,u("个乐器")]),!e.single&&e.subjectList.map((function(t){return t.subjects&&t.subjects.length>0?i(a,null,[i("div",{class:O},[t.name]),i("div",{class:T},[t.subjects&&t.subjects.map((function(t){return i("div",{class:U,onClick:function(){return e.onSelect(t.id)}},[i(x,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return i(s,{type:"spinner",size:20},null)}}),i("div",{class:V},[i(y,{name:t.id,class:E,disabled:!0,ref:function(r){return e.checkboxRefs[t.id]=r}},{icon:function(e){return i(l,{name:e.checked?M:P,size:"20"},null)}}),i("p",{class:F},[t.name])])])}))])]):null})),e.single?i("div",{class:T},[e.subjectList.map((function(t){return i("div",{class:U,onClick:function(){return e.onSelect(t.id)}},[i(x,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return i(s,{type:"spinner",size:20},null)}}),i("div",{class:V},[i(y,{name:t.id,class:E,disabled:!0,ref:function(r){return e.checkboxRefs[t.id]=r}},{icon:function(e){return i(l,{name:e.checked?M:P,size:"20"},null)}}),i("p",{class:F},[t.name])])])}))]):null]}}):i(v,{modelValue:this.radio,"onUpdate:modelValue":function(t){return e.radio=t}},{default:function(){return[!e.single&&e.subjectList.map((function(t){return t.subjects&&t.subjects.length>0?i(a,null,[i("div",{class:O},[t.name]),i("div",{class:T},[t.subjects&&t.subjects.map((function(t){return i("div",{class:U,onClick:function(){return e.onSelect(t.id)}},[i(x,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return i(s,{type:"spinner",size:20},null)}}),i("div",{class:V},[i(S,{name:t.id,class:E},{icon:function(e){return i(l,{name:e.checked?M:P,size:"20"},null)}}),i("p",{class:F},[t.name])])])}))])]):null})),e.single?i("div",{class:T},[e.subjectList.map((function(t){return i("div",{class:U,onClick:function(){return e.onSelect(t.id)}},[i(x,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:function(){return i(s,{type:"spinner",size:20},null)}}),i("div",{class:V},[i(S,{name:t.id,class:E},{icon:function(e){return i(l,{name:e.checked?M:P,size:"20"},null)}}),i("p",{class:F},[t.name])])])}))]):null]}}):i(d,{tips:"暂无声部数据",btnStatus:!1},null)]),this.subjectList.length>0&&i(z,{offsetBottom:0,position:"bottom"},{default:function(){return[i("div",{class:"btnGroup"},[i("img",{src:"./assets/chioseOk.6394a2c5.png",class:L,alt:"",onClick:function(){return e.onChoice("Checkbox"===e.selectType?e.checkBox:e.radio)}},null)])]}})])}});e("default",r({name:"tenantStudentRejest",setup:function(){var e=m(),r=g({idCardNo:"",username:"",realName:"",phone:"",subjectId:"",tenantId:e.query.tenantId,birthdate:"",code:""}),s=g({schoolName:e.query.name||"",cityName:"",showArea:!1,checked:!0,success:!1,areaList:{},sendMsg:"获取验证码",imgCodeStatus:!1,subjectList:[],searchStatus:!1,openStatus:!1,dateState:!1,showSuccess:!1,choiceSubjectIds:[],choiceSubjectNames:[]}),l=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(r,"forms"),r.username){e.next=4;break}return o("请输入老师昵称"),e.abrupt("return");case 4:if(r.phone){e.next=7;break}return o("请输入手机号"),e.abrupt("return");case 7:if(r.code){e.next=10;break}return o("请输入验证码"),e.abrupt("return");case 10:if(r.realName){e.next=13;break}return o("请输入真实姓名"),e.abrupt("return");case 13:if(!r.idCardNo||/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(r.idCardNo)){e.next=16;break}return o("请输入正确的身份证号"),e.abrupt("return");case 16:if(!(s.choiceSubjectIds.length<1)){e.next=19;break}return o("请选择声部"),e.abrupt("return");case 19:return e.prev=19,e.next=22,b.post("/api-tenant/open/teacher/submit",{data:t(t({},r),{},{subjectId:s.choiceSubjectIds.join(",")})});case 22:e.sent,s.showSuccess=!0,e.next=29;break;case 26:e.prev=26,e.t0=e.catch(19),console.log(e.t0);case 29:case"end":return e.stop()}}),e,null,[[19,26]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=c(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b.get("/api-tenant/open/subject/queryPage",{data:{page:1,rows:9999}});case 3:t=e.sent,s.subjectList=t.data.rows||[],e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();h((function(){console.log(e.query),d()}));var y=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.phone){e.next=3;break}return o("请输入手机号码"),e.abrupt("return");case 3:if(/^1[3456789]\d{9}$/.test(r.phone)){e.next=6;break}return o("手机号码格式不正确"),e.abrupt("return");case 6:s.imgCodeStatus=!0;case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){s.sendMsg="60s";var e=60,t=setInterval((function(){e--,s.sendMsg="".concat(e,"s"),e<=0&&(s.sendMsg="获取验证码",clearInterval(t))}),1e3)},v=function(){window.open(location.origin+"/student/#/download?type=teacher"),s.showSuccess=!1},S=function(e){s.searchStatus=!1,s.choiceSubjectIds=n(e);var t=[];s.subjectList.forEach((function(e){-1!=s.choiceSubjectIds.indexOf(e.id)&&t.push(e.name)})),s.choiceSubjectNames=[].concat(t)};return function(){return i(a,null,[i("div",{class:B.videoClass},[i("div",{class:B.resjetStudentWrap},[i("img",{src:"./assets/rejectLogo.6f541221.png",class:B.rejectLogo,alt:""},null),i("img",{src:"./assets/studentText.caab659c.png",class:B.studentText,alt:""},null),i("img",{src:"./assets/teacherBg.f2cd330c.png",class:B.bgWrap,alt:""},null),i("div",{class:B.schoolNameWrap},[i("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAqNJREFUWEftl8trE1EUxr8zmSQ01NqCq0I6aRGlRVAMSklUooi0lUwXQl24c6EgUgRXRXDjol0VRPoX6KoLtYlaREsjNAk+urRQLOZdpFIXrdrYzMyRSQ0ksSaTmBEXucs755z7m+885g7hP1lUzhHs9O2DqB4mAWI9jBqUbPabfXHkc+hrLf4lIAGn5xgEegmgrZYgv9kyUhZh+/j5+NtPRuOUgAQl7wMGLgGsMSgGQDUaSLcTADsDUt6HMCbHwxNG/UsV6fI+B+EcGBNyMjxmNEixXbDLO8MEmUGTw4mFm0Zj7ApCoOv+xMKU0SDFdgHpxBTA15ogBVVMUeSRq98lsuUxgPbKaeI4cj+G/KuL300BCUieMwDNVasVBnKCqnX709GMKSA6wFOX54gGobIiQi7j//j6g25fAAEjRYSVP7zEqibgznAsvFx4blrXVFMRwIqcCB8AwDtjp2gFfs2RRrQvgAyBxsHadvEZDHKDcFXfExWrcygTSpsKQsx3/cnIjXJlnu0ftCu5jay+byVr92A8FK8KMg+fuCkpVwCto6LUjKScjNwvrhECTfp3mazzPp+4GcvlagJ54vTKmoAZA/nWM31ITobfF4q1oSAvetx7s2rLOFeZI0RItcbFW6cRUkwBMaREmVETpFw10xQJdrodwB5HpTRtta9tjCwt5eeFKSAB6eRRQI0CZKvcvrzuUJWDZzNv1k0B0b8zKlMEQEuVwl2zqVrvQDr6xRQQ/fDpvj6bXe2wVwJpW7Zu6a1rWmqa7dvIr29DR3wzNc3UFK6Ks65+lwLLADOPAtQLwjSYXtVTI2C+CMIpAs0x8LA8BoEFBu7p+wzcJuCdnAjP5u+shZTUdfBfOhHACqk9OyCS5wKBLnP+h/7fLgLFWhPi6E9A9WJr6DrvywAAAABJRU5ErkJggg==",class:B.rejectSchool,alt:""},null),i("p",null,[s.schoolName])]),i("img",{class:B.centerLogo,src:"./assets/center.8361e7b4.png",alt:""},null),i("div",{class:B.infoWrap},[i("div",{class:B.infoWrapCore},[i("img",{src:"./assets/subTitle.53eedf80.png",class:B.subTitle,alt:""},null),i(k,{onSubmit:function(){return l()}},{default:function(){return[i(j,{class:B.group,border:!1},{default:function(){return[i(A,{class:B.noArrow,inputAlign:"right",label:"老师昵称",placeholder:"请输入老师昵称",maxlength:12,modelValue:r.username,"onUpdate:modelValue":function(e){return r.username=e}},null),i(A,{inputAlign:"right",label:"手机号",class:B.noArrow,maxlength:11,placeholder:"请输入手机号码",modelValue:r.phone,"onUpdate:modelValue":function(e){return r.phone=e}},null),i("div",{class:B.tips},[u("手机号码为酷乐秀学院登录账号")]),i(A,{class:B.inputCode,inputAlign:"left",label:"请输入验证码",labelWidth:0,modelValue:r.code,"onUpdate:modelValue":function(e){return r.code=e},maxlength:6},{button:function(){return i(_,{disabled:s.sendMsg.includes("s"),class:B.sendBtn,onClick:function(){return y()}},{default:function(){return[s.sendMsg]}})}}),i(A,{class:B.noArrow,inputAlign:"right",label:"真实姓名",placeholder:"请输入真实姓名",maxlength:20,modelValue:r.realName,"onUpdate:modelValue":function(e){return r.realName=e}},null),i(A,{class:B.noArrow,inputAlign:"right",label:"身份证号",placeholder:"请输入身份证号",maxlength:20,modelValue:r.idCardNo,"onUpdate:modelValue":function(e){return r.idCardNo=e}},null),i(A,{border:!1,inputAlign:"right",label:"声部",placeholder:"请选择声部",readonly:!0,modelValue:s.choiceSubjectNames,"onUpdate:modelValue":function(e){return s.choiceSubjectNames=e},onClick:function(){return s.searchStatus=!0}},{button:function(){return i("img",{style:{display:"block",width:"12px",height:"12px"},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAARRJREFUSEvF1UFqAjEUBuA/GheuPEQdqtdQSu0FBMUrKMho76BYoe0dRvEM7bbuXI8u3NQDiNJVcV4ZFwo2GZM3Kc1+/i8k8/IL/PESuvzPWTf/dRB32YNceK3hhrsPLRAG/juACoCdFPKh2Bh8cJAkYAugcAwl7GVG1jiIFlgFfjsCXk67ZiJaIA4OA/8RwCANkgi4QK4CaREjIEZW014/imhoe1zGABexAnRINifuvfporpoTa0CFCGB923y6cQb8+n2BdckVoJoNylCt3BgrnxKrI+IMnjHACY/vxAjghhsBacKvAmnDE4Fw0uuA6Nn2abichf8rnOXEfyNCFaCdFDn3lXku/e+F13p1X/qcgld98wOin6sZB+h4pAAAAABJRU5ErkJggg=="},null)}})]}})]}})]),i("img",{src:"./assets/rejectBtn.42205429.png",onClick:function(){l()},class:B.rejectBtn,alt:""},null)])]),i(f,{show:s.searchStatus,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return s.searchStatus=e}},{default:function(){return[i(J,{subjectList:s.subjectList,choiceSubjectIds:s.choiceSubjectIds,onChoice:S,single:!0,selectType:"Checkbox"},null)]}})]),i(p,{show:s.showSuccess,"z-index":1e3},{default:function(){return[i("div",{class:B.showWrap},[i("img",{class:B.showWrapTop,src:"./assets/teacherSuccess.253b4cb4.png",alt:""},null),i("h2",null,[u("恭喜您已成功登记为")]),i("h4",null,[s.schoolName,u(" "),i("span",null,[u("【音乐老师】")])," "]),i("p",null,[u("请下载酷乐秀机构版APP进行学习")]),i("div",{class:B.downApp,onClick:v},[u("立即下载")])])]}}),s.imgCodeStatus?i(w,{value:s.imgCodeStatus,"onUpdate:value":function(e){return s.imgCodeStatus=e},phone:r.phone,registerType:"REGISTER",onClose:function(){s.imgCodeStatus=!1},onSendCode:x},null):null])}}}))}}}))}();