companion-teacher-register-legacy.61684a2d.js 27 KB

1
  1. !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;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t,n,o,r,u,a){try{var i=e[u](a),s=i.value}catch(c){return void n(c)}i.done?t(s):Promise.resolve(s).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,u){var a=e.apply(t,n);function i(e){o(a,r,u,i,s,"next",e)}function s(e){o(a,r,u,i,s,"throw",e)}i(void 0)}))}}var u=document.createElement("style");u.innerHTML='html,body,p,div,span{padding:0;margin:0;border:0}._van-field--error_1us6u_10 ._van-field__control_1us6u_10::-moz-placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._van-field--error_1us6u_10 ._van-field__control_1us6u_10,._van-field--error_1us6u_10 ._van-field__control_1us6u_10::placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._register_1us6u_15{background:url(./assets/banner1.02f5f63a.png) no-repeat top center #f8f8f8;background-size:contain;max-width:20rem;margin:0 auto;min-height:100vh;overflow:hidden}._register_1us6u_15 .van-cell{flex-direction:column;font-size:.42667rem;padding:.37333rem .34667rem}._register_1us6u_15 .van-field__label{width:100%;margin-right:0;color:#333;font-size:.42667rem;font-weight:500}._register_1us6u_15 .van-cell--required:before{left:.4rem}._register_1us6u_15 .van-field__body{margin-top:.26667rem}._register_1us6u_15 .van-form{margin-top:5.86667rem;overflow:hidden}._register_1us6u_15 .van-tag+.van-tag{margin-left:.21333rem}._banner_1us6u_50,._banner_1us6u_50 img{width:100%;font-size:0}._radioSection_1us6u_55+._radioSection_1us6u_55{margin-left:.32rem}._btn-submit_1us6u_58{width:90%;margin:.53333rem auto}._system_1us6u_62 h2{font-size:.48rem;font-weight:500;margin:.26667rem .64rem;color:#444}._system_1us6u_62 ._van-cell--required_1us6u_35:before{left:.66667rem}._cell-group_1us6u_71{margin:0 .34667rem .37333rem;border-radius:.26667rem;padding-bottom:.26667rem}._top-tips_1us6u_76{margin:.8rem .34667rem .53333rem;padding:.24rem .18667rem;background:#ffffff;border-radius:.26667rem;border:.13333rem solid #be93ff;font-size:.37333rem;font-weight:500;color:#724da9;line-height:.53333rem}._title_1us6u_87{position:absolute;top:0;left:0;padding:3.06667rem .64rem 0;width:57%;font-size:.74667rem;font-weight:600;color:#fff;line-height:.90667rem;letter-spacing:.02667rem}._tips_1us6u_101{font-size:.42667rem;font-weight:500;color:#fff;line-height:.58667rem;text-shadow:0 .02667rem .13333rem #ff5e20;display:flex;align-items:flex-start}._tips_1us6u_101 img{margin-right:.21333rem;width:.48rem;height:.48rem}._radioSection_1us6u_55{position:relative;min-width:.85333rem;justify-content:center}._radioItem_1us6u_120{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._van-picker__confirm_1us6u_128{color:#f67146!important}._stautsS_1us6u_132{position:relative}._submit-container_1us6u_135{padding:.53333rem .69333rem .69333rem;text-align:center}._icon-close_1us6u_139{position:absolute;width:.69333rem;height:.69333rem;top:.32rem;right:.32rem}._submit-img_1us6u_146{width:100%}._submit-title_1us6u_149{font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem}._submit-o_1us6u_155{padding-top:.26667rem;font-size:.4rem;font-weight:500;color:#333;line-height:.56rem}._submit-o_1us6u_155 span{color:#f67146}._submit-tips_1us6u_165{font-size:.37333rem;color:#777;line-height:.53333rem;padding-top:.13333rem;padding-bottom:.53333rem}._submit-container_1us6u_135 ._van-button_1us6u_172{font-size:.48rem;font-weight:500}._cell_title_1us6u_176{margin:0 .34667rem .21333rem;display:inline-block;padding:.05333rem .16rem .08rem;background:#64a9ff;border-radius:.16rem;font-size:.4rem;font-weight:600;color:#fff}._protocol_1us6u_186{display:flex;align-items:flex-start;justify-content:center;padding:0 .34667rem;font-size:.32rem;color:#aaa}._protocol_1us6u_186 .van-checkbox{flex-shrink:0}._protocol_1us6u_186 ._c_1us6u_71{color:#f67146}._phoneTips_1us6u_200{margin:.32rem .32rem .08rem;background:#ffebdd;border-radius:.16rem;font-size:.34667rem;color:#f67146;padding:.24rem .26667rem;display:flex;align-items:center}._phoneTips_1us6u_200 .van-icon{margin-right:.13333rem}._wxPopupDialog_1us6u_213{overflow:initial}._wxPopupDialog_1us6u_213:before{position:absolute;content:" ";top:-1.94667rem;left:50%;margin-left:-2.29333rem;display:inline-block;background:url(./assets/wx-no-top.562db7f2.png) no-repeat top center;background-size:contain;width:4.58667rem;height:4.10667rem}._popupContainer_1us6u_228{background:url(./assets/wx-no-bg.f12a4a6d.png) no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden}._popupContainer_1us6u_228 ._title1_1us6u_234{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_1us6u_228 ._popupTips_1us6u_241{padding-top:.32rem;padding-bottom:1.25333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}._fieldGroup_1us6u_249{display:flex;align-items:flex-start;margin:0 .34667rem;padding:.37333rem 0}._fieldGroup_1us6u_249 .van-field{padding:0}._fieldGroup_1us6u_249 .van-field+.van-field{margin-left:.32rem}._fieldGroup_1us6u_249 .oUpload{margin-top:0;height:3.04rem}._fieldTitle_1us6u_265{color:#fff!important}._filterTitle_1us6u_268{font-size:.48rem;font-weight:500;color:#000;line-height:.66667rem;text-align:center;padding:.48rem 0}._searchResult_1us6u_276{padding:0 .42667rem;overflow:hidden;margin-bottom:.53333rem}._searchResult_1us6u_276 ._searchTitle_1us6u_281{font-size:.42667rem;color:#333;line-height:.58667rem}._childContent_1us6u_286{display:flex;flex-wrap:wrap;text-align:center}._childContent_1us6u_286 ._item_1us6u_291{display:block;margin-right:.13333rem;margin-bottom:.26667rem;min-width:2.13333rem;height:.85333rem}._childContent_1us6u_286 ._item_1us6u_291:nth-child(4n + 0){margin-right:0}._radio_1us6u_55{box-sizing:border-box}._radio_1us6u_55 .van-radio__icon,._radio_1us6u_55 .van-checkbox__icon{display:none}._radio_1us6u_55 .van-checkbox__label{margin-left:0}._radio_1us6u_55 .van-tag--large{font-size:.37333rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_1us6u_55 .van-tag{box-sizing:border-box}._radio_1us6u_55 .van-tag--primary{color:#333;background-color:#fff;border:#d8d8d8}._radio_1us6u_55 .van-tag--primary.van-tag--plain{color:var(--van-primary-color);background-color:#fff5f2;border:var(--van-primary-color)}._radio_1us6u_55 .van-tag--primary:before{position:absolute;top:0;right:0;bottom:0;left:0;border:.02667rem solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}\n',document.head.appendChild(u),System.register(["./index-legacy.48c8d62c.js","./area-legacy.b541a943.js","./validate-legacy.0e436917.js","./index-legacy.7e16ed1b.js","./index-legacy.c75fe8a2.js","./index-legacy.cbf38263.js","./index-legacy.269a0b91.js","./index-legacy.55fe5b03.js","./index-legacy.085e5a7e.js","./index-legacy.93204044.js","./index-legacy.23554efd.js","./index-legacy.384d768f.js","./index-legacy.4e061cf8.js","./index-legacy.a2ac81dd.js","./index-legacy.0e0de364.js","./index-legacy.3a3809b6.js","./index-legacy.71f28922.js","./ImagePreview-legacy.caacc6f4.js","./index-legacy.71047e87.js","./function-call-legacy.ac971547.js","./index-legacy.087e0425.js","./Checker-legacy.3526dce7.js","./index-legacy.ef66d7bb.js","./use-tab-status-legacy.6949b1de.js"],(function(e){"use strict";var n,o,u,a,i,s,c,l,d,m,f,p,_,g,h,b,v,w,y,k,C,S,x,j,I,A,R,T,P,V,E,z,q,F,B;return{setters:[function(e){n=e.d,o=e.aV,u=e.r,a=e.$,i=e.o,s=e.e,c=e.bh,l=e.m,d=e.ah,m=e.bn,f=e.R,p=e.be,_=e.bf,g=e.c,h=e.a5,b=e.q,v=e.F,w=e.B,y=e.P,k=e.ak},function(e){C=e.a},function(e){S=e.I,x=e.c},function(e){j=e.O},function(e){I=e.q},function(e){A=e.F},function(e){R=e.C},function(e){T=e.F},function(e){P=e.R,V=e.a},function(e){E=e.T},function(e){z=e.C},function(e){q=e.P},function(e){F=e.C},function(e){B=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N={"van-field--error":"_van-field--error_1us6u_10","van-field__control":"_van-field__control_1us6u_10",register:"_register_1us6u_15",banner:"_banner_1us6u_50",radioSection:"_radioSection_1us6u_55","btn-submit":"_btn-submit_1us6u_58",system:"_system_1us6u_62","van-cell--required":"_van-cell--required_1us6u_35","cell-group":"_cell-group_1us6u_71","top-tips":"_top-tips_1us6u_76",title:"_title_1us6u_87",tips:"_tips_1us6u_101",radioItem:"_radioItem_1us6u_120","van-picker__confirm":"_van-picker__confirm_1us6u_128",stautsS:"_stautsS_1us6u_132","submit-container":"_submit-container_1us6u_135","icon-close":"_icon-close_1us6u_139","submit-img":"_submit-img_1us6u_146","submit-title":"_submit-title_1us6u_149","submit-o":"_submit-o_1us6u_155","submit-tips":"_submit-tips_1us6u_165","van-button":"_van-button_1us6u_172",cell_title:"_cell_title_1us6u_176",protocol:"_protocol_1us6u_186",c:"_c_1us6u_71",phoneTips:"_phoneTips_1us6u_200",wxPopupDialog:"_wxPopupDialog_1us6u_213",popupContainer:"_popupContainer_1us6u_228",title1:"_title1_1us6u_234",popupTips:"_popupTips_1us6u_241",fieldGroup:"_fieldGroup_1us6u_249",fieldTitle:"_fieldTitle_1us6u_265",filterTitle:"_filterTitle_1us6u_268",searchResult:"_searchResult_1us6u_276",searchTitle:"_searchTitle_1us6u_281",childContent:"_childContent_1us6u_286",item:"_item_1us6u_291",radio:"_radio_1us6u_55"};e("default",n({name:"companion-teacher-register",setup:function(){var e=o(),n=u({showPicker:!1,showSubject:!1,submitStatus:!1,showEducation:!1,checkPhone:!0,id:e.query.id,name:e.query.name,t:e.query.t,qrCodeStatus:!1,qrCodeMessage:"",pattern:/^1(3|4|5|6|7|8|9)\d{9}$/,columns:[],pickerType:null,popupSelectSubjects:[],selectSubjects:[],forms:{realName:"",phone:null,gender:1,idCardNo:null,cityCode:null,cityCodeName:"",provinceCode:null,showSubjectIds:"",subjectIds:[],smsValidCode:"",educationBackground:"",graduateSchool:null,idcardFrontImg:"",idcardBackImg:""},btnLoading:!1,checked:!0,columnSubject:[],countDownStatus:!0,countDownTime:120,countDownRef:null,imgCodeStatus:!1,showPopup:!1,code:""}),O=function(){var e=r(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.qrCodeStatus){e.next=3;break}return m({title:"提示",message:n.qrCodeMessage,theme:"round-button",confirmButtonColor:"#ff8057"}),e.abrupt("return");case 3:if(n.checked){e.next=6;break}return i("请阅读并同意协议"),e.abrupt("return");case 6:return n.btnLoading=!0,e.prev=7,o=n.forms,e.next=11,l.post("/api-school/open/schoolTeacherStudent/registerTeacher",{hideLoading:!1,data:t(t({},o),{},{code:n.code,subjectIds:o.subjectIds.join(","),schoolId:n.id})});case 11:window.location.href="https://mp.weixin.qq.com/s?__biz=MzkxMDMwOTI5Nw==&mid=2247485362&idx=2&sn=e3eaa3b85315535fcf4fd344c0a9b548&chksm=c12c256cf65bac7a898b0bce0d59f02ff924b6a0eabd9ba3fa67a87a0bdb98b916c328fe43f0#rd",e.next=16;break;case 14:e.prev=14,e.t0=e.catch(7);case 16:n.btnLoading=!1;case 17:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}(),U=function(e){var t=e.selectedOptions[1];n.forms.cityCode=t.code,n.forms.cityCodeName=t.name;var o=e.selectedOptions[0];n.forms.provinceCode=o.code,n.showPicker=!1},D=function(){var e=[];n.columnSubject.forEach((function(t){n.popupSelectSubjects.includes(t.value)&&e.push(t)})),n.selectSubjects=e,n.forms.subjectIds=n.popupSelectSubjects||[],n.forms.showSubjectIds=n.popupSelectSubjects.join(","),n.showSubject=!1},G=function(e){var t=e.selectedOptions[0];n.forms.educationBackground=t.value,n.showEducation=!1},Q=function(){if(console.log(n.forms.phone),!x(n.forms.phone))return i("请输入正确的手机号码");n.imgCodeStatus=!0},K=function(){n.countDownStatus=!1;var e=setInterval((function(){n.countDownTime=n.countDownTime-1,n.countDownTime<=0&&(n.countDownTime=120,n.countDownStatus=!0,clearInterval(e))}),1e3)};a(r(regeneratorRuntime.mark((function o(){var r,u,a,f,p,_,g,h;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n.id||i("信息获取失败,请联系伴学指导"),s().weixin){o.next=6;break}return n.showPopup=!0,o.abrupt("return");case 6:if(r=c()){o.next=13;break}return u=window.location.origin+window.location.pathname+"#"+e.path+"?"+I.stringify(t({},e.query)),J(u),o.abrupt("return");case 13:n.code=r;case 14:return o.prev=14,o.next=17,l.post("/api-school/open/schoolTeacherStudent/queryQrCodeStatus",{data:{schoolId:n.id,qrCodeEffectiveStartTime:n.t?d(Number(n.t)).format("YYYY-MM-DD HH:mm:ss"):null}});case 17:999===(a=o.sent).code&&(m({title:"提示",message:a.message,theme:"round-button",confirmButtonColor:"#ff8057"}),n.qrCodeStatus=!0,n.qrCodeMessage=a.message),o.next=24;break;case 21:o.prev=21,o.t0=o.catch(14),console.log(o.t0);case 24:return o.prev=24,f=[],C.forEach((function(e){var t={name:e.name,code:e.code,areas:[]};e.areas&&e.areas.length>0&&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("请使用微信打开")])])]}})])}}}))}}}))}();