manage-teacher-register-legacy.fe1af8f7.js 37 KB

12345
  1. <<<<<<<< HEAD:dist/assets/manage-teacher-register-legacy.95b2491f.js
  2. !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.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.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"],(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,x,A,S,I,j,R,P,F;return{setters:[function(e){n=e.d,r=e.aV,i=e.r,a=e.$,u=e.o,l=e.e,c=e.bh,s=e.m,d=e.ah,m=e.bn,p=e.be,f=e.bf,_=e.c,h=e.a5,g=e.q,b=e.B,w=e.P},function(e){v=e.a},function(e){y=e.I,k=e.c},function(e){C=e.O},function(e){x=e.q},function(e){A=e.F},function(e){S=e.C},function(e){I=e.F},function(e){j=e.R,R=e.a},function(e){P=e.T},function(e){F=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var T={"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,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 m({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,s.post("/api-school/open/schoolStaff/registerTeacher",{data:t(t({},r),{},{schoolId:n.id})});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)}}(),E=function(){if(!k(n.forms.phone))return u("请输入正确的手机号码");n.imgCodeStatus=!0},V=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 r(){var o,i,a,p,f,_,h,g;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.id||u("信息获取失败,请联系老师"),l().weixin){r.next=6;break}return n.showPopup=!0,r.abrupt("return");case 6:if(o=c()){r.next=13;break}return i=window.location.origin+window.location.pathname+"#"+e.path+"?"+x.stringify(t({},e.query)),z(i),r.abrupt("return");case 13:n.code=o;case 14:return r.prev=14,r.next=17,s.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=r.sent).code&&(m({title:"提示",message:a.message,theme:"round-button",confirmButtonColor:"#FF8057"}),n.qrCodeStatus=!0,n.qrCodeMessage=a.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=[],v.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)})),n.columns=p||[],r.next=30,s.post("/api-school/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:n.id,page:1,rows:50}});case 30:f=r.sent,_=f.data,h=_.rows||[],g=[],h.forEach((function(e){g.push({text:e.name,value:e.subjectId})})),n.columnSubject=g,r.next=41;break;case 38:r.prev=38,r.t1=r.catch(24),m({message:"信息获取失败,请联系老师",theme:"round-button",confirmButtonColor:"#FF8057"});case 41:case"end":return r.stop()}}),r,null,[[14,21],[24,38]])}))));var z=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,s.get("/api-school/open/paramConfig/wechatAppId");case 3:n=e.sent,(r=n.data)&&(p(),f(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")};return function(){return _("div",{class:T.register},[_("div",{class:T.title},[_("p",{class:T.tips},[_("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),_("span",null,[n.name])])]),_(A,{validateFirst:!0,scrollToError:!0,onSubmit:q,ref:"form",class:T.form},{default:function(){return[_(S,{inset:!0,class:T["cell-group"]},{default:function(){return[_(I,{label:"真实姓名",modelValue:n.forms.realName,"onUpdate:modelValue":function(e){return n.forms.realName=e},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"5"},null),_(I,{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),_("div",{class:T.phoneTips},[_(h,{name:"warning",size:"16"},null),g("提示:手机号码将成为您管乐团管理端登录账号")]),_(I,{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),_("div",{class:[T.fieldGroup,"van-hairline--bottom"]},[_(I,{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 _(C,{style:{width:"100%"},tips:"上传身份证正面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return n.forms.idcardFrontImg=e}},null)}}),_(I,{label:"上传身份证反面",labelClass:T.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 _(C,{style:{width:"100%"},tips:"上传身份证反面",bucket:"gyt",path:"/user/",modelValue:n.forms.idcardBackImg,"onUpdate:modelValue":function(e){return n.forms.idcardBackImg=e}},null)}})]),_(I,{label:"性别",name:"gender",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return _(j,{"checked-color":"#FF8057",modelValue:n.forms.gender,"onUpdate:modelValue":function(e){return n.forms.gender=e},direction:"horizontal"},{default:function(){return[_(P,{size:"large",type:"primary",color:1!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:1!==n.forms.gender?"#AAA":"#FFF",class:T.radioSection,round:!0},{default:function(){return[_(R,{class:T.radioItem,name:1},null),g("男")]}}),_(P,{size:"large",type:"primary",color:0!==n.forms.gender?"#EAEAEA":"#FF8057",textColor:0!==n.forms.gender?"#AAA":"#FFF",class:T.radioSection,round:!0},{default:function(){return[_(R,{class:T.radioItem,name:0},null),g("女")]}})]}})}}),_(I,{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?_(b,{type:"primary",round:!0,size:"small",color:"#FF8057",onClick:E},{default:function(){return[g("发送验证码")]}}):_(b,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:E},{default:function(){return[n.countDownTime+"s"]}})}})]}}),_("div",{class:T.protocol},[_(F,{modelValue:n.checked,"onUpdate:modelValue":function(e){return n.checked=e},"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),_("div",null,[_("span",{onClick:function(){n.checked=!n.checked}},[g("请认真阅读并勾选")]),_("span",{class:T.c,onClick:function(){return D("REGISTER")}},[g("《管乐团用户注册协议》")]),g("、"),_("span",{class:T.c,onClick:function(){return D("PRIVACY")}},[g("《隐私协议》")])])]),_(b,{size:"large",block:!0,round:!0,class:T["btn-submit"],color:"#FF8057",loading:n.btnLoading,"native-type":"submit"},{default:function(){return[g("完成")]}})]}}),_(w,{show:n.submitStatus,"onUpdate:show":function(e){return n.submitStatus=e},round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:function(){return[_("div",{class:T.stautsS},[_("img",{src:"./assets/top-banner.8f087f3b.png",class:T["submit-img"]},null),_("div",{class:T["submit-container"]},[_("p",{class:T["submit-title"]},[g("恭喜您已成功登记为")]),_("p",{class:T["submit-o"]},[n.name,g(" "),_("br",null,null),_("span",null,[g("【管理老师】")])]),_("p",{class:T["submit-tips"]},[g("请下载管乐团管理端APP")]),_(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[g("立即下载")]}})])])]}}),n.imgCodeStatus?_(y,{value:n.imgCodeStatus,"onUpdate:value":function(e){return n.imgCodeStatus=e},phone:n.forms.phone,type:"REGISTER",onClose:function(){n.imgCodeStatus=!1},onSendCode:V},null):null,_(w,{show:n.showPopup,"onUpdate:show":function(e){return n.showPopup=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:T.wxPopupDialog},{default:function(){return[_("div",{class:T.popupContainer},[_("p",{class:T.title1},[g("温馨提示")]),_("p",{class:T.popupTips},[g("请使用微信打开")])])]}})])}}}))}}}))}();
  3. ========
  4. !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(["./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.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"],(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,x,A,S,I,j,R,P,F;return{setters:[function(e){n=e.a},function(e){r=e.d,i=e.ah,a=e.r,u=e.$,l=e.o,c=e.f,s=e.bm,d=e.m,m=e.ai,p=e.br,f=e.bj,_=e.bk,h=e.c,g=e.a5,b=e.q,w=e.B,v=e.P},function(e){y=e.I,k=e.c},function(e){C=e.O},function(e){x=e.q},function(e){A=e.F},function(e){S=e.C},function(e){I=e.F},function(e){j=e.R,R=e.a},function(e){P=e.T},function(e){F=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var T={"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",r({name:"companion-teacher-register",setup:function(){var e=i(),r=a({showPicker:!1,showSubject:!1,submitStatus:!1,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,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 n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.qrCodeStatus){e.next=3;break}return p({title:"提示",message:r.qrCodeMessage,theme:"round-button",confirmButtonColor:"#ff8057"}),e.abrupt("return");case 3:if(r.checked){e.next=6;break}return l("请阅读并同意协议"),e.abrupt("return");case 6:return r.btnLoading=!0,e.prev=7,n=r.forms,e.next=11,d.post("/api-school/open/schoolStaff/registerTeacher",{data:t(t({},n),{},{schoolId:r.id})});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:r.btnLoading=!1;case 17:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(){return e.apply(this,arguments)}}(),E=function(){if(!k(r.forms.phone))return l("请输入正确的手机号码");r.imgCodeStatus=!0},V=function(){r.countDownStatus=!1;var e=setInterval((function(){r.countDownTime=r.countDownTime-1,r.countDownTime<=0&&(r.countDownTime=120,r.countDownStatus=!0,clearInterval(e))}),1e3)};u(o(regeneratorRuntime.mark((function o(){var i,a,u,f,_,h,g,b;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.id||l("信息获取失败,请联系老师"),c().weixin){o.next=6;break}return r.showPopup=!0,o.abrupt("return");case 6:if(i=s()){o.next=13;break}return a=window.location.origin+window.location.pathname+"#"+e.path+"?"+x.stringify(t({},e.query)),z(a),o.abrupt("return");case 13:r.code=i;case 14:return o.prev=14,o.next=17,d.post("/api-school/open/schoolTeacherStudent/queryQrCodeStatus",{data:{schoolId:r.id,qrCodeEffectiveStartTime:r.t?m(Number(r.t)).format("YYYY-MM-DD HH:mm:ss"):null}});case 17:999===(u=o.sent).code&&(p({title:"提示",message:u.message,theme:"round-button",confirmButtonColor:"#FF8057"}),r.qrCodeStatus=!0,r.qrCodeMessage=u.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=[],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})})),f.push(t)})),r.columns=f||[],o.next=30,d.post("/api-school/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:r.id,page:1,rows:50}});case 30:_=o.sent,h=_.data,g=h.rows||[],b=[],g.forEach((function(e){b.push({text:e.name,value:e.subjectId})})),r.columnSubject=b,o.next=41;break;case 38:o.prev=38,o.t1=o.catch(24),p({message:"信息获取失败,请联系老师",theme:"round-button",confirmButtonColor:"#FF8057"});case 41:case"end":return o.stop()}}),o,null,[[14,21],[24,38]])}))));var z=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,d.get("/api-school/open/paramConfig/wechatAppId");case 3:n=e.sent,(r=n.data)&&(f(),_(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")};return function(){return h("div",{class:T.register},[h("div",{class:T.title},[h("p",{class:T.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,[r.name])])]),h(A,{validateFirst:!0,scrollToError:!0,onSubmit:q,ref:"form",class:T.form},{default:function(){return[h(S,{inset:!0,class:T["cell-group"]},{default:function(){return[h(I,{label:"真实姓名",modelValue:r.forms.realName,"onUpdate:modelValue":function(e){return r.forms.realName=e},rules:[{required:!0,message:"请填写真实姓名"}],name:"realName",placeholder:"请填写真实姓名",maxlength:"5"},null),h(I,{label:"手机号码",modelValue:r.forms.phone,"onUpdate:modelValue":function(e){return r.forms.phone=e},rules:[{required:!0,message:"请输入手机号码"},{pattern:r.pattern,message:"输入手机号码有误"}],name:"phone",placeholder:"请输入手机号码",maxlength:11,type:"tel"},null),h("div",{class:T.phoneTips},[h(g,{name:"warning",size:"16"},null),b("提示:手机号码将成为您管乐团管理端登录账号")]),h(I,{label:"身份证号码",modelValue:r.forms.idCardNo,"onUpdate:modelValue":function(e){return r.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),h("div",{class:[T.fieldGroup,"van-hairline--bottom"]},[h(I,{label:"身份证照片",modelValue:r.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return r.forms.idcardFrontImg=e},readonly:!0,border:!1,name:"idcardFrontImg",rules:[{required:!0,message:"请上传身份证正面",trigger:"onChange"}],placeholder:"请上传身份证正面"},{input:function(){return h(C,{style:{width:"100%"},tips:"上传身份证正面",bucket:"gyt",path:"/user/",modelValue:r.forms.idcardFrontImg,"onUpdate:modelValue":function(e){return r.forms.idcardFrontImg=e}},null)}}),h(I,{label:"上传身份证",labelClass:T.fieldTitle,modelValue:r.forms.idcardBackImg,"onUpdate:modelValue":function(e){return r.forms.idcardBackImg=e},readonly:!0,border:!1,name:"idcardBackImg",rules:[{required:!0,message:"请上传身份证反面",trigger:"onChange"}],placeholder:"请上传身份证反面"},{input:function(){return h(C,{style:{width:"100%"},tips:"上传身份证反面",bucket:"gyt",path:"/user/",modelValue:r.forms.idcardBackImg,"onUpdate:modelValue":function(e){return r.forms.idcardBackImg=e}},null)}})]),h(I,{label:"性别",name:"gender",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return h(j,{"checked-color":"#FF8057",modelValue:r.forms.gender,"onUpdate:modelValue":function(e){return r.forms.gender=e},direction:"horizontal"},{default:function(){return[h(P,{size:"large",type:"primary",color:1!==r.forms.gender?"#EAEAEA":"#FF8057",textColor:1!==r.forms.gender?"#AAA":"#FFF",class:T.radioSection,round:!0},{default:function(){return[h(R,{class:T.radioItem,name:1},null),b("男")]}}),h(P,{size:"large",type:"primary",color:0!==r.forms.gender?"#EAEAEA":"#FF8057",textColor:0!==r.forms.gender?"#AAA":"#FFF",class:T.radioSection,round:!0},{default:function(){return[h(R,{class:T.radioItem,name:0},null),b("女")]}})]}})}}),h(I,{label:"验证码",modelValue:r.forms.smsValidCode,"onUpdate:modelValue":function(e){return r.forms.smsValidCode=e},name:"smsValidCode",rules:[{required:!0,message:"请输入验证码",trigger:"onChange"}],placeholder:"请输入验证码",maxlength:6,type:"tel"},{button:function(){return r.countDownStatus?h(w,{type:"primary",round:!0,size:"small",color:"#FF8057",onClick:E},{default:function(){return[b("发送验证码")]}}):h(w,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:E},{default:function(){return[r.countDownTime+"s"]}})}})]}}),h("div",{class:T.protocol},[h(F,{modelValue:r.checked,"onUpdate:modelValue":function(e){return r.checked=e},"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),h("div",null,[h("span",{onClick:function(){r.checked=!r.checked}},[b("请认真阅读并勾选")]),h("span",{class:T.c,onClick:function(){return D("REGISTER")}},[b("《管乐团用户注册协议》")]),b("、"),h("span",{class:T.c,onClick:function(){return D("PRIVACY")}},[b("《隐私协议》")])])]),h(w,{size:"large",block:!0,round:!0,class:T["btn-submit"],color:"#FF8057",loading:r.btnLoading,"native-type":"submit"},{default:function(){return[b("完成")]}})]}}),h(v,{show:r.submitStatus,"onUpdate:show":function(e){return r.submitStatus=e},round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:function(){return[h("div",{class:T.stautsS},[h("img",{src:"./assets/top-banner.8f087f3b.png",class:T["submit-img"]},null),h("div",{class:T["submit-container"]},[h("p",{class:T["submit-title"]},[b("恭喜您已成功登记为")]),h("p",{class:T["submit-o"]},[r.name,b(" "),h("br",null,null),h("span",null,[b("【管理老师】")])]),h("p",{class:T["submit-tips"]},[b("请下载管乐团管理端APP")]),h(w,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:function(){r.submitStatus=!1,window.location.href=window.location.origin+"/orchestra-student/#/download?type=manage"}},{default:function(){return[b("立即下载")]}})])])]}}),r.imgCodeStatus?h(y,{value:r.imgCodeStatus,"onUpdate:value":function(e){return r.imgCodeStatus=e},phone:r.forms.phone,type:"REGISTER",onClose:function(){r.imgCodeStatus=!1},onSendCode:V},null):null,h(v,{show:r.showPopup,"onUpdate:show":function(e){return r.showPopup=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:T.wxPopupDialog},{default:function(){return[h("div",{class:T.popupContainer},[h("p",{class:T.title1},[b("温馨提示")]),h("p",{class:T.popupTips},[b("请使用微信打开")])])]}})])}}}))}}}))}();
  5. >>>>>>>> online:dist/assets/manage-teacher-register-legacy.fe1af8f7.js