!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var o=1;o0&&e.areas.forEach((function(e){t.areas.push({name:e.name,code:e.code})})),f.push(t)})),n.columns=f||[],o.next=30,l.post("/api-school/open/subjectBasicConfig/page",{data:{page:1,rows:50}});case 30:p=o.sent,_=p.data,g=_.rows||[],h=[],g.forEach((function(e){h.push({text:e.subjectName,value:e.subjectId})})),n.columnSubject=h,o.next=41;break;case 38:o.prev=38,o.t1=o.catch(24),m({message:"信息获取失败,请联系伴学指导",theme:"round-button",confirmButtonColor:"#ff8057"});case 41:case"end":return o.stop()}}),o,null,[[14,21],[24,38]])}))));var M=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")},W=f(),Y=function(){var e=r(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,null===(t=W.value)||void 0===t?void 0:t.validate("phone");case 3:n.checkPhone=!1,L(),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=r(regeneratorRuntime.mark((function e(t){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.get("/api-school/open/paramConfig/wechatAppId");case 3:n=e.sent,(o=n.data)&&(p(),_(o,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)}}(),L=function(){var e=r(regeneratorRuntime.mark((function e(){var t,o,r,u,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.forms.phone){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,l.post("/api-school/open/teacher/detail/"+n.forms.phone,{hideLoading:!0,requestType:"form",data:{phone:n.forms.phone}});case 5:if(t=e.sent,o=t.data){e.next=9;break}return e.abrupt("return");case 9:r=o.subjectId?o.subjectId.split(",").map((function(e){return Number(e)})):[],n.popupSelectSubjects=r||[],u=[],r.forEach((function(e){var t=n.columnSubject.find((function(t){return t.value===e}));t&&u.push(t)})),n.selectSubjects=u||[],a="",n.columns.forEach((function(e){e.areas&&e.areas.length>0&&e.areas.forEach((function(e){e.code===Number(o.cityCode)&&(a=e.name)}))})),n.forms={realName:o.realName,phone:o.phone,gender:o.gender,idCardNo:o.idCardNo,cityCode:o.cityCode,cityCodeName:a,provinceCode:o.provinceCode,showSubjectIds:o.subjectId,subjectIds:r,smsValidCode:"",educationBackground:o.educationBackground||"",graduateSchool:o.graduateSchool,idcardFrontImg:o.idcardFrontImg||"",idcardBackImg:o.idcardBackImg||""},e.next=21;break;case 19:e.prev=19,e.t0=e.catch(0);case 21:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}();return function(){var e;return g("div",{class:N.register},[g("div",{class:N.title},[g("p",{class:N.tips},[g("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),g("span",null,[n.name])])]),g(A,{validateFirst:!0,scrollToError:!0,onSubmit:O,ref:W,class:N.form},{default:function(){return[g(R,{inset:!0,class:N["cell-group"]},{default:function(){return[g(T,{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,onBlur:Y,type:"tel"},null),g("div",{class:N.phoneTips},[g(h,{name:"warning",size:"16"},null),b("提示:手机号将成为您管乐团伴学端登录账号")]),g(T,{label:"真实姓名",modelValue:n.forms.realName,"onUpdate:modelValue":function(e){return n.forms.realName=e},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"5"},null),g(T,{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",maxlength:18,placeholder:"请输入身份证号码"},null),g(T,{label:"性别",name:"gender",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return g(P,{"checked-color":"#FF8057",modelValue:n.forms.gender,"onUpdate:modelValue":function(e){return n.forms.gender=e},direction:"horizontal"},{default:function(){return[g(E,{size:"large",type:"primary",color:1!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:1!==n.forms.gender?"#AAA":"#FFF",class:N.radioSection,round:!0},{default:function(){return[g(V,{class:N.radioItem,name:1},null),b("男")]}}),g(E,{size:"large",type:"primary",color:0!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:0!==n.forms.gender?"#AAA":"#FFF",class:N.radioSection,round:!0},{default:function(){return[g(V,{class:N.radioItem,name:0},null),b("女")]}})]}})}}),g("div",{class:[N.fieldGroup,"van-hairline--bottom"]},[g(T,{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 g(j,{style:{width:"100%"},tips:"上传身份证正面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return n.forms.idcardFrontImg=e}},null)}}),g(T,{label:"上传身份证反面",labelClass:N.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 g(j,{style:{width:"100%"},tips:"上传身份证反面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardBackImg,"onUpdate:modelValue":function(e){return n.forms.idcardBackImg=e}},null)}})]),g(T,{label:"学历",modelValue:n.forms.educationBackground,"onUpdate:modelValue":function(e){return n.forms.educationBackground=e},readonly:!0,name:"educationBackground",onClick:function(){n.showEducation=!0},rules:[{required:!0,message:"请选择学历",trigger:"onChange"}],placeholder:"请选择学历"},{"right-icon":function(){return g(h,{name:"arrow",color:"#323233",size:"16"},null)}}),g(T,{label:"毕业学校",modelValue:n.forms.graduateSchool,"onUpdate:modelValue":function(e){return n.forms.graduateSchool=e},rules:[{required:!0,message:"请输入毕业学校"}],name:"graduateSchool",placeholder:"请输入毕业学校"},null),g(T,{label:"所在城市",modelValue:n.forms.cityCodeName,"onUpdate:modelValue":function(e){return n.forms.cityCodeName=e},readonly:!0,name:"cityCodeName",onClick:function(){n.showPicker=!0},rules:[{required:!0,message:"请选择所在城市",trigger:"onChange"}],placeholder:"请选择所在城市"},{"right-icon":function(){return g(h,{name:"arrow",color:"#323233",size:"16"},null)}}),g(T,{label:"声部(可多选)",modelValue:n.forms.showSubjectIds,"onUpdate:modelValue":function(e){return n.forms.showSubjectIds=e},readonly:!0,name:"showSubjectIds",onClick:function(){n.showSubject=!0},rules:[{required:!0,message:"请选择声部",trigger:"onChange"}],placeholder:"请选择声部"},{"right-icon":function(){return g(h,{name:"arrow",color:"#323233",size:"16"},null)},input:function(){return g(v,null,[n.forms.subjectIds.length<=0?g("div",{class:N.subjectPlaceholder,style:"color:#c8c9cc"},[b("请选择声部")]):"",n.forms.subjectIds.length>0?g("div",null,[n.selectSubjects.map((function(e,t){return g(E,{closeable:!0,size:"medium",color:"#FF8057",onClose:function(){return function(e,t){console.log(e),m({title:"提示",message:"您是否删除选中的声部",confirmButtonColor:"#ff8057",showCancelButton:!0}).then((function(){n.selectSubjects.splice(t,1);var o=n.popupSelectSubjects.findIndex((function(t){return t===e.value}));n.popupSelectSubjects.splice(o,1),n.forms.subjectIds=n.popupSelectSubjects,n.forms.showSubjectIds=n.popupSelectSubjects.join(",")}))}(e,t)}},{default:function(){return[e.text]}})}))]):""])}}),g(T,{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?g(w,{type:"primary",round:!0,size:"small",color:"#ff8057",onClick:Q},{default:function(){return[b("发送验证码")]}}):g(w,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:Q},{default:function(){return[n.countDownTime+"s"]}})}})]}}),g("div",{class:N.protocol},[g(z,{modelValue:n.checked,"onUpdate:modelValue":function(e){return n.checked=e},"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),g("div",null,[g("span",{onClick:function(){n.checked=!n.checked}},[b("请认真阅读并勾选")]),g("span",{class:N.c,onClick:function(){return M("REGISTER")}},[b("《管乐团用户使用协议》")]),b("、"),g("span",{class:N.c,onClick:function(){return M("PRIVACY")}},[b("《隐私协议》")])])]),g(w,{size:"large",block:!0,round:!0,class:N["btn-submit"],color:"#FF8057",loading:n.btnLoading,"native-type":"submit",disabled:n.btnLoading},{default:function(){return[b("完成")]}})]}}),g(y,{show:n.showPicker,"onUpdate:show":function(e){return n.showPicker=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[g(q,{showToolbar:!0,columns:n.columns,onCancel:function(){return n.showPicker=!1},onConfirm:U,columnsFieldNames:{text:"name",value:"code",children:"areas"}},null)]}}),g(y,{show:n.showSubject,"onUpdate:show":function(e){return n.showSubject=e},position:"bottom",round:!0,safeAreaInsetBottom:!0,closeable:!0},{default:function(){return[g("div",{class:N.filterTitle},[b("全部声部")]),g("div",{class:N.searchResult,style:{maxHeight:"45vh",overflowY:"auto"}},[g(F,{class:[N.childContent,N["radio-group"]],modelValue:n.popupSelectSubjects,"onUpdate:modelValue":function(e){console.log(e),n.popupSelectSubjects=e}},(t=e=n.columnSubject.map((function(e){return g(z,{key:e.value,name:e.value,class:N.radio},{default:function(){return[g(E,{class:[N.item,"van-ellipsis"],plain:n.popupSelectSubjects.includes(e.value),type:"primary",size:"large"},{default:function(){return[e.text]}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!k(t)?e:{default:function(){return[e]}})),g(B,{position:"bottom",offsetBottom:0},{default:function(){return[g("div",{class:["btnGroup"]},[g(w,{type:"primary",round:!0,block:!0,onClick:D},{default:function(){return[b("确 认")]}})])]}})])];var t}}),g(y,{show:n.showEducation,"onUpdate:show":function(e){return n.showEducation=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[g(q,{showToolbar:!0,columns:[{text:"专科",value:"专科"},{text:"本科",value:"本科"},{text:"硕士",value:"硕士"},{text:"博士",value:"博士"},{text:"其他",value:"其他"}],onCancel:function(){return n.showEducation=!1},onConfirm:G},null)]}}),g(y,{show:n.submitStatus,"onUpdate:show":function(e){return n.submitStatus=e},round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:function(){return[g("div",{class:N.stautsS},[g("img",{src:"./assets/top-banner1.af55128a.png",class:N["submit-img"]},null),g("div",{class:N["submit-container"]},[g("p",{class:N["submit-title"]},[b("恭喜您已成功登记为")]),g("p",{class:N["submit-o"]},[n.name,b(" "),g("br",null,null),g("span",null,[b("【伴学指导】")])]),g("p",{class:N["submit-tips"]},[b("请下载管乐团伴学指导端APP进行授课")]),g(w,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:function(){n.submitStatus=!1,window.location.href=window.location.origin+"/orchestra-student/#/download?type=teacher"}},{default:function(){return[b("立即下载")]}})])])]}}),n.imgCodeStatus?g(S,{value:n.imgCodeStatus,"onUpdate:value":function(e){return n.imgCodeStatus=e},phone:n.forms.phone,type:"REGISTER",onClose:function(){n.imgCodeStatus=!1},onSendCode:K},null):null,g(y,{show:n.showPopup,"onUpdate:show":function(e){return n.showPopup=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:N.wxPopupDialog},{default:function(){return[g("div",{class:N.popupContainer},[g("p",{class:N.title1},[b("温馨提示")]),g("p",{class:N.popupTips},[b("请使用微信打开")])])]}})])}}}))}}}))}();