1 |
- !function(){function e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){t(r,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(e,r,t,n,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void t(l)}s.done?r(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var r=this,t=arguments;return new Promise((function(o,i){var a=e.apply(r,t);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)}))}}var i=document.createElement("style");i.innerHTML='html,body,p,div,span{padding:0;margin:0;border:0}._van-field--error_w6srw_10 ._van-field__control_w6srw_10::-moz-placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._van-field--error_w6srw_10 ._van-field__control_w6srw_10,._van-field--error_w6srw_10 ._van-field__control_w6srw_10::placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._register_w6srw_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_w6srw_15 .van-cell{flex-direction:column;font-size:.42667rem;padding:.37333rem .34667rem}._register_w6srw_15 .van-field__label{width:100%;margin-right:0;color:#333;font-size:.42667rem;font-weight:500}._register_w6srw_15 .van-cell--required:before{left:.4rem}._register_w6srw_15 .van-field__body{margin-top:.26667rem}._register_w6srw_15 .van-form{margin-top:5.86667rem;overflow:hidden}._register_w6srw_15 .van-tag{margin-left:.21333rem}._banner_w6srw_50,._banner_w6srw_50 img{width:100%;font-size:0}._radioSection_w6srw_55+._radioSection_w6srw_55{margin-left:.32rem}._btn-submit_w6srw_58{width:90%;margin:.53333rem auto}._system_w6srw_62 h2{font-size:.48rem;font-weight:500;margin:.26667rem .64rem;color:#444}._system_w6srw_62 ._van-cell--required_w6srw_35:before{left:.66667rem}._cell-group_w6srw_71{margin:0 .34667rem .37333rem;border-radius:.26667rem;padding-bottom:.26667rem}._top-tips_w6srw_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_w6srw_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_w6srw_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_w6srw_101 img{margin-right:.21333rem;width:.48rem;height:.48rem}._radioSection_w6srw_55{position:relative;min-width:.85333rem;justify-content:center}._radioItem_w6srw_120{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._van-picker__confirm_w6srw_128{color:#f67146!important}._stautsS_w6srw_132{position:relative}._submit-container_w6srw_135{padding:.53333rem .69333rem .69333rem;text-align:center}._icon-close_w6srw_139{position:absolute;width:.69333rem;height:.69333rem;top:.32rem;right:.32rem}._submit-img_w6srw_146{width:100%}._submit-title_w6srw_149{font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem}._submit-o_w6srw_155{padding-top:.26667rem;font-size:.4rem;font-weight:500;color:#333;line-height:.56rem}._submit-o_w6srw_155 span{color:#f67146}._submit-tips_w6srw_165{font-size:.37333rem;color:#777;line-height:.53333rem;padding-top:.13333rem;padding-bottom:.53333rem}._submit-container_w6srw_135 ._van-button_w6srw_172{font-size:.48rem;font-weight:500}._cell_title_w6srw_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_w6srw_186{display:flex;align-items:flex-start;justify-content:center;padding:0 .34667rem;font-size:.32rem;color:#aaa}._protocol_w6srw_186 .van-checkbox{flex-shrink:0}._protocol_w6srw_186 ._c_w6srw_71{color:#f67146}._phoneTips_w6srw_200{margin:.32rem .32rem .08rem;background:#ffebdd;border-radius:.16rem;font-size:.34667rem;color:#f67146;padding:.24rem .26667rem;display:flex;align-items:center}._phoneTips_w6srw_200 .van-icon{margin-right:.13333rem}._wxPopupDialog_w6srw_213{overflow:initial}._wxPopupDialog_w6srw_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_w6srw_228{background:url(./assets/wx-no-bg.f12a4a6d.png) no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden}._popupContainer_w6srw_228 ._title1_w6srw_234{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_w6srw_228 ._popupTips_w6srw_241{padding-top:.32rem;padding-bottom:1.25333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}._fieldGroup_w6srw_249{display:flex;align-items:flex-start;margin:0 .34667rem;padding:.37333rem 0}._fieldGroup_w6srw_249 .van-field{padding:0}._fieldGroup_w6srw_249 .van-field+.van-field{margin-left:.32rem}._fieldGroup_w6srw_249 .oUpload{margin-top:0;height:3.04rem}._fieldTitle_w6srw_265{color:#fff!important}._filterTitle_w6srw_268{font-size:.48rem;font-weight:500;color:#000;line-height:.66667rem;text-align:center;padding:.48rem 0}._searchResult_w6srw_276{padding:0 .42667rem;overflow:hidden;margin-bottom:.53333rem}._searchResult_w6srw_276 ._searchTitle_w6srw_281{font-size:.42667rem;color:#333;line-height:.58667rem}._childContent_w6srw_286{display:flex;flex-wrap:wrap;text-align:center}._childContent_w6srw_286 ._item_w6srw_291{display:block;margin-left:0;margin-right:.16rem;margin-bottom:.26667rem;min-width:2.13333rem;height:.85333rem}._childContent_w6srw_286 ._radio_w6srw_55:nth-child(4n + 4) ._item_w6srw_291{margin-right:0}._radio_w6srw_55{box-sizing:border-box}._radio_w6srw_55 .van-radio__icon,._radio_w6srw_55 .van-checkbox__icon{display:none}._radio_w6srw_55 .van-checkbox__label{margin-left:0}._radio_w6srw_55 .van-tag--large{font-size:.37333rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_w6srw_55 .van-tag{box-sizing:border-box}._radio_w6srw_55 .van-tag--primary{color:#333;background-color:#fff;border:#d8d8d8}._radio_w6srw_55 .van-tag--primary.van-tag--plain{color:var(--van-primary-color);background-color:#fff5f2;border:var(--van-primary-color)}._radio_w6srw_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(i),System.register(["./index-legacy.90c82f08.js","./area-legacy.b541a943.js","./validate-legacy.6cdb2ccf.js","./index-legacy.fa922f80.js","./index-legacy.d85a75b6.js","./index-legacy.55839436.js","./index-legacy.3c5580aa.js","./index-legacy.dc8d6058.js","./index-legacy.92c1b9d6.js","./index-legacy.f7f96215.js","./index-legacy.c8871c95.js","./index-legacy.b10d0450.js","./index-legacy.f9492e3a.js","./index-legacy.eb4bc59e.js","./oss-file-upload-legacy.be0f8098.js","./index-legacy.617aab72.js","./ImagePreview-legacy.356ad326.js","./index-legacy.64e3b474.js","./function-call-legacy.aee1e992.js","./index-legacy.f3e5e283.js","./Checker-legacy.1b485b9f.js","./Picker-legacy.aeff9f1a.js","./index-legacy.fe10c814.js","./use-tab-status-legacy.bafe466c.js"],(function(e){"use strict";var t,n,i,a,s,c,l,u,d,m,f,p,w,_,g,h,b,v,y,C,S,k,x,j,I,A,R,P,T,E,V,z,q,B,F;return{setters:[function(e){t=e.d,n=e.ah,i=e.r,a=e.$,s=e.o,c=e.f,l=e.m,u=e.ai,d=e.bs,m=e.R,f=e.bd,p=e.be,w=e.c,_=e.a5,g=e.q,h=e.F,b=e.B,v=e.P,y=e.al,C=e.bf,S=e.bg},function(e){k=e.a},function(e){x=e.I,j=e.c},function(e){I=e.O},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){B=e.C},function(e){F=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O={"van-field--error":"_van-field--error_w6srw_10","van-field__control":"_van-field__control_w6srw_10",register:"_register_w6srw_15",banner:"_banner_w6srw_50",radioSection:"_radioSection_w6srw_55","btn-submit":"_btn-submit_w6srw_58",system:"_system_w6srw_62","van-cell--required":"_van-cell--required_w6srw_35","cell-group":"_cell-group_w6srw_71","top-tips":"_top-tips_w6srw_76",title:"_title_w6srw_87",tips:"_tips_w6srw_101",radioItem:"_radioItem_w6srw_120","van-picker__confirm":"_van-picker__confirm_w6srw_128",stautsS:"_stautsS_w6srw_132","submit-container":"_submit-container_w6srw_135","icon-close":"_icon-close_w6srw_139","submit-img":"_submit-img_w6srw_146","submit-title":"_submit-title_w6srw_149","submit-o":"_submit-o_w6srw_155","submit-tips":"_submit-tips_w6srw_165","van-button":"_van-button_w6srw_172",cell_title:"_cell_title_w6srw_176",protocol:"_protocol_w6srw_186",c:"_c_w6srw_71",phoneTips:"_phoneTips_w6srw_200",wxPopupDialog:"_wxPopupDialog_w6srw_213",popupContainer:"_popupContainer_w6srw_228",title1:"_title1_w6srw_234",popupTips:"_popupTips_w6srw_241",fieldGroup:"_fieldGroup_w6srw_249",fieldTitle:"_fieldTitle_w6srw_265",filterTitle:"_filterTitle_w6srw_268",searchResult:"_searchResult_w6srw_276",searchTitle:"_searchTitle_w6srw_281",childContent:"_childContent_w6srw_286",item:"_item_w6srw_291",radio:"_radio_w6srw_55"};e("default",t({name:"companion-teacher-register",setup:function(){var e=n(),t=i({showPicker:!1,showSubject:!1,submitStatus:!1,showEducation:!1,checkPhone:!0,id:e.query.id,name:e.query.name,t:e.query.t,ic:e.query.ic,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:""}),N=function(){var e=o(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.qrCodeStatus){e.next=3;break}return d({title:"提示",message:t.qrCodeMessage,theme:"round-button",confirmButtonColor:"#ff8057"}),e.abrupt("return");case 3:if(t.checked){e.next=6;break}return s("请阅读并同意协议"),e.abrupt("return");case 6:return t.btnLoading=!0,e.prev=7,n=t.forms,e.next=11,l.post("/api-school/open/schoolTeacherStudent/registerTeacher",{hideLoading:!1,data:r(r({},n),{},{code:t.code,subjectIds:n.subjectIds.join(","),schoolId:t.id,checkIdCard:"1"!==t.ic})});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:t.btnLoading=!1;case 17:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}(),U=function(e){var r=e.selectedOptions[1];t.forms.cityCode=r.code,t.forms.cityCodeName=r.name;var n=e.selectedOptions[0];t.forms.provinceCode=n.code,t.showPicker=!1},D=function(){var e=[];t.columnSubject.forEach((function(r){t.popupSelectSubjects.includes(r.value)&&e.push(r)})),t.selectSubjects=e,t.forms.subjectIds=t.popupSelectSubjects||[],t.forms.showSubjectIds=t.popupSelectSubjects.join(","),t.showSubject=!1},G=function(e){var r=e.selectedOptions[0];t.forms.educationBackground=r.value,t.showEducation=!1},Q=function(){if(console.log(t.forms.phone),!j(t.forms.phone))return s("请输入正确的手机号码");t.imgCodeStatus=!0},K=function(){t.countDownStatus=!1;var e=setInterval((function(){t.countDownTime=t.countDownTime-1,t.countDownTime<=0&&(t.countDownTime=120,t.countDownStatus=!0,clearInterval(e))}),1e3)};a(o(regeneratorRuntime.mark((function e(){var r,n,o,i,a,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.id||s("信息获取失败,请联系伴学老师"),c().weixin){e.next=4;break}return t.showPopup=!0,e.abrupt("return");case 4:return e.prev=4,e.next=7,l.post("/api-school/open/schoolTeacherStudent/queryQrCodeStatus",{data:{schoolId:t.id,qrCodeEffectiveStartTime:t.t?u(Number(t.t)).format("YYYY-MM-DD HH:mm:ss"):null}});case 7:999===(r=e.sent).code&&(d({title:"提示",message:r.message,theme:"round-button",confirmButtonColor:"#ff8057"}),t.qrCodeStatus=!0,t.qrCodeMessage=r.message),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log(e.t0);case 14:return e.prev=14,n=[],k.forEach((function(e){var r={name:e.name,code:e.code,areas:[]};e.areas&&e.areas.length>0&&e.areas.forEach((function(e){r.areas.push({name:e.name,code:e.code})})),n.push(r)})),t.columns=n||[],e.next=20,l.post("/api-school/open/subjectBasicConfig/page",{data:{page:1,rows:50,enableFlag:!0}});case 20:o=e.sent,i=o.data,a=i.rows||[],m=[],a.forEach((function(e){m.push({text:e.subjectName,value:e.subjectId}),"1"===t.ic&&t.popupSelectSubjects.push(e.subjectId)})),t.columnSubject=m,D(),e.next=32;break;case 29:e.prev=29,e.t1=e.catch(14),d({message:"信息获取失败,请联系伴学老师",theme:"round-button",confirmButtonColor:"#ff8057"});case 32:case"end":return e.stop()}}),e,null,[[4,11],[14,29]])}))));var L=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"):"LABOR"===e&&window.open(window.location.origin+window.location.pathname+"#/preview-protocol?type=LABOR_TEACHER","_blank")},M=m(),W=function(){var e=o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,null===(r=M.value)||void 0===r?void 0:r.validate("phone");case 3:t.checkPhone=!1,J(),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)}}(),Y=function(){var e=o(regeneratorRuntime.mark((function e(r){var t,n;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:t=e.sent,(n=t.data)&&(C(),S(n,r)),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(r){return e.apply(this,arguments)}}(),J=function(){var e=o(regeneratorRuntime.mark((function e(){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.forms.phone){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,l.post("/api-school/open/teacher/detail/"+t.forms.phone,{hideLoading:!0,requestType:"form",data:{phone:t.forms.phone}});case 5:if(r=e.sent,n=r.data){e.next=9;break}return e.abrupt("return");case 9:o=n.subjectId?n.subjectId.split(",").map((function(e){return Number(e)})):[],t.popupSelectSubjects=o||[],i=[],o.forEach((function(e){var r=t.columnSubject.find((function(r){return r.value===e}));r&&i.push(r)})),t.selectSubjects=i||[],a="",t.columns.forEach((function(e){e.areas&&e.areas.length>0&&e.areas.forEach((function(e){e.code===Number(n.cityCode)&&(a=e.name)}))})),t.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:o,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)}}();if(c().weixin){var Z=f();if(!Z)return Y(window.location.origin+window.location.pathname+"#"+e.path+"?"+p.stringify(r({},e.query))),"";t.code=Z}else t.showPopup=!0;return function(){var e;return w("div",{class:O.register},[w("div",{class:O.title},[w("p",{class:O.tips},[w("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),w("span",null,[t.name])])]),w(A,{validateFirst:!0,scrollToError:!0,onSubmit:N,ref:M,class:O.form},{default:function(){return[w(R,{inset:!0,class:O["cell-group"]},{default:function(){return[w(P,{label:"手机号码",modelValue:t.forms.phone,"onUpdate:modelValue":function(e){return t.forms.phone=e},rules:[{required:!0,message:"请输入手机号码"},{pattern:t.pattern,message:"输入手机号码有误"}],name:"phone",placeholder:"请输入手机号码",maxlength:11,onBlur:W,type:"tel"},null),w("div",{class:O.phoneTips},[w(_,{name:"warning",size:"16"},null),g("提示:手机号将成为您管乐团伴学端登录账号")]),w(P,{label:"真实姓名",modelValue:t.forms.realName,"onUpdate:modelValue":function(e){return t.forms.realName=e},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"5"},null),"1"!=t.ic?w(h,null,[w(P,{label:"身份证号码",modelValue:t.forms.idCardNo,"onUpdate:modelValue":function(e){return t.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)]):"",w(P,{label:"性别",name:"gender",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return w(T,{"checked-color":"#FF8057",modelValue:t.forms.gender,"onUpdate:modelValue":function(e){return t.forms.gender=e},direction:"horizontal"},{default:function(){return[w(V,{size:"large",type:"primary",color:1!==t.forms.gender?"#EAEAEA":"#FF8057",textColor:1!==t.forms.gender?"#AAA":"#FFF",class:O.radioSection,round:!0},{default:function(){return[w(E,{class:O.radioItem,name:1},null),g("男")]}}),w(V,{size:"large",type:"primary",color:0!==t.forms.gender?"#EAEAEA":"#FF8057",textColor:0!==t.forms.gender?"#AAA":"#FFF",class:O.radioSection,round:!0},{default:function(){return[w(E,{class:O.radioItem,name:0},null),g("女")]}})]}})}}),"1"!=t.ic?w(h,null,[w("div",{class:[O.fieldGroup,"van-hairline--bottom"]},[w(P,{label:"身份证照片",modelValue:t.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return t.forms.idcardFrontImg=e},readonly:!0,border:!1,name:"idcardFrontImg",rules:[{required:!0,message:"请上传身份证正面",trigger:"onChange"}],placeholder:"请上传身份证正面"},{input:function(){return w(I,{style:{width:"100%"},tips:"上传身份证正面",bucket:"gyt",path:"/user/",modelValue:t.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return t.forms.idcardFrontImg=e}},null)}}),w(P,{label:"上传身份证",labelClass:O.fieldTitle,modelValue:t.forms.idcardBackImg,"onUpdate:modelValue":function(e){return t.forms.idcardBackImg=e},readonly:!0,border:!1,name:"idcardBackImg",rules:[{required:!0,message:"请上传身份证反面",trigger:"onChange"}],placeholder:"请上传身份证反面"},{input:function(){return w(I,{style:{width:"100%"},tips:"上传身份证反面",bucket:"gyt",path:"/user/",modelValue:t.forms.idcardBackImg,"onUpdate:modelValue":function(e){return t.forms.idcardBackImg=e}},null)}})]),w(P,{label:"学历",modelValue:t.forms.educationBackground,"onUpdate:modelValue":function(e){return t.forms.educationBackground=e},readonly:!0,name:"educationBackground",onClick:function(){t.showEducation=!0},rules:[{required:!0,message:"请选择学历",trigger:"onChange"}],placeholder:"请选择学历"},{"right-icon":function(){return w(_,{name:"arrow",color:"#323233",size:"16"},null)}}),w(P,{label:"毕业学校",modelValue:t.forms.graduateSchool,"onUpdate:modelValue":function(e){return t.forms.graduateSchool=e},rules:[{required:!0,message:"请输入毕业学校"}],name:"graduateSchool",placeholder:"请输入毕业学校"},null),w(P,{label:"所在城市",modelValue:t.forms.cityCodeName,"onUpdate:modelValue":function(e){return t.forms.cityCodeName=e},readonly:!0,name:"cityCodeName",onClick:function(){t.showPicker=!0},rules:[{required:!0,message:"请选择所在城市",trigger:"onChange"}],placeholder:"请选择所在城市"},{"right-icon":function(){return w(_,{name:"arrow",color:"#323233",size:"16"},null)}})]):"",w(P,{label:"声部(可多选)",modelValue:t.forms.showSubjectIds,"onUpdate:modelValue":function(e){return t.forms.showSubjectIds=e},readonly:!0,name:"showSubjectIds",onClick:function(){t.showSubject=!0},rules:[{required:!0,message:"请选择声部",trigger:"onChange"}],placeholder:"请选择声部"},{"right-icon":function(){return w(_,{name:"arrow",color:"#323233",size:"16"},null)},input:function(){return w(h,null,[t.forms.subjectIds.length<=0?w("div",{class:O.subjectPlaceholder,style:"color:#c8c9cc"},[g("请选择声部")]):"",t.forms.subjectIds.length>0?w("div",null,[t.selectSubjects.map((function(e,r){return w(V,{closeable:!0,size:"medium",color:"#FF8057",onClose:function(){return function(e,r){console.log(e),d({title:"提示",message:"您是否删除选中的声部",confirmButtonColor:"#ff8057",showCancelButton:!0}).then((function(){t.selectSubjects.splice(r,1);var n=t.popupSelectSubjects.findIndex((function(r){return r===e.value}));t.popupSelectSubjects.splice(n,1),t.forms.subjectIds=t.popupSelectSubjects,t.forms.showSubjectIds=t.popupSelectSubjects.join(",")}))}(e,r)}},{default:function(){return[e.text]}})}))]):""])}}),w(P,{label:"验证码",modelValue:t.forms.smsValidCode,"onUpdate:modelValue":function(e){return t.forms.smsValidCode=e},name:"smsValidCode",rules:[{required:!0,message:"请输入验证码",trigger:"onChange"}],placeholder:"请输入验证码",maxlength:6,type:"tel"},{button:function(){return t.countDownStatus?w(b,{type:"primary",round:!0,size:"small",color:"#ff8057",onClick:Q},{default:function(){return[g("发送验证码")]}}):w(b,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:Q},{default:function(){return[t.countDownTime+"s"]}})}})]}}),w("div",{class:O.protocol},[w(z,{modelValue:t.checked,"onUpdate:modelValue":function(e){return t.checked=e},"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),w("div",null,[w("span",{onClick:function(){t.checked=!t.checked}},[g("请认真阅读并勾选")]),w("span",{class:O.c,onClick:function(){return L("REGISTER")}},[g("《管乐团用户使用协议》")]),g("、"),w("span",{class:O.c,onClick:function(){return L("PRIVACY")}},[g("《隐私协议》")])])]),w(b,{size:"large",block:!0,round:!0,class:O["btn-submit"],color:"#FF8057",loading:t.btnLoading,"native-type":"submit",disabled:t.btnLoading},{default:function(){return[g("完成")]}})]}}),w(v,{show:t.showPicker,"onUpdate:show":function(e){return t.showPicker=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[w(q,{showToolbar:!0,columns:t.columns,onCancel:function(){return t.showPicker=!1},onConfirm:U,columnsFieldNames:{text:"name",value:"code",children:"areas"}},null)]}}),w(v,{show:t.showSubject,"onUpdate:show":function(e){return t.showSubject=e},position:"bottom",round:!0,safeAreaInsetBottom:!0,closeable:!0},{default:function(){return[w("div",{class:O.filterTitle},[g("全部声部")]),w("div",{class:O.searchResult,style:{maxHeight:"45vh",overflowY:"auto"}},[w(B,{class:[O.childContent,O["radio-group"]],modelValue:t.popupSelectSubjects,"onUpdate:modelValue":function(e){console.log(e),t.popupSelectSubjects=e}},(r=e=t.columnSubject.map((function(e){return w(z,{key:e.value,name:e.value,class:O.radio},{default:function(){return[w(V,{class:[O.item,"van-ellipsis"],plain:t.popupSelectSubjects.includes(e.value),type:"primary",size:"large"},{default:function(){return[e.text]}})]}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!y(r)?e:{default:function(){return[e]}})),w(F,{position:"bottom",offsetBottom:0},{default:function(){return[w("div",{class:["btnGroup"]},[w(b,{type:"primary",round:!0,block:!0,onClick:D},{default:function(){return[g("确 认")]}})])]}})])];var r}}),w(v,{show:t.showEducation,"onUpdate:show":function(e){return t.showEducation=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[w(q,{showToolbar:!0,columns:[{text:"专科",value:"专科"},{text:"本科",value:"本科"},{text:"硕士",value:"硕士"},{text:"博士",value:"博士"},{text:"其他",value:"其他"}],onCancel:function(){return t.showEducation=!1},onConfirm:G},null)]}}),w(v,{show:t.submitStatus,"onUpdate:show":function(e){return t.submitStatus=e},round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:function(){return[w("div",{class:O.stautsS},[w("img",{src:"./assets/top-banner1.af55128a.png",class:O["submit-img"]},null),w("div",{class:O["submit-container"]},[w("p",{class:O["submit-title"]},[g("恭喜您已成功登记为")]),w("p",{class:O["submit-o"]},[t.name,g(" "),w("br",null,null),w("span",null,[g("【伴学老师】")])]),w("p",{class:O["submit-tips"]},[g("请下载管乐团伴学老师端APP进行授课")]),w(b,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:function(){t.submitStatus=!1,window.location.href=window.location.origin+"/orchestra-student/#/download?type=teacher"}},{default:function(){return[g("立即下载")]}})])])]}}),t.imgCodeStatus?w(x,{value:t.imgCodeStatus,"onUpdate:value":function(e){return t.imgCodeStatus=e},phone:t.forms.phone,type:"REGISTER",onClose:function(){t.imgCodeStatus=!1},onSendCode:K},null):null,w(v,{show:t.showPopup,"onUpdate:show":function(e){return t.showPopup=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:O.wxPopupDialog},{default:function(){return[w("div",{class:O.popupContainer},[w("p",{class:O.title1},[g("温馨提示")]),w("p",{class:O.popupTips},[g("请使用微信打开")])])]}})])}}}))}}}))}();
|