manage-teacher-register.a035a9b8.js 24 KB

12345
  1. <<<<<<<< HEAD:dist/assets/manage-teacher-register.a48a6213.js
  2. import{d as E,aV as k,r as B,$ as v,o as c,e as T,bh as R,m as i,ah as V,bn as m,be as q,bf as D,c as o,a5 as P,q as s,B as d,P as b}from"./index.ffe80dbe.js";import{a as U}from"./area.bc7b6c10.js";import{I as N,c as x}from"./validate.5e9d8d60.js";import{O as A}from"./index.b83b8698.js";import{q as G}from"./index.339fc024.js";import{F as Q}from"./index.95ac53ca.js";import{C as z}from"./index.914765a1.js";import{F as u}from"./index.92ec0bf4.js";import{R as K,a as w}from"./index.99ef7500.js";import{T as C}from"./index.55ba7429.js";import{C as O}from"./index.34fb3ef2.js";import"./index.7e972106.js";import"./index.329d98a9.js";import"./index.9bed9ddc.js";import"./ImagePreview.fb0145e9.js";import"./index.b4b77b5a.js";import"./function-call.4b573eb9.js";import"./index.ea031708.js";import"./Checker.7cede1aa.js";const W="_register_1u71h_15",M="_banner_1u71h_50",J="_system_1u71h_59",Y="_title_1u71h_84",j="_tips_1u71h_98",L="_radioSection_1u71h_112",Z="_radioItem_1u71h_117",X="_stautsS_1u71h_132",H="_cell_title_1u71h_176",$="_protocol_1u71h_186",ee="_c_1u71h_68",oe="_phoneTips_1u71h_200",te="_wxPopupDialog_1u71h_214",ae="_popupContainer_1u71h_229",se="_title1_1u71h_235",re="_popupTips_1u71h_242",ue="_fieldGroup_1u71h_250",ne="_fieldTitle_1u71h_266";var a={"van-field--error":"_van-field--error_1u71h_10","van-field__control":"_van-field__control_1u71h_10",register:W,banner:M,"btn-submit":"_btn-submit_1u71h_55",system:J,"van-cell--required":"_van-cell--required_1u71h_35","cell-group":"_cell-group_1u71h_68","top-tips":"_top-tips_1u71h_73",title:Y,tips:j,radioSection:L,radioItem:Z,"van-picker__confirm":"_van-picker__confirm_1u71h_128",stautsS:X,"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:H,protocol:$,c:ee,phoneTips:oe,wxPopupDialog:te,popupContainer:ae,title1:se,popupTips:re,fieldGroup:ue,fieldTitle:ne},le="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=",ie="./assets/top-banner.8f087f3b.png",ve=E({name:"companion-teacher-register",setup(){const l=k(),e=B({showPicker:!1,showSubject:!1,submitStatus:!1,id:l.query.id,name:l.query.name,t:l.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:""}),F=async()=>{if(e.qrCodeStatus){m({title:"\u63D0\u793A",message:e.qrCodeMessage,theme:"round-button",confirmButtonColor:"#ff8057"});return}if(!e.checked){c("\u8BF7\u9605\u8BFB\u5E76\u540C\u610F\u534F\u8BAE");return}e.btnLoading=!0;try{const t=e.forms;await i.post("/api-school/open/schoolStaff/registerTeacher",{data:{...t,schoolId:e.id}}),window.location.href="https://mp.weixin.qq.com/s?__biz=MzkxMDMwOTI5Nw==&mid=2247485362&idx=1&sn=b9081f35ec8a09897a6a14c2ff617b35&chksm=c12c256cf65bac7ae7ad2627454d296870483070b861729a40c2b9deda54b097e75be206b49f#rd"}catch{}e.btnLoading=!1},p=()=>{if(!x(e.forms.phone))return c("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801");e.imgCodeStatus=!0},S=()=>{e.countDownStatus=!1;const t=setInterval(()=>{e.countDownTime=e.countDownTime-1,e.countDownTime<=0&&(e.countDownTime=120,e.countDownStatus=!0,clearInterval(t))},1e3)};v(async()=>{if(e.id||c("\u4FE1\u606F\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08"),T().weixin){const t=R();if(t)e.code=t;else{const n=window.location.origin+window.location.pathname+"#"+l.path+"?"+G.stringify({...l.query});y(n);return}}else{e.showPopup=!0;return}try{const t=await i.post("/api-school/open/schoolTeacherStudent/queryQrCodeStatus",{data:{schoolId:e.id,qrCodeEffectiveStartTime:e.t?V(Number(e.t)).format("YYYY-MM-DD HH:mm:ss"):null}});t.code===999&&(m({title:"\u63D0\u793A",message:t.message,theme:"round-button",confirmButtonColor:"#FF8057"}),e.qrCodeStatus=!0,e.qrCodeMessage=t.message)}catch(t){console.log(t)}try{const t=[];U.forEach(r=>{const g={name:r.name,code:r.code,areas:[]};r.areas&&r.areas.length>0&&r.areas.forEach(_=>{g.areas.push({name:_.name,code:_.code})}),t.push(g)}),e.columns=t||[];const{data:n}=await i.post("/api-school/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:e.id,page:1,rows:50}}),I=n.rows||[],f=[];I.forEach(r=>{f.push({text:r.name,value:r.subjectId})}),e.columnSubject=f}catch{m({message:"\u4FE1\u606F\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08",theme:"round-button",confirmButtonColor:"#FF8057"})}});const y=async t=>{try{const{data:n}=await i.get("/api-school/open/paramConfig/wechatAppId");n&&(q(),D(n,t))}catch{}},h=t=>{t==="REGISTER"?window.open(window.location.origin+window.location.pathname+"#/preview-protocol?type=REGISTER_TEACHER","_blank"):t==="PRIVACY"?window.open(window.location.origin+window.location.pathname+"#/privacyProtocol","_blank"):t==="WITHDRAW"&&window.open(window.location.origin+window.location.pathname+"#/cashProtocol","_blank")};return()=>o("div",{class:a.register},[o("div",{class:a.title},[o("p",{class:a.tips},[o("img",{src:le},null),o("span",null,[e.name])])]),o(Q,{validateFirst:!0,scrollToError:!0,onSubmit:F,ref:"form",class:a.form},{default:()=>[o(z,{inset:!0,class:a["cell-group"]},{default:()=>[o(u,{label:"\u771F\u5B9E\u59D3\u540D",modelValue:e.forms.realName,"onUpdate:modelValue":t=>e.forms.realName=t,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u771F\u5B9E\u59D3\u540D"}],name:"realName",placeholder:"\u8BF7\u586B\u5199\u771F\u5B9E\u59D3\u540D",maxlength:"5"},null),o(u,{label:"\u624B\u673A\u53F7\u7801",modelValue:e.forms.phone,"onUpdate:modelValue":t=>e.forms.phone=t,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},{pattern:e.pattern,message:"\u8F93\u5165\u624B\u673A\u53F7\u7801\u6709\u8BEF"}],name:"phone",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",maxlength:11,type:"tel"},null),o("div",{class:a.phoneTips},[o(P,{name:"warning",size:"16"},null),s("\u63D0\u793A\uFF1A\u624B\u673A\u53F7\u7801\u5C06\u6210\u4E3A\u60A8\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEF\u767B\u5F55\u8D26\u53F7")]),o(u,{label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801",modelValue:e.forms.idCardNo,"onUpdate:modelValue":t=>e.forms.idCardNo=t,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"},{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:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7"}],name:"idCardNo",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7\u7801"},null),o("div",{class:[a.fieldGroup,"van-hairline--bottom"]},[o(u,{label:"\u8EAB\u4EFD\u8BC1\u7167\u7247\u6B63\u9762",modelValue:e.forms.idcardFrontImg,"onUpdate:modelValue":t=>e.forms.idcardFrontImg=t,readonly:!0,border:!1,name:"idcardFrontImg",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762",trigger:"onChange"}],placeholder:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762"},{input:()=>o(A,{style:{width:"100%"},tips:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762",bucket:"gyt",path:"/user/",modelValue:e.forms.idcardFrontImg,"onUpdate:modelValue":t=>e.forms.idcardFrontImg=t},null)}),o(u,{label:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53CD\u9762",labelClass:a.fieldTitle,modelValue:e.forms.idcardBackImg,"onUpdate:modelValue":t=>e.forms.idcardBackImg=t,readonly:!0,border:!1,name:"idcardBackImg",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53CD\u9762",trigger:"onChange"}],placeholder:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53CD\u9762"},{input:()=>o(A,{style:{width:"100%"},tips:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53CD\u9762",bucket:"gyt",path:"/user/",modelValue:e.forms.idcardBackImg,"onUpdate:modelValue":t=>e.forms.idcardBackImg=t},null)})]),o(u,{label:"\u6027\u522B",name:"gender",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},{input:()=>o(K,{"checked-color":"#FF8057",modelValue:e.forms.gender,"onUpdate:modelValue":t=>e.forms.gender=t,direction:"horizontal"},{default:()=>[o(C,{size:"large",type:"primary",color:e.forms.gender!==1?"#EAEAEA":"#FF8057",textColor:e.forms.gender!==1?"#AAA":"#FFF",class:a.radioSection,round:!0},{default:()=>[o(w,{class:a.radioItem,name:1},null),s("\u7537")]}),o(C,{size:"large",type:"primary",color:e.forms.gender!==0?"#EAEAEA":"#FF8057",textColor:e.forms.gender!==0?"#AAA":"#FFF",class:a.radioSection,round:!0},{default:()=>[o(w,{class:a.radioItem,name:0},null),s("\u5973")]})]})}),o(u,{label:"\u9A8C\u8BC1\u7801",modelValue:e.forms.smsValidCode,"onUpdate:modelValue":t=>e.forms.smsValidCode=t,name:"smsValidCode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"onChange"}],placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",maxlength:6,type:"tel"},{button:()=>e.countDownStatus?o(d,{type:"primary",round:!0,size:"small",color:"#FF8057",onClick:p},{default:()=>[s("\u53D1\u9001\u9A8C\u8BC1\u7801")]}):o(d,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:p},{default:()=>[e.countDownTime+"s"]})})]}),o("div",{class:a.protocol},[o(O,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),o("div",null,[o("span",{onClick:()=>{e.checked=!e.checked}},[s("\u8BF7\u8BA4\u771F\u9605\u8BFB\u5E76\u52FE\u9009")]),o("span",{class:a.c,onClick:()=>h("REGISTER")},[s("\u300A\u7BA1\u4E50\u56E2\u7528\u6237\u6CE8\u518C\u534F\u8BAE\u300B")]),s("\u3001"),o("span",{class:a.c,onClick:()=>h("PRIVACY")},[s("\u300A\u9690\u79C1\u534F\u8BAE\u300B")])])]),o(d,{size:"large",block:!0,round:!0,class:a["btn-submit"],color:"#FF8057",loading:e.btnLoading,"native-type":"submit"},{default:()=>[s("\u5B8C\u6210")]})]}),o(b,{show:e.submitStatus,"onUpdate:show":t=>e.submitStatus=t,round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:()=>[o("div",{class:a.stautsS},[o("img",{src:ie,class:a["submit-img"]},null),o("div",{class:a["submit-container"]},[o("p",{class:a["submit-title"]},[s("\u606D\u559C\u60A8\u5DF2\u6210\u529F\u767B\u8BB0\u4E3A")]),o("p",{class:a["submit-o"]},[e.name,s(" "),o("br",null,null),o("span",null,[s("\u3010\u7BA1\u7406\u8001\u5E08\u3011")])]),o("p",{class:a["submit-tips"]},[s("\u8BF7\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEFAPP")]),o(d,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:()=>{e.submitStatus=!1,window.location.href=window.location.origin+"/orchestra-student/#/download?type=manage"}},{default:()=>[s("\u7ACB\u5373\u4E0B\u8F7D")]})])])]}),e.imgCodeStatus?o(N,{value:e.imgCodeStatus,"onUpdate:value":t=>e.imgCodeStatus=t,phone:e.forms.phone,type:"REGISTER",onClose:()=>{e.imgCodeStatus=!1},onSendCode:S},null):null,o(b,{show:e.showPopup,"onUpdate:show":t=>e.showPopup=t,round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:a.wxPopupDialog},{default:()=>[o("div",{class:a.popupContainer},[o("p",{class:a.title1},[s("\u6E29\u99A8\u63D0\u793A")]),o("p",{class:a.popupTips},[s("\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u6253\u5F00")])])]})])}});export{ve as default};
  3. ========
  4. import{a as E}from"./area.bc7b6c10.js";import{d as k,ah as B,r as v,$ as T,o as c,f as R,bm as q,m as i,ai as V,br as m,bj as D,bk as P,c as o,a5 as U,q as s,B as d,P as b}from"./index.1c621181.js";import{I as N,c as x}from"./validate.21d85312.js";import{O as A}from"./index.3a293742.js";import{q as G}from"./index.339fc024.js";import{F as Q}from"./index.73521fcd.js";import{C as z}from"./index.2db9d877.js";import{F as u}from"./index.c7a20c76.js";import{R as K,a as w}from"./index.523820fb.js";import{T as C}from"./index.4e64eb97.js";import{C as O}from"./index.3e68170a.js";import"./index.4c221cbe.js";import"./index.6999cc47.js";import"./index.de594f37.js";import"./ImagePreview.410fc85b.js";import"./index.78a302c3.js";import"./function-call.db8bb852.js";import"./index.fd5ae97b.js";import"./Checker.6bb59ec3.js";const W="_register_1u71h_15",M="_banner_1u71h_50",j="_system_1u71h_59",J="_title_1u71h_84",Y="_tips_1u71h_98",L="_radioSection_1u71h_112",Z="_radioItem_1u71h_117",X="_stautsS_1u71h_132",H="_cell_title_1u71h_176",$="_protocol_1u71h_186",ee="_c_1u71h_68",oe="_phoneTips_1u71h_200",te="_wxPopupDialog_1u71h_214",ae="_popupContainer_1u71h_229",se="_title1_1u71h_235",re="_popupTips_1u71h_242",ue="_fieldGroup_1u71h_250",ne="_fieldTitle_1u71h_266";var a={"van-field--error":"_van-field--error_1u71h_10","van-field__control":"_van-field__control_1u71h_10",register:W,banner:M,"btn-submit":"_btn-submit_1u71h_55",system:j,"van-cell--required":"_van-cell--required_1u71h_35","cell-group":"_cell-group_1u71h_68","top-tips":"_top-tips_1u71h_73",title:J,tips:Y,radioSection:L,radioItem:Z,"van-picker__confirm":"_van-picker__confirm_1u71h_128",stautsS:X,"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:H,protocol:$,c:ee,phoneTips:oe,wxPopupDialog:te,popupContainer:ae,title1:se,popupTips:re,fieldGroup:ue,fieldTitle:ne},le="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=",ie="./assets/top-banner.8f087f3b.png",ve=k({name:"companion-teacher-register",setup(){const l=B(),e=v({showPicker:!1,showSubject:!1,submitStatus:!1,id:l.query.id,name:l.query.name,t:l.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:""}),F=async()=>{if(e.qrCodeStatus){m({title:"\u63D0\u793A",message:e.qrCodeMessage,theme:"round-button",confirmButtonColor:"#ff8057"});return}if(!e.checked){c("\u8BF7\u9605\u8BFB\u5E76\u540C\u610F\u534F\u8BAE");return}e.btnLoading=!0;try{const t=e.forms;await i.post("/api-school/open/schoolStaff/registerTeacher",{data:{...t,schoolId:e.id}}),window.location.href="https://mp.weixin.qq.com/s?__biz=MzkxMDMwOTI5Nw==&mid=2247485362&idx=1&sn=b9081f35ec8a09897a6a14c2ff617b35&chksm=c12c256cf65bac7ae7ad2627454d296870483070b861729a40c2b9deda54b097e75be206b49f#rd"}catch{}e.btnLoading=!1},p=()=>{if(!x(e.forms.phone))return c("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801");e.imgCodeStatus=!0},S=()=>{e.countDownStatus=!1;const t=setInterval(()=>{e.countDownTime=e.countDownTime-1,e.countDownTime<=0&&(e.countDownTime=120,e.countDownStatus=!0,clearInterval(t))},1e3)};T(async()=>{if(e.id||c("\u4FE1\u606F\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08"),R().weixin){const t=q();if(t)e.code=t;else{const n=window.location.origin+window.location.pathname+"#"+l.path+"?"+G.stringify({...l.query});y(n);return}}else{e.showPopup=!0;return}try{const t=await i.post("/api-school/open/schoolTeacherStudent/queryQrCodeStatus",{data:{schoolId:e.id,qrCodeEffectiveStartTime:e.t?V(Number(e.t)).format("YYYY-MM-DD HH:mm:ss"):null}});t.code===999&&(m({title:"\u63D0\u793A",message:t.message,theme:"round-button",confirmButtonColor:"#FF8057"}),e.qrCodeStatus=!0,e.qrCodeMessage=t.message)}catch(t){console.log(t)}try{const t=[];E.forEach(r=>{const g={name:r.name,code:r.code,areas:[]};r.areas&&r.areas.length>0&&r.areas.forEach(_=>{g.areas.push({name:_.name,code:_.code})}),t.push(g)}),e.columns=t||[];const{data:n}=await i.post("/api-school/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:e.id,page:1,rows:50}}),I=n.rows||[],f=[];I.forEach(r=>{f.push({text:r.name,value:r.subjectId})}),e.columnSubject=f}catch{m({message:"\u4FE1\u606F\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08",theme:"round-button",confirmButtonColor:"#FF8057"})}});const y=async t=>{try{const{data:n}=await i.get("/api-school/open/paramConfig/wechatAppId");n&&(D(),P(n,t))}catch{}},h=t=>{t==="REGISTER"?window.open(window.location.origin+window.location.pathname+"#/preview-protocol?type=REGISTER_TEACHER","_blank"):t==="PRIVACY"?window.open(window.location.origin+window.location.pathname+"#/privacyProtocol","_blank"):t==="WITHDRAW"&&window.open(window.location.origin+window.location.pathname+"#/cashProtocol","_blank")};return()=>o("div",{class:a.register},[o("div",{class:a.title},[o("p",{class:a.tips},[o("img",{src:le},null),o("span",null,[e.name])])]),o(Q,{validateFirst:!0,scrollToError:!0,onSubmit:F,ref:"form",class:a.form},{default:()=>[o(z,{inset:!0,class:a["cell-group"]},{default:()=>[o(u,{label:"\u771F\u5B9E\u59D3\u540D",modelValue:e.forms.realName,"onUpdate:modelValue":t=>e.forms.realName=t,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u771F\u5B9E\u59D3\u540D"}],name:"realName",placeholder:"\u8BF7\u586B\u5199\u771F\u5B9E\u59D3\u540D",maxlength:"5"},null),o(u,{label:"\u624B\u673A\u53F7\u7801",modelValue:e.forms.phone,"onUpdate:modelValue":t=>e.forms.phone=t,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},{pattern:e.pattern,message:"\u8F93\u5165\u624B\u673A\u53F7\u7801\u6709\u8BEF"}],name:"phone",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",maxlength:11,type:"tel"},null),o("div",{class:a.phoneTips},[o(U,{name:"warning",size:"16"},null),s("\u63D0\u793A\uFF1A\u624B\u673A\u53F7\u7801\u5C06\u6210\u4E3A\u60A8\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEF\u767B\u5F55\u8D26\u53F7")]),o(u,{label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801",modelValue:e.forms.idCardNo,"onUpdate:modelValue":t=>e.forms.idCardNo=t,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"},{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:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7"}],name:"idCardNo",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7\u7801"},null),o("div",{class:[a.fieldGroup,"van-hairline--bottom"]},[o(u,{label:"\u8EAB\u4EFD\u8BC1\u7167\u7247",modelValue:e.forms.idcardFrontImg,"onUpdate:modelValue":t=>e.forms.idcardFrontImg=t,readonly:!0,border:!1,name:"idcardFrontImg",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762",trigger:"onChange"}],placeholder:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762"},{input:()=>o(A,{style:{width:"100%"},tips:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762",bucket:"gyt",path:"/user/",modelValue:e.forms.idcardFrontImg,"onUpdate:modelValue":t=>e.forms.idcardFrontImg=t},null)}),o(u,{label:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1",labelClass:a.fieldTitle,modelValue:e.forms.idcardBackImg,"onUpdate:modelValue":t=>e.forms.idcardBackImg=t,readonly:!0,border:!1,name:"idcardBackImg",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53CD\u9762",trigger:"onChange"}],placeholder:"\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53CD\u9762"},{input:()=>o(A,{style:{width:"100%"},tips:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53CD\u9762",bucket:"gyt",path:"/user/",modelValue:e.forms.idcardBackImg,"onUpdate:modelValue":t=>e.forms.idcardBackImg=t},null)})]),o(u,{label:"\u6027\u522B",name:"gender",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},{input:()=>o(K,{"checked-color":"#FF8057",modelValue:e.forms.gender,"onUpdate:modelValue":t=>e.forms.gender=t,direction:"horizontal"},{default:()=>[o(C,{size:"large",type:"primary",color:e.forms.gender!==1?"#EAEAEA":"#FF8057",textColor:e.forms.gender!==1?"#AAA":"#FFF",class:a.radioSection,round:!0},{default:()=>[o(w,{class:a.radioItem,name:1},null),s("\u7537")]}),o(C,{size:"large",type:"primary",color:e.forms.gender!==0?"#EAEAEA":"#FF8057",textColor:e.forms.gender!==0?"#AAA":"#FFF",class:a.radioSection,round:!0},{default:()=>[o(w,{class:a.radioItem,name:0},null),s("\u5973")]})]})}),o(u,{label:"\u9A8C\u8BC1\u7801",modelValue:e.forms.smsValidCode,"onUpdate:modelValue":t=>e.forms.smsValidCode=t,name:"smsValidCode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"onChange"}],placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",maxlength:6,type:"tel"},{button:()=>e.countDownStatus?o(d,{type:"primary",round:!0,size:"small",color:"#FF8057",onClick:p},{default:()=>[s("\u53D1\u9001\u9A8C\u8BC1\u7801")]}):o(d,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:p},{default:()=>[e.countDownTime+"s"]})})]}),o("div",{class:a.protocol},[o(O,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),o("div",null,[o("span",{onClick:()=>{e.checked=!e.checked}},[s("\u8BF7\u8BA4\u771F\u9605\u8BFB\u5E76\u52FE\u9009")]),o("span",{class:a.c,onClick:()=>h("REGISTER")},[s("\u300A\u7BA1\u4E50\u56E2\u7528\u6237\u6CE8\u518C\u534F\u8BAE\u300B")]),s("\u3001"),o("span",{class:a.c,onClick:()=>h("PRIVACY")},[s("\u300A\u9690\u79C1\u534F\u8BAE\u300B")])])]),o(d,{size:"large",block:!0,round:!0,class:a["btn-submit"],color:"#FF8057",loading:e.btnLoading,"native-type":"submit"},{default:()=>[s("\u5B8C\u6210")]})]}),o(b,{show:e.submitStatus,"onUpdate:show":t=>e.submitStatus=t,round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:()=>[o("div",{class:a.stautsS},[o("img",{src:ie,class:a["submit-img"]},null),o("div",{class:a["submit-container"]},[o("p",{class:a["submit-title"]},[s("\u606D\u559C\u60A8\u5DF2\u6210\u529F\u767B\u8BB0\u4E3A")]),o("p",{class:a["submit-o"]},[e.name,s(" "),o("br",null,null),o("span",null,[s("\u3010\u7BA1\u7406\u8001\u5E08\u3011")])]),o("p",{class:a["submit-tips"]},[s("\u8BF7\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEFAPP")]),o(d,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:()=>{e.submitStatus=!1,window.location.href=window.location.origin+"/orchestra-student/#/download?type=manage"}},{default:()=>[s("\u7ACB\u5373\u4E0B\u8F7D")]})])])]}),e.imgCodeStatus?o(N,{value:e.imgCodeStatus,"onUpdate:value":t=>e.imgCodeStatus=t,phone:e.forms.phone,type:"REGISTER",onClose:()=>{e.imgCodeStatus=!1},onSendCode:S},null):null,o(b,{show:e.showPopup,"onUpdate:show":t=>e.showPopup=t,round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:a.wxPopupDialog},{default:()=>[o("div",{class:a.popupContainer},[o("p",{class:a.title1},[s("\u6E29\u99A8\u63D0\u793A")]),o("p",{class:a.popupTips},[s("\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u6253\u5F00")])])]})])}});export{ve as default};
  5. >>>>>>>> online:dist/assets/manage-teacher-register.a035a9b8.js