index.d0babdc2.js 15 KB

1
  1. import{d as v,T as n,j as e,z as u,F as b,aS as d,M as h,C as R,O as N,Q as C,U as E,B as _,aR as F,bE as W,w as m}from"./index.e6d6174e.js";import{C as T}from"./index.045f03fd.js";import"./index.af99cf22.js";import{F as i}from"./index.17d70acf.js";import{C as z}from"./index.4aea64de.js";import{C as w}from"./index.3d7e5752.js";import"./index.d92a5aca.js";import{I as A}from"./index.67c54471.js";import{R as L,a as B}from"./index.cbc70232.js";import{S as U}from"./index.9093bc60.js";import{C as V}from"./index.c67b3500.js";import{F as M}from"./index.41be4a84.js";import"./index.d8c651bf.js";import"./use-height.8140ea04.js";import"./use-id.f239f36f.js";const O="_resjetStudentWrap_16duv_1",G="_bgWrap_16duv_6",K="_rejectLogo_16duv_13",J="_studentText_16duv_22",D="_schoolNameWrap_16duv_31",Q="_rejectSchool_16duv_46",X="_centerLogo_16duv_51",Y="_infoWrap_16duv_58",q="_infoWrapCore_16duv_71",P="_subTitle_16duv_79",H="_group_16duv_87",Z="_noArrow_16duv_91",$="_inputCode_16duv_114",ee="_tips_16duv_130",se="_sendBtn_16duv_147",te="_rejectBtn_16duv_160",ce="_showWrap_16duv_168",oe="_showWrapTop_16duv_181",ae="_downApp_16duv_216";var l={resjetStudentWrap:O,bgWrap:G,rejectLogo:K,studentText:J,schoolNameWrap:D,rejectSchool:Q,centerLogo:X,infoWrap:Y,infoWrapCore:q,subTitle:P,group:H,noArrow:Z,inputCode:$,tips:ee,sendBtn:se,rejectBtn:te,showWrap:ce,showWrapTop:oe,downApp:ae},le="./assets/teacherBg.f2cd330c.png",ne="./assets/rejectLogo.6f541221.png",ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAqNJREFUWEftl8trE1EUxr8zmSQ01NqCq0I6aRGlRVAMSklUooi0lUwXQl24c6EgUgRXRXDjol0VRPoX6KoLtYlaREsjNAk+urRQLOZdpFIXrdrYzMyRSQ0ksSaTmBEXucs755z7m+885g7hP1lUzhHs9O2DqB4mAWI9jBqUbPabfXHkc+hrLf4lIAGn5xgEegmgrZYgv9kyUhZh+/j5+NtPRuOUgAQl7wMGLgGsMSgGQDUaSLcTADsDUt6HMCbHwxNG/UsV6fI+B+EcGBNyMjxmNEixXbDLO8MEmUGTw4mFm0Zj7ApCoOv+xMKU0SDFdgHpxBTA15ogBVVMUeSRq98lsuUxgPbKaeI4cj+G/KuL300BCUieMwDNVasVBnKCqnX709GMKSA6wFOX54gGobIiQi7j//j6g25fAAEjRYSVP7zEqibgznAsvFx4blrXVFMRwIqcCB8AwDtjp2gFfs2RRrQvgAyBxsHadvEZDHKDcFXfExWrcygTSpsKQsx3/cnIjXJlnu0ftCu5jay+byVr92A8FK8KMg+fuCkpVwCto6LUjKScjNwvrhECTfp3mazzPp+4GcvlagJ54vTKmoAZA/nWM31ITobfF4q1oSAvetx7s2rLOFeZI0RItcbFW6cRUkwBMaREmVETpFw10xQJdrodwB5HpTRtta9tjCwt5eeFKSAB6eRRQI0CZKvcvrzuUJWDZzNv1k0B0b8zKlMEQEuVwl2zqVrvQDr6xRQQ/fDpvj6bXe2wVwJpW7Zu6a1rWmqa7dvIr29DR3wzNc3UFK6Ks65+lwLLADOPAtQLwjSYXtVTI2C+CMIpAs0x8LA8BoEFBu7p+wzcJuCdnAjP5u+shZTUdfBfOhHACqk9OyCS5wKBLnP+h/7fLgLFWhPi6E9A9WJr6DrvywAAAABJRU5ErkJggg==",ie="./assets/subTitle.53eedf80.png",re="./assets/center.8361e7b4.png",de="./assets/studentText.caab659c.png",he="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAARRJREFUSEvF1UFqAjEUBuA/GheuPEQdqtdQSu0FBMUrKMho76BYoe0dRvEM7bbuXI8u3NQDiNJVcV4ZFwo2GZM3Kc1+/i8k8/IL/PESuvzPWTf/dRB32YNceK3hhrsPLRAG/juACoCdFPKh2Bh8cJAkYAugcAwl7GVG1jiIFlgFfjsCXk67ZiJaIA4OA/8RwCANkgi4QK4CaREjIEZW014/imhoe1zGABexAnRINifuvfporpoTa0CFCGB923y6cQb8+n2BdckVoJoNylCt3BgrnxKrI+IMnjHACY/vxAjghhsBacKvAmnDE4Fw0uuA6Nn2abichf8rnOXEfyNCFaCdFDn3lXku/e+F13p1X/qcgld98wOin6sZB+h4pAAAAABJRU5ErkJggg==",Ae="./assets/rejectBtn.42205429.png",pe="./assets/teacherSuccess.253b4cb4.png";const ge="_subjects_1uzmy_1",me="_subjectName_1uzmy_6",be="_subjectContainer_1uzmy_10",je="_subjectMaxLength_1uzmy_13",fe="_title_1uzmy_23",Ce="_topBg_1uzmy_57",we="_checkbox_1uzmy_65",Be="_name_1uzmy_70",ve="_chioseBtn_1uzmy_93";var o={subjects:ge,subjectName:me,subjectContainer:be,subjectMaxLength:je,title:fe,"subject-list":"_subject-list_1uzmy_41","subject-item":"_subject-item_1uzmy_47",topBg:Ce,checkbox:we,name:Be,chioseBtn:ve},p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABJlJREFUWEfVmW9sU1UYxp+3hY1N65DMBZikrO1Sglr2xURNiB8k6PyT2TUzBIEtMpRF4hLMdGSRjujwz4wJQoIxGMhMTIRsC36QYNQYSTRRIqPF4Vw7sjCH4BwsXTtm176mp+tdb9f29m6l271fmvTec97ffe5zzvuecwjzuNi0qQh6w0ZAZwbzQ2AuBSgfxDrRLVMY4EkQ/QUiNxD2IuQ7RwPfjs01LKltyADB5KgE4UlQeANAKvtgBusugnEWA51nCGA1DKqCscVeBaY6EFbIgmTaSyIaYxTEJ8jTfTpT6IxCcVmNFfqpNwCySB1n1DINhgyePQgt+YCunOpTAlcMyxZ7DZgaQNCLzhRbKIVMuB8DZ4RAfJQ83afS9ZA2PJvtLSDanDVVU5HEq838DXm721I9mhKYLfb3AHr0jqiqCM4/k6e7OdljS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W8Al8+xVBJ3Ow2JxuRx9ufkVPt1eNrNyj5AlK/PfYMhVC5ujfOAAAAAASUVORK5CYII=",xe="./assets/chioseOk.6394a2c5.png",Se=v({name:"SubjectList",props:{onChoice:{type:Function,default:t=>{}},choiceSubjectIds:{type:Array,default:[]},subjectList:{type:Array,default:[]},max:{type:Number,default:5},selectType:{type:String,default:"Checkbox"},single:{type:Boolean,default:!1}},data(){return{checkBox:[],checkboxRefs:[],radio:null}},async mounted(){console.log("mounted=====>",this.selectType),this.selectType==="Radio"?this.radio=this.choiceSubjectIds[0]:this.checkBox=[...this.choiceSubjectIds]},watch:{choiceSubjectIds(t,s){console.log(this.choiceSubjectIds,this.checkBox,"choiceSubjectIds"),this.checkBox=[...t]}},methods:{onSelect(t){this.selectType==="Checkbox"?(this.max===this.checkBox.length&&!this.checkBox.includes(t)&&n(`\u4E50\u5668\u6700\u591A\u9009\u62E9${this.max}\u4E2A`),this.checkboxRefs[t].toggle(),console.log(this.checkBox,"onSelect====>")):this.selectType==="Radio"&&(this.radio=t)}},render(){return e("div",{class:o.subjects},[e("h2",{class:o.subjectName},[u("\u9009\u62E9\u58F0\u90E8")]),e("div",{class:o.subjectContainer},[this.subjectList.length?this.selectType==="Checkbox"?e(V,{modelValue:this.checkBox,"onUpdate:modelValue":t=>this.checkBox=t,max:this.max},{default:()=>[e("div",{class:o.subjectMaxLength},[u("\u6700\u591A\u53EF\u9009\u62E9"),this.max,u("\u4E2A\u4E50\u5668")]),!this.single&&this.subjectList.map(t=>t.subjects&&t.subjects.length>0?e(b,null,[e("div",{class:o.title},[t.name]),e("div",{class:o["subject-list"]},[t.subjects&&t.subjects.map(s=>e("div",{class:o["subject-item"],onClick:()=>this.onSelect(s.id)},[e(A,{src:s.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:()=>e(d,{type:"spinner",size:20},null)}),e("div",{class:o.topBg},[e(w,{name:s.id,class:o.checkbox,disabled:!0,ref:c=>this.checkboxRefs[s.id]=c},{icon:c=>e(h,{name:c.checked?p:g,size:"20"},null)}),e("p",{class:o.name},[s.name])])]))])]):null),this.single?e("div",{class:o["subject-list"]},[this.subjectList.map(t=>e("div",{class:o["subject-item"],onClick:()=>this.onSelect(t.id)},[e(A,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:()=>e(d,{type:"spinner",size:20},null)}),e("div",{class:o.topBg},[e(w,{name:t.id,class:o.checkbox,disabled:!0,ref:s=>this.checkboxRefs[t.id]=s},{icon:s=>e(h,{name:s.checked?p:g,size:"20"},null)}),e("p",{class:o.name},[t.name])])]))]):null]}):e(L,{modelValue:this.radio,"onUpdate:modelValue":t=>this.radio=t},{default:()=>[!this.single&&this.subjectList.map(t=>t.subjects&&t.subjects.length>0?e(b,null,[e("div",{class:o.title},[t.name]),e("div",{class:o["subject-list"]},[t.subjects&&t.subjects.map(s=>e("div",{class:o["subject-item"],onClick:()=>this.onSelect(s.id)},[e(A,{src:s.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:()=>e(d,{type:"spinner",size:20},null)}),e("div",{class:o.topBg},[e(B,{name:s.id,class:o.checkbox},{icon:c=>e(h,{name:c.checked?p:g,size:"20"},null)}),e("p",{class:o.name},[s.name])])]))])]):null),this.single?e("div",{class:o["subject-list"]},[this.subjectList.map(t=>e("div",{class:o["subject-item"],onClick:()=>this.onSelect(t.id)},[e(A,{src:t.img||"xxx",width:"100%",height:"100%",fit:"cover"},{loading:()=>e(d,{type:"spinner",size:20},null)}),e("div",{class:o.topBg},[e(B,{name:t.id,class:o.checkbox},{icon:s=>e(h,{name:s.checked?p:g,size:"20"},null)}),e("p",{class:o.name},[t.name])])]))]):null]}):e(R,{tips:"\u6682\u65E0\u58F0\u90E8\u6570\u636E",btnStatus:!1},null)]),this.subjectList.length>0&&e(U,{offsetBottom:0,position:"bottom"},{default:()=>[e("div",{class:"btnGroup"},[e("img",{src:xe,class:o.chioseBtn,alt:"",onClick:()=>this.onChoice(this.selectType==="Checkbox"?this.checkBox:this.radio)},null)])]})])}}),Oe=v({name:"tenantStudentRejest",setup(){const t=N(),s=C({idCardNo:"",username:"",realName:"",phone:"",subjectId:"",tenantId:t.query.tenantId,birthdate:"",code:""}),c=C({schoolName:t.query.name||"",cityName:"",showArea:!1,checked:!0,success:!1,areaList:{},sendMsg:"\u83B7\u53D6\u9A8C\u8BC1\u7801",imgCodeStatus:!1,subjectList:[],searchStatus:!1,openStatus:!1,dateState:!1,showSuccess:!1,choiceSubjectIds:[],choiceSubjectNames:[]}),j=async()=>{console.log(s,"forms"),s.username||n("\u8BF7\u8F93\u5165\u8001\u5E08\u6635\u79F0"),s.phone||n("\u8BF7\u8F93\u5165\u624B\u673A\u53F7"),s.code||n("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"),s.realName||n("\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"),s.idCardNo||n("\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"),c.choiceSubjectIds.length<1&&n("\u8BF7\u9009\u62E9\u58F0\u90E8");try{const a=await m.post("/api-tenant/open/teacher/submit",{data:{...s,subjectId:c.choiceSubjectIds.join(",")}});c.showSuccess=!0}catch(a){console.log(a)}},x=async()=>{try{const a=await m.get("/api-tenant/open/subject/queryPage",{data:{page:1,rows:9999}});c.subjectList=a.data.rows||[]}catch(a){console.log(a)}};E(()=>{console.log(t.query),x()});const S=async()=>{if(!s.phone){n("\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801");return}if(!/^1[3456789]\d{9}$/.test(s.phone)){n("\u624B\u673A\u53F7\u7801\u683C\u5F0F\u4E0D\u6B63\u786E");return}await m.post("/api-student/code/sendSmsCode",{requestType:"form",data:{mobile:s.phone,type:"LOGIN"}}),k(),setTimeout(()=>{n("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001")},100)},k=()=>{c.sendMsg="60s";let a=60;const r=setInterval(()=>{a--,c.sendMsg=`${a}s`,a<=0&&(c.sendMsg="\u83B7\u53D6\u9A8C\u8BC1\u7801",clearInterval(r))},1e3)},y=()=>{window.open(location.origin+"/student/#/download?type=teacher"),c.showSuccess=!1},I=a=>{c.searchStatus=!1,c.choiceSubjectIds=[...a];const r=[];c.subjectList.forEach(f=>{c.choiceSubjectIds.indexOf(f.id)!=-1&&r.push(f.name)}),c.choiceSubjectNames=[...r]};return()=>e(b,null,[e("div",{class:l.videoClass},[e(T,{class:l.classHeader,border:!1,isFixed:!1,background:"#fff"},null),e("div",{class:l.resjetStudentWrap},[e("img",{src:ne,class:l.rejectLogo,alt:""},null),e("img",{src:de,class:l.studentText,alt:""},null),e("img",{src:le,class:l.bgWrap,alt:""},null),e("div",{class:l.schoolNameWrap},[e("img",{src:ue,class:l.rejectSchool,alt:""},null),e("p",null,[c.schoolName])]),e("img",{class:l.centerLogo,src:re,alt:""},null),e("div",{class:l.infoWrap},[e("div",{class:l.infoWrapCore},[e("img",{src:ie,class:l.subTitle,alt:""},null),e(M,{onSubmit:()=>j()},{default:()=>[e(z,{class:l.group,border:!1},{default:()=>[e(i,{class:l.noArrow,inputAlign:"right",label:"\u8001\u5E08\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165\u8001\u5E08\u6635\u79F0",maxlength:20,modelValue:s.username,"onUpdate:modelValue":a=>s.username=a},null),e(i,{inputAlign:"right",label:"\u624B\u673A\u53F7",class:l.noArrow,maxlength:11,placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",modelValue:s.phone,"onUpdate:modelValue":a=>s.phone=a},null),e("div",{class:l.tips},[u("\u624B\u673A\u53F7\u7801\u4E3A\u9177\u4E50\u79C0\u5B66\u9662\u767B\u5F55\u8D26\u53F7")]),e(i,{class:l.inputCode,inputAlign:"left",label:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",labelWidth:0,modelValue:s.code,"onUpdate:modelValue":a=>s.code=a,maxlength:6},{button:()=>e(_,{disabled:c.sendMsg.includes("s"),class:l.sendBtn,onClick:()=>S()},{default:()=>[c.sendMsg]})}),e(i,{class:l.noArrow,inputAlign:"right",label:"\u771F\u5B9E\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D",maxlength:20,modelValue:s.realName,"onUpdate:modelValue":a=>s.realName=a},null),e(i,{class:l.noArrow,inputAlign:"right",label:"\u8EAB\u4EFD\u8BC1\u53F7",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7",maxlength:20,modelValue:s.idCardNo,"onUpdate:modelValue":a=>s.idCardNo=a},null),e(i,{border:!1,inputAlign:"right",label:"\u58F0\u90E8",placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8",readonly:!0,modelValue:c.choiceSubjectNames,"onUpdate:modelValue":a=>c.choiceSubjectNames=a,onClick:()=>c.searchStatus=!0},{button:()=>e("img",{style:{display:"block",width:"12px",height:"12px"},src:he},null)})]})]})]),e("img",{src:Ae,onClick:()=>{j()},class:l.rejectBtn,alt:""},null)])]),e(F,{show:c.searchStatus,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":a=>c.searchStatus=a},{default:()=>[e(Se,{subjectList:c.subjectList,choiceSubjectIds:c.choiceSubjectIds,onChoice:I,single:!0,selectType:"Checkbox"},null)]})]),e(W,{show:c.showSuccess,"z-index":1e3},{default:()=>[e("div",{class:l.showWrap},[e("img",{class:l.showWrapTop,src:pe,alt:""},null),e("h2",null,[u("\u606D\u559C\u60A8\u5DF2\u6210\u529F\u767B\u8BB0\u4E3A")]),e("h4",null,[c.schoolName,u(" "),e("span",null,[u("\u3010\u97F3\u4E50\u8001\u5E08\u3011")])," "]),e("p",null,[u("\u8BF7\u4E0B\u8F7D\u9177\u4E50\u79C0\u673A\u6784\u7248APP\u8FDB\u884C\u5B66\u4E60")]),e("div",{class:l.downApp,onClick:y},[u("\u7ACB\u5373\u4E0B\u8F7D")])])]})])}});export{Oe as default};