1 |
- import{d as _,O as j,Q as m,U as v,j as e,z as n,B as F,aR as c,bE as k,F as W,T as l,w as d,u as E}from"./index.e6d6174e.js";import{C as q}from"./index.045f03fd.js";import"./index.af99cf22.js";import{F as u}from"./index.17d70acf.js";import{C as N}from"./index.4aea64de.js";import"./index.bcc8eff6.js";import{D as R}from"./index.27ea524d.js";import{F as D}from"./index.41be4a84.js";import{P as A}from"./index.00bf6672.js";import"./index.d8c651bf.js";import"./use-height.8140ea04.js";import"./use-id.f239f36f.js";import"./utils.5fa3f1eb.js";const U="_resjetStudentWrap_1qk3x_1",y="_bgWrap_1qk3x_6",L="_rejectLogo_1qk3x_13",I="_studentText_1qk3x_22",T="_schoolNameWrap_1qk3x_31",V="_rejectSchool_1qk3x_46",M="_centerLogo_1qk3x_51",K="_infoWrap_1qk3x_58",G="_infoWrapCore_1qk3x_71",Q="_subTitle_1qk3x_79",P="_group_1qk3x_87",X="_noArrow_1qk3x_91",z="_inputCode_1qk3x_114",O="_tips_1qk3x_130",J="_sendBtn_1qk3x_147",Y="_rejectBtn_1qk3x_160",Z="_showWrap_1qk3x_168",H="_showWrapTop_1qk3x_181",$="_downApp_1qk3x_216",ee="_secondWrap_1qk3x_231",te="_buttonWrap_1qk3x_259",se="_closeBtn_1qk3x_268",oe="_submitBtn_1qk3x_281";var a={resjetStudentWrap:U,bgWrap:y,rejectLogo:L,studentText:I,schoolNameWrap:T,rejectSchool:V,centerLogo:M,infoWrap:K,infoWrapCore:G,subTitle:Q,group:P,noArrow:X,inputCode:z,tips:O,sendBtn:J,rejectBtn:Y,showWrap:Z,showWrapTop:H,downApp:$,secondWrap:ee,buttonWrap:te,closeBtn:se,submitBtn:oe},ae="./assets/bg.eafce322.png",ne="./assets/rejectLogo.6f541221.png",le="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==",ue="./assets/subTitle.fbf07443.png",re="./assets/center.13bda931.png",ce="./assets/studentText.6a2c2c10.png",p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAARRJREFUSEvF1UFqAjEUBuA/GheuPEQdqtdQSu0FBMUrKMho76BYoe0dRvEM7bbuXI8u3NQDiNJVcV4ZFwo2GZM3Kc1+/i8k8/IL/PESuvzPWTf/dRB32YNceK3hhrsPLRAG/juACoCdFPKh2Bh8cJAkYAugcAwl7GVG1jiIFlgFfjsCXk67ZiJaIA4OA/8RwCANkgi4QK4CaREjIEZW014/imhoe1zGABexAnRINifuvfporpoTa0CFCGB923y6cQb8+n2BdckVoJoNylCt3BgrnxKrI+IMnjHACY/vxAjghhsBacKvAmnDE4Fw0uuA6Nn2abichf8rnOXEfyNCFaCdFDn3lXku/e+F13p1X/qcgld98wOin6sZB+h4pAAAAABJRU5ErkJggg==",de="./assets/rejectBtn.42205429.png",ie="./assets/studentSuccess.639fc4e5.png",je=_({name:"tenantStudentRejest",setup(){const i=j(),o=m({gender:"",name:"",phone:"",subjectId:"",subjectName:"",birthdate:"",code:"",genderName:"",tenantId:i.query.tenantId}),t=m({schoolName:i.query.name||"",id:i.query.tenantId,cityName:"",showArea:!1,checked:!0,success:!1,areaList:{},sendMsg:"\u83B7\u53D6\u9A8C\u8BC1\u7801",imgCodeStatus:!1,subjectList:[],searchStatus:!1,openStatus:!1,dateState:!1,genderState:!1,genderList:[{text:"\u7537",value:"1"},{text:"\u5973",value:"0"}],showSuccess:!1,secondConfirm:!1}),g=async()=>{console.log(o,"forms"),o.name||l("\u8BF7\u8F93\u5165\u59D3\u540D"),o.gender||l("\u8BF7\u9009\u62E9\u6027\u522B"),o.phone||l("\u8BF7\u8F93\u5165\u624B\u673A\u53F7"),o.birthdate||l("\u8BF7\u9009\u62E9\u51FA\u751F\u5E74\u6708"),o.code||l("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"),o.subjectId||l("\u8BF7\u9009\u62E9\u58F0\u90E8");const s=await d.post("/api-tenant/open/student/save",{data:{...o}});console.log(s),s.code==200&&(t.showSuccess=!0),s.code==5004&&(t.secondConfirm=!0)},f=async()=>{try{const s=await d.get("/api-tenant/open/subject/queryPage",{data:{page:1,rows:9999}});t.subjectList=s.data.rows.map(r=>({text:r.name,value:r.id}))||[]}catch(s){console.log(s)}},h=s=>{o.subjectName=s.text,o.subjectId=s.value,t.searchStatus=!1,console.log(s,"confirmSubject")},b=s=>{o.birthdate=E(s).format("YYYY-MM-DD"),t.dateState=!1};v(()=>{f()});const C=s=>{s.value?(o.gender=s.value,o.genderName=s.text):(o.gender="",o.genderName=""),t.genderState=!1},w=async()=>{if(!o.phone){l("\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801");return}if(!/^1[3456789]\d{9}$/.test(o.phone)){l("\u624B\u673A\u53F7\u7801\u683C\u5F0F\u4E0D\u6B63\u786E");return}await d.post("/api-student/code/sendSmsCode",{requestType:"form",data:{mobile:o.phone,type:"LOGIN"}}),S(),setTimeout(()=>{l("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001")},100)},S=()=>{t.sendMsg="60s";let s=60;const r=setInterval(()=>{s--,t.sendMsg=`${s}s`,s<=0&&(t.sendMsg="\u83B7\u53D6\u9A8C\u8BC1\u7801",clearInterval(r))},1e3)},x=()=>{window.open(location.origin+"/student/#/download"),t.showSuccess=!1},B=async()=>{try{const s=await d.post("/api-tenant/open/student/save",{data:{...o,updateTenant:!0}});t.showSuccess=!0,t.secondConfirm=!1}catch(s){console.log(s)}};return()=>e(W,null,[e("div",{class:a.videoClass},[e(q,{class:a.classHeader,border:!1,isFixed:!1,background:"#fff"},null),e("div",{class:a.resjetStudentWrap},[e("img",{src:ne,class:a.rejectLogo,alt:""},null),e("img",{src:ce,class:a.studentText,alt:""},null),e("img",{src:ae,class:a.bgWrap,alt:""},null),e("div",{class:a.schoolNameWrap},[e("img",{src:le,class:a.rejectSchool,alt:""},null),e("p",null,[t.schoolName])]),e("img",{class:a.centerLogo,src:re,alt:""},null),e("div",{class:a.infoWrap},[e("div",{class:a.infoWrapCore},[e("img",{src:ue,class:a.subTitle,alt:""},null),e(D,{onSubmit:()=>g()},{default:()=>[e(N,{class:a.group,border:!1},{default:()=>[e(u,{class:a.noArrow,inputAlign:"right",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",maxlength:20,modelValue:o.name,"onUpdate:modelValue":s=>o.name=s},null),e(u,{readonly:!0,inputAlign:"right",label:"\u6027\u522B",placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",modelValue:o.genderName,"onUpdate:modelValue":s=>o.genderName=s,onClick:()=>{t.genderState=!0}},{button:()=>e("img",{style:{display:"block",width:"12px",height:"12px"},src:p},null)}),e(u,{readonly:!0,inputAlign:"right",label:"\u51FA\u751F\u65E5\u671F",placeholder:"\u8BF7\u9009\u62E9\u51FA\u751F\u65E5\u671F",maxlength:20,modelValue:o.birthdate,"onUpdate:modelValue":s=>o.birthdate=s,onClick:()=>{t.dateState=!0}},{button:()=>e("img",{style:{display:"block",width:"12px",height:"12px"},src:p},null)}),e(u,{inputAlign:"right",label:"\u624B\u673A\u53F7",class:a.noArrow,maxlength:11,placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",modelValue:o.phone,"onUpdate:modelValue":s=>o.phone=s},null),e("div",{class:a.tips},[n("\u624B\u673A\u53F7\u7801\u4E3A\u9177\u4E50\u79C0\u673A\u6784\u7248\u767B\u5F55\u8D26\u53F7")]),e(u,{class:a.inputCode,inputAlign:"left",label:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",labelWidth:0,modelValue:o.code,"onUpdate:modelValue":s=>o.code=s,maxlength:6},{button:()=>e(F,{disabled:t.sendMsg.includes("s"),class:a.sendBtn,onClick:()=>w()},{default:()=>[t.sendMsg]})}),e(u,{border:!1,inputAlign:"right",label:"\u58F0\u90E8",placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8",readonly:!0,modelValue:o.subjectName,"onUpdate:modelValue":s=>o.subjectName=s,onClick:()=>t.searchStatus=!0},{button:()=>e("img",{style:{display:"block",width:"12px",height:"12px"},src:p},null)})]})]})]),e("img",{src:de,onClick:()=>{g()},class:a.rejectBtn,alt:""},null)])]),e(c,{show:t.searchStatus,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:()=>t.searchStatus=!1,onClosed:()=>t.openStatus=!1},{default:()=>[e(A,{columns:t.subjectList,onCancel:()=>{t.searchStatus=!1},onConfirm:h},null)]}),e(c,{show:t.dateState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:()=>t.dateState=!1,onClosed:()=>t.dateState=!1},{default:()=>[e(R,{type:"date",value:o.birthdate,"onUpdate:value":s=>o.birthdate=s,onCancel:()=>{t.dateState=!1},onConfirm:b},null)]}),e(c,{show:t.genderState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:()=>t.genderState=!1,onClosed:()=>t.genderState=!1},{default:()=>[e(A,{columns:t.genderList,onCancel:()=>{t.genderState=!1},onConfirm:C},null)]}),e(k,{show:t.showSuccess,"z-index":1e3},{default:()=>[e("div",{class:a.showWrap},[e("img",{class:a.showWrapTop,src:ie,alt:""},null),e("h2",null,[n("\u606D\u559C\u60A8\u5DF2\u6210\u529F\u767B\u8BB0\u4E3A")]),e("h4",null,[t.schoolName,n(" "),e("span",null,[n("\u3010\u5B66\u5458\u3011")]),n(" ")]),e("p",null,[n("\u8BF7\u4E0B\u8F7D\u9177\u4E50\u79C0\u673A\u6784\u7248APP\u8FDB\u884C\u5B66\u4E60")]),e("div",{class:a.downApp,onClick:x},[n("\u7ACB\u5373\u4E0B\u8F7D")])])]}),e(c,{show:t.secondConfirm,position:"center",round:!0,onClose:()=>t.secondConfirm=!1,onClosed:()=>t.secondConfirm=!1},{default:()=>[e("div",{class:a.secondWrap},[e("h2",null,[n("\u63D0\u793A")]),e("p",null,[n("\u5F53\u524D\u8D26\u53F7\u5DF2\u5B58\u5728 "),e("span",null,[n("\u3010\u673A\u6784\u540D\u79F0\u3011")]),n(" \uFF0C\u662F\u5426")]),e("p",null,[n("\u786E\u8BA4\u66F4\u6362\u5230 "),e("span",null,[n("\u3010\u673A\u6784\u540D\u79F0\u3011")]),n("\u5417? ")]),e("div",{class:a.buttonWrap},[e("div",{class:a.closeBtn,onClick:()=>{t.secondConfirm=!1}},[n(" \u53D6\u6D88")]),e("div",{class:a.submitBtn,onClick:B},[n("\u786E\u5B9A")])])])]})])])}});export{je as default};
|