index-legacy.b6c5084d.js 18 KB

1
  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,a,i){try{var s=e[a](i),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,u,"next",e)}function u(e){r(i,o,a,s,u,"throw",e)}s(void 0)}))}}var a=document.createElement("style");a.innerHTML="._resjetStudentWrap_8vpsh_1{width:100%;height:23.76rem;position:relative}._resjetStudentWrap_8vpsh_1 ._bgWrap_8vpsh_6{position:absolute;top:0;left:0;width:100%;height:23.76rem}._resjetStudentWrap_8vpsh_1 ._rejectLogo_8vpsh_13{width:4.34667rem;height:.58667rem;position:absolute;left:50%;margin-left:-2.18667rem;z-index:100;top:.72rem}._resjetStudentWrap_8vpsh_1 ._studentText_8vpsh_22{width:3.54667rem;height:.85333rem;position:absolute;left:50%;margin-left:-1.81333rem;top:1.84rem;z-index:100}._resjetStudentWrap_8vpsh_1 ._schoolNameWrap_8vpsh_31{position:absolute;z-index:10;display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;top:3.25333rem;font-size:.4rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#b21f3b;line-height:.56rem}._resjetStudentWrap_8vpsh_1 ._schoolNameWrap_8vpsh_31 ._rejectSchool_8vpsh_46{width:.45333rem;height:.45333rem;margin-right:.21333rem}._resjetStudentWrap_8vpsh_1 ._centerLogo_8vpsh_51{width:10rem;height:9.44rem;z-index:10;position:absolute;top:3.78667rem}._resjetStudentWrap_8vpsh_1 ._infoWrap_8vpsh_58{padding:.32rem .32rem 0;top:8.69333rem;position:relative;width:9.89333rem;height:15.06667rem;background:linear-gradient(180deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 100%);box-sizing:border-box;border-radius:.53333rem .53333rem 0 0;border:.05333rem solid #ffffff;border-bottom:none;z-index:20}._resjetStudentWrap_8vpsh_1 ._infoWrap_8vpsh_58 ._infoWrapCore_8vpsh_71{background-color:#fff;height:11.81333rem;background:#ffffff;border-radius:.48rem;overflow:hidden;position:relative}._resjetStudentWrap_8vpsh_1 ._infoWrap_8vpsh_58 ._infoWrapCore_8vpsh_71 ._subTitle_8vpsh_79{position:relative;width:7.22667rem;height:.69333rem;margin-top:.42667rem;left:50%;margin-left:-3.6rem}._group_8vpsh_87{overflow:hidden;padding:.37333rem 0 .53333rem}._group_8vpsh_87 ._noArrow_8vpsh_91 .van-field__body{padding-right:.53333rem}._group_8vpsh_87 .van-cell{line-height:1.06667rem}._group_8vpsh_87 .van-field__label{font-size:.42667rem;font-weight:600;color:#714923}._group_8vpsh_87 .van-field__body{height:1.06667rem}._group_8vpsh_87 .van-field__control{font-size:.37333rem}._group_8vpsh_87 input::-webkit-input-placeholder{color:#d8a673}._group_8vpsh_87 .van-cell{padding:.21333rem .4rem}._inputCode_8vpsh_114 .van-field__control{position:relative;top:.08rem;border-right:.04rem solid #d8a673;line-height:.42667rem;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:.26667rem;padding-right:.26667rem}._inputCode_8vpsh_114 .van-field__button{height:100%}._inputCode_8vpsh_114 .van-button--disabled{color:#94acc8}._tips_8vpsh_130{box-sizing:border-box;width:8.53333rem;font-size:.34667rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fd5160;line-height:.90667rem;padding:0 .21333rem;text-align:left;background:#ffebeb;border-radius:.21333rem;margin-top:.26667rem;left:50%;position:relative;margin-left:-4.26667rem}._sendBtn_8vpsh_147{border:none;background-color:transparent;width:2.13333rem;color:#fe2451;font-size:.37333rem;padding:0;height:1.17333rem!important;line-height:1.17333rem}._sendBtn_8vpsh_147:before{display:none}._rejectBtn_8vpsh_160{width:8.08rem;height:1.33333rem;position:relative;left:50%;margin-left:-4.02667rem;margin-top:.64rem}._showWrap_8vpsh_168{width:7.04rem;height:8.69333rem;position:absolute;top:5.65333rem;left:50%;margin-left:-3.52rem;background-color:#fff;z-index:1001;box-shadow:.02667rem .02667rem .24rem rgba(149,145,145,.07);border-radius:.32rem;position:relative}._showWrap_8vpsh_168 ._showWrapTop_8vpsh_181{width:7.04rem;height:3.46667rem;position:relative;top:-.61333rem}._showWrap_8vpsh_168 h2{margin-top:.08rem;height:.66667rem;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;text-align:center;margin-bottom:.29333rem}._showWrap_8vpsh_168 h4{font-size:.4rem;font-weight:500;color:#333;text-align:center;margin-bottom:.29333rem}._showWrap_8vpsh_168 h4 span{color:#fe2451;font-weight:700}._showWrap_8vpsh_168 p{font-size:.37333rem;font-weight:400;color:#777;line-height:.53333rem;text-align:center;margin-bottom:.58667rem}._showWrap_8vpsh_168 ._downApp_8vpsh_216{width:5.33333rem;height:1.06667rem;background:#fe2451;border-radius:1.04rem;font-size:.48rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;text-align:center;line-height:1.06667rem;position:relative;left:50%;margin-left:-2.66667rem}._secondWrap_8vpsh_231{width:7.84rem;background:#ffffff;border-radius:.32rem;padding:.4rem .56rem .56rem}._secondWrap_8vpsh_231 h2{height:.64rem;font-size:.45333rem;font-weight:600;color:#333;line-height:.64rem;margin-bottom:.26667rem;text-align:center}._secondWrap_8vpsh_231 p{font-size:.4rem;font-weight:400;color:#666;line-height:.64rem;text-align:center;margin-bottom:.08rem}._secondWrap_8vpsh_231 p span{color:#fe2451;font-weight:700}._secondWrap_8vpsh_231 ._buttonWrap_8vpsh_258{margin-top:.64rem;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center}._secondWrap_8vpsh_231 ._buttonWrap_8vpsh_258 ._closeBtn_8vpsh_267{width:3.2rem;height:1.06667rem;background:#ffffff;border-radius:.53333rem;border:.02667rem solid #dbdbdb;line-height:1.06667rem;font-size:.37333rem;font-weight:400;color:#333;text-align:center;margin-right:.32rem}._secondWrap_8vpsh_231 ._buttonWrap_8vpsh_258 ._submitBtn_8vpsh_280{width:3.2rem;height:1.06667rem;background:#fe2451;border-radius:.53333rem;line-height:1.06667rem;font-size:.37333rem;font-weight:400;color:#fff;text-align:center}\n",document.head.appendChild(a),System.register(["./index-legacy.e29ebc18.js","./index-legacy.06d9aa13.js","./index-legacy.1e1ec9e6.js","./index-legacy.1c5e6fba.js","./index-legacy.36cf8cfa.js","./index-legacy.f130049a.js","./index-legacy.04d019ba.js","./index-legacy.92fd5464.js","./use-id-legacy.6fce8b0d.js","./utils-legacy.e1f8a966.js"],(function(e){"use strict";var n,r,a,i,s,u,c,l,p,d,h,g,f,m,_,b,v,w;return{setters:[function(e){n=e.d,r=e.O,a=e.Q,i=e.U,s=e.j,u=e.z,c=e.B,l=e.aR,p=e.bE,d=e.F,h=e.T,g=e.w,f=e.u},function(){},function(e){m=e.F},function(e){_=e.C},function(){},function(e){b=e.D},function(e){v=e.F},function(e){w=e.P},function(){},function(){}],execute:function(){var A={resjetStudentWrap:"_resjetStudentWrap_8vpsh_1",bgWrap:"_bgWrap_8vpsh_6",rejectLogo:"_rejectLogo_8vpsh_13",studentText:"_studentText_8vpsh_22",schoolNameWrap:"_schoolNameWrap_8vpsh_31",rejectSchool:"_rejectSchool_8vpsh_46",centerLogo:"_centerLogo_8vpsh_51",infoWrap:"_infoWrap_8vpsh_58",infoWrapCore:"_infoWrapCore_8vpsh_71",subTitle:"_subTitle_8vpsh_79",group:"_group_8vpsh_87",noArrow:"_noArrow_8vpsh_91",inputCode:"_inputCode_8vpsh_114",tips:"_tips_8vpsh_130",sendBtn:"_sendBtn_8vpsh_147",rejectBtn:"_rejectBtn_8vpsh_160",showWrap:"_showWrap_8vpsh_168",showWrapTop:"_showWrapTop_8vpsh_181",downApp:"_downApp_8vpsh_216",secondWrap:"_secondWrap_8vpsh_231",buttonWrap:"_buttonWrap_8vpsh_258",closeBtn:"_closeBtn_8vpsh_267",submitBtn:"_submitBtn_8vpsh_280"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAARRJREFUSEvF1UFqAjEUBuA/GheuPEQdqtdQSu0FBMUrKMho76BYoe0dRvEM7bbuXI8u3NQDiNJVcV4ZFwo2GZM3Kc1+/i8k8/IL/PESuvzPWTf/dRB32YNceK3hhrsPLRAG/juACoCdFPKh2Bh8cJAkYAugcAwl7GVG1jiIFlgFfjsCXk67ZiJaIA4OA/8RwCANkgi4QK4CaREjIEZW014/imhoe1zGABexAnRINifuvfporpoTa0CFCGB923y6cQb8+n2BdckVoJoNylCt3BgrnxKrI+IMnjHACY/vxAjghhsBacKvAmnDE4Fw0uuA6Nn2abichf8rnOXEfyNCFaCdFDn3lXku/e+F13p1X/qcgld98wOin6sZB+h4pAAAAABJRU5ErkJggg==";e("default",n({name:"tenantStudentRejest",setup:function(){var e=r(),n=a({gender:"",name:"",phone:"",subjectId:"",subjectName:"",birthdate:"",code:"",genderName:"",tenantId:e.query.tenantId}),j=a({schoolName:e.query.name||"",id:e.query.tenantId,userSchoolName:"",cityName:"",showArea:!1,checked:!0,success:!1,areaList:{},sendMsg:"获取验证码",imgCodeStatus:!1,subjectList:[],searchStatus:!1,openStatus:!1,dateState:!1,genderState:!1,genderList:[{text:"男",value:"1"},{text:"女",value:"0"}],showSuccess:!1,secondConfirm:!1,minDate:new Date(1980,0,1),maxDate:new Date}),S=function(){var e=o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,console.log(n,"forms"),n.name){e.next=5;break}return h("请输入姓名"),e.abrupt("return");case 5:if(n.gender){e.next=8;break}return h("请选择性别"),e.abrupt("return");case 8:if(n.phone){e.next=11;break}return h("请输入手机号"),e.abrupt("return");case 11:if(n.birthdate){e.next=14;break}return h("请选择出生年月"),e.abrupt("return");case 14:if(n.code){e.next=17;break}return h("请输入验证码"),e.abrupt("return");case 17:if(n.subjectId){e.next=20;break}return h("请选择声部"),e.abrupt("return");case 20:return e.next=22,g.post("/api-tenant/open/student/save",{data:t({},n),hideLoading:!0});case 22:r=e.sent,console.log(r),200==r.code&&(j.showSuccess=!0),5004==r.code&&(j.secondConfirm=!0,j.userSchoolName=r.msg),e.next=30;break;case 28:e.prev=28,e.t0=e.catch(0);case 30:case"end":return e.stop()}}),e,null,[[0,28]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.get("/api-tenant/open/subject/queryPage",{data:{page:1,rows:9999}});case 3:t=e.sent,j.subjectList=t.data.rows.map((function(e){return{text:e.name,value:e.id}}))||[],e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),W=function(e){n.subjectName=e.text,n.subjectId=e.value,j.searchStatus=!1,console.log(e,"confirmSubject")},y=function(e){n.birthdate=f(e).format("YYYY-MM-DD"),j.dateState=!1};i((function(){C()}));var k=function(e){e.value?(n.gender=e.value,n.genderName=e.text):(n.gender="",n.genderName=""),j.genderState=!1},B=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.phone){e.next=3;break}return h("请输入手机号码"),e.abrupt("return");case 3:if(/^1[3456789]\d{9}$/.test(n.phone)){e.next=6;break}return h("手机号码格式不正确"),e.abrupt("return");case 6:return e.next=8,g.post("/api-student/code/sendSmsCode",{requestType:"form",data:{mobile:n.phone,type:"REGISTER"}});case 8:R(),setTimeout((function(){h("验证码已发送")}),100);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){j.sendMsg="60s";var e=60,t=setInterval((function(){e--,j.sendMsg="".concat(e,"s"),e<=0&&(j.sendMsg="获取验证码",clearInterval(t))}),1e3)},N=function(){window.open(location.origin+"/student/#/download"),j.showSuccess=!1},E=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-tenant/open/student/save",{data:t(t({},n),{},{updateTenant:!0}),hideLoading:!0});case 3:j.showSuccess=!0,j.secondConfirm=!1,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return function(){return s(d,null,[s("div",{class:A.videoClass},[s("div",{class:A.resjetStudentWrap},[s("img",{src:"./assets/rejectLogo.6f541221.png",class:A.rejectLogo,alt:""},null),s("img",{src:"./assets/studentText.6a2c2c10.png",class:A.studentText,alt:""},null),s("img",{src:"./assets/bg.eafce322.png",class:A.bgWrap,alt:""},null),s("div",{class:A.schoolNameWrap},[s("img",{src:"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==",class:A.rejectSchool,alt:""},null),s("p",null,[j.schoolName])]),s("img",{class:A.centerLogo,src:"./assets/center.13bda931.png",alt:""},null),s("div",{class:A.infoWrap},[s("div",{class:A.infoWrapCore},[s("img",{src:"./assets/subTitle.fbf07443.png",class:A.subTitle,alt:""},null),s(v,{onSubmit:function(){return S()}},{default:function(){return[s(_,{class:A.group,border:!1},{default:function(){return[s(m,{class:A.noArrow,inputAlign:"right",label:"姓名",placeholder:"请输入姓名",maxlength:14,modelValue:n.name,"onUpdate:modelValue":function(e){return n.name=e}},null),s(m,{readonly:!0,inputAlign:"right",label:"性别",placeholder:"请选择性别",modelValue:n.genderName,"onUpdate:modelValue":function(e){return n.genderName=e},onClick:function(){j.genderState=!0}},{button:function(){return s("img",{style:{display:"block",width:"12px",height:"12px"},src:x},null)}}),s(m,{readonly:!0,inputAlign:"right",label:"出生日期",placeholder:"请选择出生日期",maxlength:20,modelValue:n.birthdate,"onUpdate:modelValue":function(e){return n.birthdate=e},onClick:function(){j.dateState=!0}},{button:function(){return s("img",{style:{display:"block",width:"12px",height:"12px"},src:x},null)}}),s(m,{inputAlign:"right",label:"手机号",class:A.noArrow,maxlength:11,placeholder:"手机号码",modelValue:n.phone,"onUpdate:modelValue":function(e){return n.phone=e}},null),s("div",{class:A.tips},[u("手机号码为酷乐秀机构版登录账号")]),s(m,{class:A.inputCode,inputAlign:"left",label:"验证码",labelWidth:0,modelValue:n.code,"onUpdate:modelValue":function(e){return n.code=e},maxlength:6},{button:function(){return s(c,{disabled:j.sendMsg.includes("s"),class:A.sendBtn,onClick:function(){return B()}},{default:function(){return[j.sendMsg]}})}}),s(m,{border:!1,inputAlign:"right",label:"声部",placeholder:"请选择声部",readonly:!0,modelValue:n.subjectName,"onUpdate:modelValue":function(e){return n.subjectName=e},onClick:function(){return j.searchStatus=!0}},{button:function(){return s("img",{style:{display:"block",width:"12px",height:"12px"},src:x},null)}})]}})]}})]),s("img",{src:"./assets/rejectBtn.42205429.png",onClick:function(){S()},class:A.rejectBtn,alt:""},null)])]),s(l,{show:j.searchStatus,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:function(){return j.searchStatus=!1},onClosed:function(){return j.openStatus=!1}},{default:function(){return[s(w,{columns:j.subjectList,onCancel:function(){j.searchStatus=!1},onConfirm:W},null)]}}),s(l,{show:j.dateState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:function(){return j.dateState=!1},onClosed:function(){return j.dateState=!1}},{default:function(){return[s(b,{"min-date":j.minDate,"max-date":j.maxDate,type:"date",value:n.birthdate,"onUpdate:value":function(e){return n.birthdate=e},onCancel:function(){j.dateState=!1},onConfirm:y},null)]}}),s(l,{show:j.genderState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:function(){return j.genderState=!1},onClosed:function(){return j.genderState=!1}},{default:function(){return[s(w,{columns:j.genderList,onCancel:function(){j.genderState=!1},onConfirm:k},null)]}}),s(p,{show:j.showSuccess,"z-index":1e3},{default:function(){return[s("div",{class:A.showWrap},[s("img",{class:A.showWrapTop,src:"./assets/studentSuccess.639fc4e5.png",alt:""},null),s("h2",null,[u("恭喜您已成功登记为")]),s("h4",null,[j.schoolName,u(" "),s("span",null,[u("【学员】")])," "]),s("p",null,[u("请下载酷乐秀机构版APP进行学习")]),s("div",{class:A.downApp,onClick:N},[u("立即下载")])])]}}),s(l,{show:j.secondConfirm,position:"center",round:!0,onClose:function(){return j.secondConfirm=!1},onClosed:function(){return j.secondConfirm=!1}},{default:function(){return[s("div",{class:A.secondWrap},[s("h2",null,[u("提示")]),s("p",null,[u("当前账号已存在 "),s("span",null,[u("【"),j.userSchoolName,u("】")])," ",u(",是否确认更换到"),s("span",null,[j.schoolName]),u("吗?")]),s("div",{class:A.buttonWrap},[s("div",{class:A.closeBtn,onClick:function(){j.secondConfirm=!1}},[" ",u("取消")]),s("div",{class:A.submitBtn,onClick:E},[u("确定")])])])]}})])])}}}))}}}))}();