!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r0&&e.areas.forEach((function(e){t.areas.push({name:e.name,code:e.code})})),r.push(t)})),n.columns=r||[],e.next=20,c.post("/api-school/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:n.id,page:1,rows:50}});case 20:o=e.sent,i=o.data,a=i.rows||[],m=[],a.forEach((function(e){m.push({text:e.name,value:e.subjectId})})),n.columnSubject=m,e.next=31;break;case 28:e.prev=28,e.t1=e.catch(14),d({message:"信息获取失败,请联系老师",theme:"round-button",confirmButtonColor:"#FF8057"});case 31:case"end":return e.stop()}}),e,null,[[4,11],[14,28]])}))));var O=function(){var e=o(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.get("/api-school/open/paramConfig/wechatAppId");case 3:n=e.sent,(r=n.data)&&(v(),y(r,t)),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),D=function(e){"REGISTER"===e?window.open(window.location.origin+window.location.pathname+"#/preview-protocol?type=REGISTER_TEACHER","_blank"):"PRIVACY"===e?window.open(window.location.origin+window.location.pathname+"#/privacyProtocol","_blank"):"WITHDRAW"===e?window.open(window.location.origin+window.location.pathname+"#/cashProtocol","_blank"):"LABOR"===e&&window.open(window.location.origin+window.location.pathname+"#/preview-protocol?type=LABOR_TEACHER","_blank")};if(l().weixin){var U=m();if(!U)return void O(window.location.origin+window.location.pathname+"#"+e.path+"?"+p.stringify(t({},e.query)));n.code=U}else n.showPopup=!0;return function(){return f("div",{class:E.register},[f("div",{class:E.title},[f("p",{class:E.tips},[f("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAApVJREFUWEftl82rjVEUxn9PknC7mCEuKUJKSRkoIyUpwztBGbi+RtQt/gRRBkou7ogSZSIxMVEY+EgKRVKui5gQIhKP1m2/2k7nnPd8Stw1Ou8++13796691rPXFn+ZqRM8tmcDPyS9btdf20C2twKHAQN7JZ1qB6plINtzgePA+gqAy8AOSS9aAWsJyPZ24BDQW2PR98CgpOFmoZoCsj0fOAmsrVjoChC+qo0PSBppFKwhINsxbzdwAOjJnP8WCdsDKXLTsjkfgf3AMUmRZ3WtFMh2H3AaWFPh6RKwszJXbM8BTlTJravAJkmv6hE1AnQbWJk5edtINWXVNyN795akVS0D2Y7t+ZDyI/xcSFFpSG9szwKGgI0ZRI+kT7Wg6kbI9nTgXfZyn6TRsjzI/7c9D3iWjfVKiryqauNAoV2lEbI9OalunrwR0gnAog5v2eM49zKfIQV3krp/Gdsy25tTaZelRydyqNYaIQlnCqAQvaNlNEA3gXZJGqoG9BDYl+CmAuc6vGX9wOfk8yCwNP2uCXRN0pgqd7vsbV8HVv+7QLYXA9uA5ekr7wHDkqKSxqyeMHY0Qrb3AJEDEyuK4VvqhY78MSDbkZhnszOuskBDW/olne96hICXwBNgQaKIs63oqQeBaD/CngILQypqnWUd2TIgmq/7RYpE2Up6lLZnCRCyUZyRUdJR4lUP104BLQOikQ8blRQR+GW2owGLtiNsHRAJ3lWgqKiLacERSdFn50DPgbiRhG1IERsHGo9QEYFI4P8sh2zfAGZmQhe3jAcpJNEx5teWu8AUIM6wsK9AjOW2ApiUBkKfQodirLCbwPf0EBJSXMdDSN/IdultsmLBrj7+lUBbuvrJTTovvUo36a/t6T8B6vz6SJbFLFUAAAAASUVORK5CYII="},null),f("span",null,[n.name])])]),f(S,{validateFirst:!0,scrollToError:!0,onSubmit:q,ref:"form",class:E.form},{default:function(){return[f(I,{inset:!0,class:E["cell-group"]},{default:function(){return[f(R,{label:"真实姓名",modelValue:n.forms.realName,"onUpdate:modelValue":function(e){return n.forms.realName=e},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"5"},null),f(R,{label:"手机号码",modelValue:n.forms.phone,"onUpdate:modelValue":function(e){return n.forms.phone=e},rules:[{required:!0,message:"请输入手机号码"},{pattern:n.pattern,message:"输入手机号码有误"}],name:"phone",placeholder:"请输入手机号码",maxlength:11,type:"tel"},null),f("div",{class:E.phoneTips},[f(_,{name:"warning",size:"16"},null),h("提示:手机号码将成为您管乐团管理端登录账号")]),"1"!=n.ic?f(g,null,[f(R,{label:"身份证号码",modelValue:n.forms.idCardNo,"onUpdate:modelValue":function(e){return n.forms.idCardNo=e},rules:[{required:!0,message:"请输入身份证号"},{pattern:/^[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]$/,message:"请输入正确的身份证号"}],name:"idCardNo",placeholder:"请输入身份证号码"},null),f("div",{class:[E.fieldGroup,"van-hairline--bottom"]},[f(R,{label:"身份证照片",modelValue:n.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return n.forms.idcardFrontImg=e},readonly:!0,border:!1,name:"idcardFrontImg",rules:[{required:!0,message:"请上传身份证正面",trigger:"onChange"}],placeholder:"请上传身份证正面"},{input:function(){return f(x,{style:{width:"100%"},tips:"上传身份证正面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return n.forms.idcardFrontImg=e}},null)}}),f(R,{label:"上传身份证",labelClass:E.fieldTitle,modelValue:n.forms.idcardBackImg,"onUpdate:modelValue":function(e){return n.forms.idcardBackImg=e},readonly:!0,border:!1,name:"idcardBackImg",rules:[{required:!0,message:"请上传身份证反面",trigger:"onChange"}],placeholder:"请上传身份证反面"},{input:function(){return f(x,{style:{width:"100%"},tips:"上传身份证反面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardBackImg,"onUpdate:modelValue":function(e){return n.forms.idcardBackImg=e}},null)}})])]):"",f(R,{label:"性别",name:"gender",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return f(j,{"checked-color":"#FF8057",modelValue:n.forms.gender,"onUpdate:modelValue":function(e){return n.forms.gender=e},direction:"horizontal"},{default:function(){return[f(F,{size:"large",type:"primary",color:1!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:1!==n.forms.gender?"#AAA":"#FFF",class:E.radioSection,round:!0},{default:function(){return[f(P,{class:E.radioItem,name:1},null),h("男")]}}),f(F,{size:"large",type:"primary",color:0!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:0!==n.forms.gender?"#AAA":"#FFF",class:E.radioSection,round:!0},{default:function(){return[f(P,{class:E.radioItem,name:0},null),h("女")]}})]}})}}),f(R,{label:"验证码",modelValue:n.forms.smsValidCode,"onUpdate:modelValue":function(e){return n.forms.smsValidCode=e},name:"smsValidCode",rules:[{required:!0,message:"请输入验证码",trigger:"onChange"}],placeholder:"请输入验证码",maxlength:6,type:"tel"},{button:function(){return n.countDownStatus?f(b,{type:"primary",round:!0,size:"small",color:"#FF8057",onClick:V},{default:function(){return[h("发送验证码")]}}):f(b,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:V},{default:function(){return[n.countDownTime+"s"]}})}})]}}),f("div",{class:E.protocol},[f(T,{modelValue:n.checked,"onUpdate:modelValue":function(e){return n.checked=e},"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),f("div",null,[f("span",{onClick:function(){n.checked=!n.checked}},[h("请认真阅读并勾选")]),f("span",{class:E.c,onClick:function(){return D("REGISTER")}},[h("《管乐团用户注册协议》")]),h("、"),f("span",{class:E.c,onClick:function(){return D("PRIVACY")}},[h("《隐私协议》")])])]),f(b,{size:"large",block:!0,round:!0,class:E["btn-submit"],color:"#FF8057",loading:n.btnLoading,"native-type":"submit"},{default:function(){return[h("完成")]}})]}}),f(w,{show:n.submitStatus,"onUpdate:show":function(e){return n.submitStatus=e},round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:function(){return[f("div",{class:E.stautsS},[f("img",{src:"./assets/top-banner.8f087f3b.png",class:E["submit-img"]},null),f("div",{class:E["submit-container"]},[f("p",{class:E["submit-title"]},[h("恭喜您已成功登记为")]),f("p",{class:E["submit-o"]},[n.name,h(" "),f("br",null,null),f("span",null,[h("【管理老师】")])]),f("p",{class:E["submit-tips"]},[h("请下载管乐团管理端APP")]),f(b,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:function(){n.submitStatus=!1,window.location.href=window.location.origin+"/orchestra-student/#/download?type=manage"}},{default:function(){return[h("立即下载")]}})])])]}}),n.imgCodeStatus?f(C,{value:n.imgCodeStatus,"onUpdate:value":function(e){return n.imgCodeStatus=e},phone:n.forms.phone,type:"REGISTER",onClose:function(){n.imgCodeStatus=!1},onSendCode:z},null):null,f(w,{show:n.showPopup,"onUpdate:show":function(e){return n.showPopup=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:E.wxPopupDialog},{default:function(){return[f("div",{class:E.popupContainer},[f("p",{class:E.title1},[h("温馨提示")]),f("p",{class:E.popupTips},[h("请使用微信打开")])])]}})])}}}))}}}))}();