1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,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 r(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void n(c)}u.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}var i=document.createElement("style");i.innerHTML='html,body,p,div,span{padding:0;margin:0;border:0}._van-field--error_1u71h_10 ._van-field__control_1u71h_10::-moz-placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._van-field--error_1u71h_10 ._van-field__control_1u71h_10,._van-field--error_1u71h_10 ._van-field__control_1u71h_10::placeholder{color:#c8c9cc;-webkit-text-fill-color:currentColor}._register_1u71h_15{background:url(./assets/banner.6ec867e0.png) no-repeat top center #f8f8f8;background-size:contain;max-width:20rem;margin:0 auto;min-height:100vh;overflow:hidden}._register_1u71h_15 .van-cell{flex-direction:column;font-size:.42667rem;padding:.37333rem .34667rem}._register_1u71h_15 .van-field__label{width:100%;margin-right:0;color:#333;font-size:.42667rem;font-weight:500}._register_1u71h_15 .van-cell--required:before{left:.4rem}._register_1u71h_15 .van-field__body{margin-top:.26667rem}._register_1u71h_15 .van-form{margin-top:5.86667rem;overflow:hidden}._register_1u71h_15 .van-tag+.van-tag{margin-left:.21333rem}._banner_1u71h_50,._banner_1u71h_50 img{width:100%;font-size:0}._btn-submit_1u71h_55{width:90%;margin:.53333rem auto}._system_1u71h_59 h2{font-size:.48rem;font-weight:500;margin:.26667rem .64rem;color:#444}._system_1u71h_59 ._van-cell--required_1u71h_35:before{left:.66667rem}._cell-group_1u71h_68{margin:0 .34667rem .37333rem;border-radius:.26667rem;padding-bottom:.26667rem}._top-tips_1u71h_73{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_1u71h_84{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_1u71h_98{font-size:.42667rem;font-weight:500;color:#fff;line-height:.58667rem;text-shadow:0 .02667rem .13333rem #ff5e20;display:flex;align-items:flex-start}._tips_1u71h_98 img{margin-right:.21333rem;width:.48rem;height:.48rem}._radioSection_1u71h_112{position:relative;min-width:.85333rem;justify-content:center}._radioItem_1u71h_117{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_1u71h_112+._radioSection_1u71h_112{margin-left:.32rem}._van-picker__confirm_1u71h_128{color:#f67146!important}._stautsS_1u71h_132{position:relative}._submit-container_1u71h_135{padding:.53333rem .69333rem .69333rem;text-align:center}._icon-close_1u71h_139{position:absolute;width:.69333rem;height:.69333rem;top:.32rem;right:.32rem}._submit-img_1u71h_146{width:100%}._submit-title_1u71h_149{font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem}._submit-o_1u71h_155{padding-top:.26667rem;font-size:.4rem;font-weight:500;color:#333;line-height:.56rem}._submit-o_1u71h_155 span{color:#f67146}._submit-tips_1u71h_165{font-size:.37333rem;color:#777;line-height:.53333rem;padding-top:.13333rem;padding-bottom:.53333rem}._submit-container_1u71h_135 ._van-button_1u71h_172{font-size:.48rem;font-weight:500}._cell_title_1u71h_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_1u71h_186{display:flex;align-items:flex-start;justify-content:center;padding:0 .34667rem;font-size:.32rem;color:#aaa}._protocol_1u71h_186 .van-checkbox{flex-shrink:0}._protocol_1u71h_186 ._c_1u71h_68{color:#f67146}._phoneTips_1u71h_200{margin:.32rem .32rem .08rem;background:#ffebdd;border-radius:.16rem;font-size:.34667rem;line-height:.42667rem;color:#f67146;padding:.24rem .26667rem;display:flex;align-items:center}._phoneTips_1u71h_200 .van-icon{margin-right:.13333rem}._wxPopupDialog_1u71h_214{overflow:initial}._wxPopupDialog_1u71h_214: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_1u71h_229{background:url(./assets/wx-no-bg.f12a4a6d.png) no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden}._popupContainer_1u71h_229 ._title1_1u71h_235{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_1u71h_229 ._popupTips_1u71h_242{padding-top:.32rem;padding-bottom:1.25333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}._fieldGroup_1u71h_250{display:flex;align-items:flex-start;margin:0 .34667rem;padding:.37333rem 0}._fieldGroup_1u71h_250 .van-field{padding:0}._fieldGroup_1u71h_250 .van-field+.van-field{margin-left:.32rem}._fieldGroup_1u71h_250 .oUpload{margin-top:0;height:3.04rem}._fieldTitle_1u71h_266{color:#fff!important}\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.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"],(function(e){"use strict";var n,r,i,a,u,l,c,s,d,m,p,f,_,h,g,b,w,v,y,k,C,A,x,S,I,R,j,P,F,T;return{setters:[function(e){n=e.d,r=e.ah,i=e.r,a=e.$,u=e.o,l=e.f,c=e.m,s=e.ai,d=e.bs,m=e.bd,p=e.be,f=e.c,_=e.a5,h=e.q,g=e.F,b=e.B,w=e.P,v=e.bf,y=e.bg},function(e){k=e.a},function(e){C=e.I,A=e.c},function(e){x=e.O},function(e){S=e.F},function(e){I=e.C},function(e){R=e.F},function(e){j=e.R,P=e.a},function(e){F=e.T},function(e){T=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var E={"van-field--error":"_van-field--error_1u71h_10","van-field__control":"_van-field__control_1u71h_10",register:"_register_1u71h_15",banner:"_banner_1u71h_50","btn-submit":"_btn-submit_1u71h_55",system:"_system_1u71h_59","van-cell--required":"_van-cell--required_1u71h_35","cell-group":"_cell-group_1u71h_68","top-tips":"_top-tips_1u71h_73",title:"_title_1u71h_84",tips:"_tips_1u71h_98",radioSection:"_radioSection_1u71h_112",radioItem:"_radioItem_1u71h_117","van-picker__confirm":"_van-picker__confirm_1u71h_128",stautsS:"_stautsS_1u71h_132","submit-container":"_submit-container_1u71h_135","icon-close":"_icon-close_1u71h_139","submit-img":"_submit-img_1u71h_146","submit-title":"_submit-title_1u71h_149","submit-o":"_submit-o_1u71h_155","submit-tips":"_submit-tips_1u71h_165","van-button":"_van-button_1u71h_172",cell_title:"_cell_title_1u71h_176",protocol:"_protocol_1u71h_186",c:"_c_1u71h_68",phoneTips:"_phoneTips_1u71h_200",wxPopupDialog:"_wxPopupDialog_1u71h_214",popupContainer:"_popupContainer_1u71h_229",title1:"_title1_1u71h_235",popupTips:"_popupTips_1u71h_242",fieldGroup:"_fieldGroup_1u71h_250",fieldTitle:"_fieldTitle_1u71h_266"};e("default",n({name:"companion-teacher-register",setup:function(){var e=r(),n=i({showPicker:!1,showSubject:!1,submitStatus:!1,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,forms:{realName:"",phone:null,gender:1,idCardNo:null,smsValidCode:"",idcardFrontImg:"",idcardBackImg:""},btnLoading:!1,checkPhone:!1,checked:!0,columnSubject:[],countDownStatus:!0,countDownTime:120,imgCodeStatus:!1,showPopup:!1,code:""}),q=function(){var e=o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.qrCodeStatus){e.next=3;break}return d({title:"提示",message:n.qrCodeMessage,theme:"round-button",confirmButtonColor:"#ff8057"}),e.abrupt("return");case 3:if(n.checked){e.next=6;break}return u("请阅读并同意协议"),e.abrupt("return");case 6:return n.btnLoading=!0,e.prev=7,r=n.forms,e.next=11,c.post("/api-school/open/schoolStaff/registerTeacher",{data:t(t({},r),{},{schoolId:n.id,checkIdCard:"1"!==n.ic})});case 11:window.location.href="https://mp.weixin.qq.com/s?__biz=MzkxMDMwOTI5Nw==&mid=2247485362&idx=1&sn=b9081f35ec8a09897a6a14c2ff617b35&chksm=c12c256cf65bac7ae7ad2627454d296870483070b861729a40c2b9deda54b097e75be206b49f#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)}}(),V=function(){if(!A(n.forms.phone))return u("请输入正确的手机号码");n.imgCodeStatus=!0},z=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(o(regeneratorRuntime.mark((function e(){var t,r,o,i,a,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.id||u("信息获取失败,请联系老师"),l().weixin){e.next=4;break}return n.showPopup=!0,e.abrupt("return");case 4:return e.prev=4,e.next=7,c.post("/api-school/open/schoolTeacherStudent/queryQrCodeStatus",{data:{schoolId:n.id,qrCodeEffectiveStartTime:n.t?s(Number(n.t)).format("YYYY-MM-DD HH:mm:ss"):null}});case 7:999===(t=e.sent).code&&(d({title:"提示",message:t.message,theme:"round-button",confirmButtonColor:"#FF8057"}),n.qrCodeStatus=!0,n.qrCodeMessage=t.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,r=[],k.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})})),r.push(t)})),n.columns=r||[],e.next=20,c.post("/api-school/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:n.id,page:1,rows:50}});case 20:o=e.sent,i=o.data,a=i.rows||[],m=[],a.forEach((function(e){m.push({text:e.name,value:e.subjectId})})),n.columnSubject=m,e.next=31;break;case 28:e.prev=28,e.t1=e.catch(14),d({message:"信息获取失败,请联系老师",theme:"round-button",confirmButtonColor:"#FF8057"});case 31:case"end":return e.stop()}}),e,null,[[4,11],[14,28]])}))));var O=function(){var e=o(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.get("/api-school/open/paramConfig/wechatAppId");case 3:n=e.sent,(r=n.data)&&(v(),y(r,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)}}(),D=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"):"LABOR"===e&&window.open(window.location.origin+window.location.pathname+"#/preview-protocol?type=LABOR_TEACHER","_blank")};if(l().weixin){var U=m();if(!U)return void O(window.location.origin+window.location.pathname+"#"+e.path+"?"+p.stringify(t({},e.query)));n.code=U}else n.showPopup=!0;return function(){return f("div",{class:E.register},[f("div",{class:E.title},[f("p",{class:E.tips},[f("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),f("span",null,[n.name])])]),f(S,{validateFirst:!0,scrollToError:!0,onSubmit:q,ref:"form",class:E.form},{default:function(){return[f(I,{inset:!0,class:E["cell-group"]},{default:function(){return[f(R,{label:"真实姓名",modelValue:n.forms.realName,"onUpdate:modelValue":function(e){return n.forms.realName=e},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"5"},null),f(R,{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,type:"tel"},null),f("div",{class:E.phoneTips},[f(_,{name:"warning",size:"16"},null),h("提示:手机号码将成为您管乐团管理端登录账号")]),"1"!=n.ic?f(g,null,[f(R,{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",placeholder:"请输入身份证号码"},null),f("div",{class:[E.fieldGroup,"van-hairline--bottom"]},[f(R,{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 f(x,{style:{width:"100%"},tips:"上传身份证正面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return n.forms.idcardFrontImg=e}},null)}}),f(R,{label:"上传身份证",labelClass:E.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 f(x,{style:{width:"100%"},tips:"上传身份证反面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardBackImg,"onUpdate:modelValue":function(e){return n.forms.idcardBackImg=e}},null)}})])]):"",f(R,{label:"性别",name:"gender",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return f(j,{"checked-color":"#FF8057",modelValue:n.forms.gender,"onUpdate:modelValue":function(e){return n.forms.gender=e},direction:"horizontal"},{default:function(){return[f(F,{size:"large",type:"primary",color:1!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:1!==n.forms.gender?"#AAA":"#FFF",class:E.radioSection,round:!0},{default:function(){return[f(P,{class:E.radioItem,name:1},null),h("男")]}}),f(F,{size:"large",type:"primary",color:0!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:0!==n.forms.gender?"#AAA":"#FFF",class:E.radioSection,round:!0},{default:function(){return[f(P,{class:E.radioItem,name:0},null),h("女")]}})]}})}}),f(R,{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?f(b,{type:"primary",round:!0,size:"small",color:"#FF8057",onClick:V},{default:function(){return[h("发送验证码")]}}):f(b,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:V},{default:function(){return[n.countDownTime+"s"]}})}})]}}),f("div",{class:E.protocol},[f(T,{modelValue:n.checked,"onUpdate:modelValue":function(e){return n.checked=e},"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),f("div",null,[f("span",{onClick:function(){n.checked=!n.checked}},[h("请认真阅读并勾选")]),f("span",{class:E.c,onClick:function(){return D("REGISTER")}},[h("《管乐团用户注册协议》")]),h("、"),f("span",{class:E.c,onClick:function(){return D("PRIVACY")}},[h("《隐私协议》")])])]),f(b,{size:"large",block:!0,round:!0,class:E["btn-submit"],color:"#FF8057",loading:n.btnLoading,"native-type":"submit"},{default:function(){return[h("完成")]}})]}}),f(w,{show:n.submitStatus,"onUpdate:show":function(e){return n.submitStatus=e},round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:function(){return[f("div",{class:E.stautsS},[f("img",{src:"./assets/top-banner.8f087f3b.png",class:E["submit-img"]},null),f("div",{class:E["submit-container"]},[f("p",{class:E["submit-title"]},[h("恭喜您已成功登记为")]),f("p",{class:E["submit-o"]},[n.name,h(" "),f("br",null,null),f("span",null,[h("【管理老师】")])]),f("p",{class:E["submit-tips"]},[h("请下载管乐团管理端APP")]),f(b,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:function(){n.submitStatus=!1,window.location.href=window.location.origin+"/orchestra-student/#/download?type=manage"}},{default:function(){return[h("立即下载")]}})])])]}}),n.imgCodeStatus?f(C,{value:n.imgCodeStatus,"onUpdate:value":function(e){return n.imgCodeStatus=e},phone:n.forms.phone,type:"REGISTER",onClose:function(){n.imgCodeStatus=!1},onSendCode:z},null):null,f(w,{show:n.showPopup,"onUpdate:show":function(e){return n.showPopup=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:E.wxPopupDialog},{default:function(){return[f("div",{class:E.popupContainer},[f("p",{class:E.title1},[h("温馨提示")]),f("p",{class:E.popupTips},[h("请使用微信打开")])])]}})])}}}))}}}))}();
|