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,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).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 s(e){r(a,o,i,s,c,"next",e)}function c(e){r(a,o,i,s,c,"throw",e)}s(void 0)}))}}var i=document.createElement("style");i.innerHTML="._resjetStudentWrap_1qk3x_1{width:100%;height:23.76rem;position:relative}._resjetStudentWrap_1qk3x_1 ._bgWrap_1qk3x_6{position:absolute;top:0;left:0;width:10rem;height:23.76rem}._resjetStudentWrap_1qk3x_1 ._rejectLogo_1qk3x_13{width:4.34667rem;height:.58667rem;position:absolute;left:50%;margin-left:-2.18667rem;z-index:100;top:.72rem}._resjetStudentWrap_1qk3x_1 ._studentText_1qk3x_22{width:3.54667rem;height:.85333rem;position:absolute;left:50%;margin-left:-1.81333rem;top:1.84rem;z-index:100}._resjetStudentWrap_1qk3x_1 ._schoolNameWrap_1qk3x_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_1qk3x_1 ._schoolNameWrap_1qk3x_31 ._rejectSchool_1qk3x_46{width:.45333rem;height:.45333rem;margin-right:.21333rem}._resjetStudentWrap_1qk3x_1 ._centerLogo_1qk3x_51{width:10rem;height:9.44rem;z-index:10;position:absolute;top:3.78667rem}._resjetStudentWrap_1qk3x_1 ._infoWrap_1qk3x_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_1qk3x_1 ._infoWrap_1qk3x_58 ._infoWrapCore_1qk3x_71{background-color:#fff;height:11.81333rem;background:#ffffff;border-radius:.48rem;overflow:hidden;position:relative}._resjetStudentWrap_1qk3x_1 ._infoWrap_1qk3x_58 ._infoWrapCore_1qk3x_71 ._subTitle_1qk3x_79{position:relative;width:7.22667rem;height:.69333rem;margin-top:.42667rem;left:50%;margin-left:-3.6rem}._group_1qk3x_87{overflow:hidden;padding:.37333rem 0 .53333rem}._group_1qk3x_87 ._noArrow_1qk3x_91 .van-field__body{padding-right:.53333rem}._group_1qk3x_87 .van-cell{line-height:1.06667rem}._group_1qk3x_87 .van-field__label{font-size:.42667rem;font-weight:600;color:#714923}._group_1qk3x_87 .van-field__body{height:1.06667rem}._group_1qk3x_87 .van-field__control{font-size:.37333rem}._group_1qk3x_87 input::-webkit-input-placeholder{color:#d8a673}._group_1qk3x_87 .van-cell{padding:.21333rem .4rem}._inputCode_1qk3x_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_1qk3x_114 .van-field__button{height:100%}._inputCode_1qk3x_114 .van-button--disabled{color:#94acc8}._tips_1qk3x_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_1qk3x_147{border:none;background-color:transparent;width:1.86667rem;color:#fe2451;font-size:.37333rem;padding:0;height:1.17333rem!important;line-height:1.17333rem}._sendBtn_1qk3x_147:before{display:none}._rejectBtn_1qk3x_160{width:8.08rem;height:1.33333rem;position:relative;left:50%;margin-left:-4.02667rem;margin-top:.64rem}._showWrap_1qk3x_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_1qk3x_168 ._showWrapTop_1qk3x_181{width:7.04rem;height:3.46667rem;position:relative;top:-.61333rem}._showWrap_1qk3x_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_1qk3x_168 h4{font-size:.4rem;font-weight:500;color:#333;text-align:center;margin-bottom:.29333rem}._showWrap_1qk3x_168 h4 span{color:#fe2451;font-weight:700}._showWrap_1qk3x_168 p{font-size:.37333rem;font-weight:400;color:#777;line-height:.53333rem;text-align:center;margin-bottom:.58667rem}._showWrap_1qk3x_168 ._downApp_1qk3x_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_1qk3x_231{width:7.84rem;height:4.85333rem;background:#ffffff;border-radius:.32rem;padding:.4rem .56rem .56rem}._secondWrap_1qk3x_231 h2{height:.64rem;font-size:.45333rem;font-weight:600;color:#333;line-height:.64rem;margin-bottom:.26667rem;text-align:center}._secondWrap_1qk3x_231 p{font-size:.4rem;font-weight:400;color:#666;line-height:.64rem;text-align:center;margin-bottom:.08rem}._secondWrap_1qk3x_231 p span{color:#fe2451;font-weight:700}._secondWrap_1qk3x_231 ._buttonWrap_1qk3x_259{margin-top:.64rem;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center}._secondWrap_1qk3x_231 ._buttonWrap_1qk3x_259 ._closeBtn_1qk3x_268{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_1qk3x_231 ._buttonWrap_1qk3x_259 ._submitBtn_1qk3x_281{width:3.2rem;height:1.06667rem;background:#fe2451;border-radius:.53333rem;border:.02667rem solid #dbdbdb;line-height:1.06667rem;font-size:.37333rem;font-weight:400;color:#fff;text-align:center}\n",document.head.appendChild(i),System.register(["./index-legacy.fba2875c.js","./index-legacy.e7460ea1.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./index-legacy.f231f1c5.js","./index-legacy.9960fd48.js","./index-legacy.e8375c6b.js","./index-legacy.21d121b2.js","./index-legacy.70851652.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./use-id-legacy.db87b112.js","./utils-legacy.e8546185.js"],(function(e){"use strict";var n,r,i,a,s,c,l,u,d,g,f,p,m,_,h,b,x,k,w;return{setters:[function(e){n=e.d,r=e.O,i=e.Q,a=e.U,s=e.j,c=e.z,l=e.B,u=e.aR,d=e.bE,g=e.F,f=e.T,p=e.w,m=e.u},function(e){_=e.C},function(){},function(e){h=e.F},function(e){b=e.C},function(){},function(e){x=e.D},function(e){k=e.F},function(e){w=e.P},function(){},function(){},function(){},function(){}],execute:function(){var A={resjetStudentWrap:"_resjetStudentWrap_1qk3x_1",bgWrap:"_bgWrap_1qk3x_6",rejectLogo:"_rejectLogo_1qk3x_13",studentText:"_studentText_1qk3x_22",schoolNameWrap:"_schoolNameWrap_1qk3x_31",rejectSchool:"_rejectSchool_1qk3x_46",centerLogo:"_centerLogo_1qk3x_51",infoWrap:"_infoWrap_1qk3x_58",infoWrapCore:"_infoWrapCore_1qk3x_71",subTitle:"_subTitle_1qk3x_79",group:"_group_1qk3x_87",noArrow:"_noArrow_1qk3x_91",inputCode:"_inputCode_1qk3x_114",tips:"_tips_1qk3x_130",sendBtn:"_sendBtn_1qk3x_147",rejectBtn:"_rejectBtn_1qk3x_160",showWrap:"_showWrap_1qk3x_168",showWrapTop:"_showWrapTop_1qk3x_181",downApp:"_downApp_1qk3x_216",secondWrap:"_secondWrap_1qk3x_231",buttonWrap:"_buttonWrap_1qk3x_259",closeBtn:"_closeBtn_1qk3x_268",submitBtn:"_submitBtn_1qk3x_281"},q="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=i({gender:"",name:"",phone:"",subjectId:"",subjectName:"",birthdate:"",code:"",genderName:"",tenantId:e.query.tenantId}),v=i({schoolName:e.query.name||"",id:e.query.tenantId,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}),j=function(){var e=o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(n,"forms"),n.name||f("请输入姓名"),n.gender||f("请选择性别"),n.phone||f("请输入手机号"),n.birthdate||f("请选择出生年月"),n.code||f("请输入验证码"),n.subjectId||f("请选择声部"),e.next=9,p.post("/api-tenant/open/student/save",{data:t({},n)});case 9:r=e.sent,console.log(r),200==r.code&&(v.showSuccess=!0),5004==r.code&&(v.secondConfirm=!0);case 13:case"end":return e.stop()}}),e)})));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,p.get("/api-tenant/open/subject/queryPage",{data:{page:1,rows:9999}});case 3:t=e.sent,v.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)}}(),S=function(e){n.subjectName=e.text,n.subjectId=e.value,v.searchStatus=!1,console.log(e,"confirmSubject")},W=function(e){n.birthdate=m(e).format("YYYY-MM-DD"),v.dateState=!1};a((function(){C()}));var y=function(e){e.value?(n.gender=e.value,n.genderName=e.text):(n.gender="",n.genderName=""),v.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 f("请输入手机号码"),e.abrupt("return");case 3:if(/^1[3456789]\d{9}$/.test(n.phone)){e.next=6;break}return f("手机号码格式不正确"),e.abrupt("return");case 6:return e.next=8,p.post("/api-student/code/sendSmsCode",{requestType:"form",data:{mobile:n.phone,type:"LOGIN"}});case 8:R(),setTimeout((function(){f("验证码已发送")}),100);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){v.sendMsg="60s";var e=60,t=setInterval((function(){e--,v.sendMsg="".concat(e,"s"),e<=0&&(v.sendMsg="获取验证码",clearInterval(t))}),1e3)},N=function(){window.open(location.origin+"/student/#/download"),v.showSuccess=!1},z=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,p.post("/api-tenant/open/student/save",{data:t(t({},n),{},{updateTenant:!0})});case 3:e.sent,v.showSuccess=!0,v.secondConfirm=!1,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();return function(){return s(g,null,[s("div",{class:A.videoClass},[s(_,{class:A.classHeader,border:!1,isFixed:!1,background:"#fff"},null),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,[v.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(k,{onSubmit:function(){return j()}},{default:function(){return[s(b,{class:A.group,border:!1},{default:function(){return[s(h,{class:A.noArrow,inputAlign:"right",label:"姓名",placeholder:"请输入姓名",maxlength:20,modelValue:n.name,"onUpdate:modelValue":function(e){return n.name=e}},null),s(h,{readonly:!0,inputAlign:"right",label:"性别",placeholder:"请选择性别",modelValue:n.genderName,"onUpdate:modelValue":function(e){return n.genderName=e},onClick:function(){v.genderState=!0}},{button:function(){return s("img",{style:{display:"block",width:"12px",height:"12px"},src:q},null)}}),s(h,{readonly:!0,inputAlign:"right",label:"出生日期",placeholder:"请选择出生日期",maxlength:20,modelValue:n.birthdate,"onUpdate:modelValue":function(e){return n.birthdate=e},onClick:function(){v.dateState=!0}},{button:function(){return s("img",{style:{display:"block",width:"12px",height:"12px"},src:q},null)}}),s(h,{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},[c("手机号码为酷乐秀机构版登录账号")]),s(h,{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(l,{disabled:v.sendMsg.includes("s"),class:A.sendBtn,onClick:function(){return B()}},{default:function(){return[v.sendMsg]}})}}),s(h,{border:!1,inputAlign:"right",label:"声部",placeholder:"请选择声部",readonly:!0,modelValue:n.subjectName,"onUpdate:modelValue":function(e){return n.subjectName=e},onClick:function(){return v.searchStatus=!0}},{button:function(){return s("img",{style:{display:"block",width:"12px",height:"12px"},src:q},null)}})]}})]}})]),s("img",{src:"./assets/rejectBtn.42205429.png",onClick:function(){j()},class:A.rejectBtn,alt:""},null)])]),s(u,{show:v.searchStatus,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:function(){return v.searchStatus=!1},onClosed:function(){return v.openStatus=!1}},{default:function(){return[s(w,{columns:v.subjectList,onCancel:function(){v.searchStatus=!1},onConfirm:S},null)]}}),s(u,{show:v.dateState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:function(){return v.dateState=!1},onClosed:function(){return v.dateState=!1}},{default:function(){return[s(x,{type:"date",value:n.birthdate,"onUpdate:value":function(e){return n.birthdate=e},onCancel:function(){v.dateState=!1},onConfirm:W},null)]}}),s(u,{show:v.genderState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:function(){return v.genderState=!1},onClosed:function(){return v.genderState=!1}},{default:function(){return[s(w,{columns:v.genderList,onCancel:function(){v.genderState=!1},onConfirm:y},null)]}}),s(d,{show:v.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,[c("恭喜您已成功登记为")]),s("h4",null,[v.schoolName,c(" "),s("span",null,[c("【学员】")]),c(" ")]),s("p",null,[c("请下载酷乐秀机构版APP进行学习")]),s("div",{class:A.downApp,onClick:N},[c("立即下载")])])]}}),s(u,{show:v.secondConfirm,position:"center",round:!0,onClose:function(){return v.secondConfirm=!1},onClosed:function(){return v.secondConfirm=!1}},{default:function(){return[s("div",{class:A.secondWrap},[s("h2",null,[c("提示")]),s("p",null,[c("当前账号已存在 "),s("span",null,[c("【机构名称】")]),c(" ,是否")]),s("p",null,[c("确认更换到 "),s("span",null,[c("【机构名称】")]),c("吗? ")]),s("div",{class:A.buttonWrap},[s("div",{class:A.closeBtn,onClick:function(){v.secondConfirm=!1}},[c(" 取消")]),s("div",{class:A.submitBtn,onClick:z},[c("确定")])])])]}})])])}}}))}}}))}();
|