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