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(["./area-legacy.b541a943.js","./index-legacy.c1f63540.js","./validate-legacy.6a95b4fa.js","./index-legacy.390872ac.js","./index-legacy.c75fe8a2.js","./index-legacy.ac3785f5.js","./index-legacy.2318e5fa.js","./index-legacy.45603cb6.js","./index-legacy.3c4cafd9.js","./index-legacy.47196fed.js","./index-legacy.b98d65d5.js","./index-legacy.6aa82d51.js","./index-legacy.355799c3.js","./index-legacy.6603017a.js","./index-legacy.45d07924.js","./index-legacy.cd65292c.js","./index-legacy.ffbb8461.js","./ImagePreview-legacy.ec069a7f.js","./index-legacy.49ab1c78.js","./function-call-legacy.f2346a20.js","./index-legacy.8a8e9c42.js","./Checker-legacy.1d4a5bb9.js","./Picker-legacy.5a9c13b9.js","./index-legacy.aa9b4ef8.js","./use-tab-status-legacy.77a01b2b.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,P,T,E,V,z,q,F,B;return{setters:[function(e){n=e.a},function(e){o=e.d,u=e.ah,a=e.r,i=e.$,s=e.o,c=e.f,l=e.bm,d=e.m,m=e.ai,f=e.br,p=e.R,_=e.bj,g=e.bk,h=e.c,b=e.a5,v=e.q,w=e.F,y=e.B,k=e.P,C=e.al},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){P=e.F},function(e){T=e.R,E=e.a},function(e){V=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(){},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",o({name:"companion-teacher-register",setup:function(){var e=u(),o=a({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 n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.qrCodeStatus){e.next=3;break}return f({title:"提示",message:o.qrCodeMessage,theme:"round-button",confirmButtonColor:"#ff8057"}),e.abrupt("return");case 3:if(o.checked){e.next=6;break}return s("请阅读并同意协议"),e.abrupt("return");case 6:return o.btnLoading=!0,e.prev=7,n=o.forms,e.next=11,d.post("/api-school/open/schoolTeacherStudent/registerTeacher",{hideLoading:!1,data:t(t({},n),{},{code:o.code,subjectIds:n.subjectIds.join(","),schoolId:o.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:o.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];o.forms.cityCode=t.code,o.forms.cityCodeName=t.name;var n=e.selectedOptions[0];o.forms.provinceCode=n.code,o.showPicker=!1},D=function(){var e=[];o.columnSubject.forEach((function(t){o.popupSelectSubjects.includes(t.value)&&e.push(t)})),o.selectSubjects=e,o.forms.subjectIds=o.popupSelectSubjects||[],o.forms.showSubjectIds=o.popupSelectSubjects.join(","),o.showSubject=!1},G=function(e){var t=e.selectedOptions[0];o.forms.educationBackground=t.value,o.showEducation=!1},Q=function(){if(console.log(o.forms.phone),!x(o.forms.phone))return s("请输入正确的手机号码");o.imgCodeStatus=!0},K=function(){o.countDownStatus=!1;var e=setInterval((function(){o.countDownTime=o.countDownTime-1,o.countDownTime<=0&&(o.countDownTime=120,o.countDownStatus=!0,clearInterval(e))}),1e3)};i(r(regeneratorRuntime.mark((function r(){var u,a,i,p,_,g,h,b;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.id||s("信息获取失败,请联系伴学指导"),c().weixin){r.next=6;break}return o.showPopup=!0,r.abrupt("return");case 6:if(u=l()){r.next=13;break}return a=window.location.origin+window.location.pathname+"#"+e.path+"?"+I.stringify(t({},e.query)),J(a),r.abrupt("return");case 13:o.code=u;case 14:return r.prev=14,r.next=17,d.post("/api-school/open/schoolTeacherStudent/queryQrCodeStatus",{data:{schoolId:o.id,qrCodeEffectiveStartTime:o.t?m(Number(o.t)).format("YYYY-MM-DD HH:mm:ss"):null}});case 17:999===(i=r.sent).code&&(f({title:"提示",message:i.message,theme:"round-button",confirmButtonColor:"#ff8057"}),o.qrCodeStatus=!0,o.qrCodeMessage=i.message),r.next=24;break;case 21:r.prev=21,r.t0=r.catch(14),console.log(r.t0);case 24:return r.prev=24,p=[],n.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})})),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("请使用微信打开")])])]}})])}}}))}}}))}();
|