1 |
- !function(){const e=["extra"];function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function a(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,l,"next",e)}function l(e){a(i,n,o,s,l,"throw",e)}s(void 0)}))}}System.register(["./index-legacy-7aaf3ce7.js","./index-legacy-9d6287f3.js","./index-legacy-b1a1b2fb.js","./student-register-store-legacy-675e102f.js","./icon-gift-legacy-ce1b66cd.js","./index-legacy-90c7e011.js","./index-legacy-13764b00.js","./index-legacy-3df53755.js","./index-legacy-7a66f931.js","./index-legacy-2c305999.js","./index-legacy-491cf438.js","./index-legacy-fbf6af50.js","./index-legacy-fa974de3.js","./index-legacy-3cbcf632.js","./index-legacy-665a9989.js","./Checker-legacy-02060853.js"],(function(t,n){"use strict";var a,s,l,u,d,c,m,g,p,f,h,_,y,b,x,w,j,v,T,S,q,F,A,C,E,D,N,V;return{setters:[e=>{a=e.d,s=e.P,l=e.q,u=e.r,d=e.e,c=e.x,m=e.y,g=e.a,p=e.A,f=e.C,h=e.R,_=e.z,y=e.M,b=e.N,x=e.D,w=e.S},e=>{j=e.C,v=e.M},e=>{T=e.M},e=>{S=e.u},e=>{q=e.i},e=>{F=e.M},e=>{A=e.F},e=>{C=e.F},e=>{E=e.R,D=e.a},e=>{N=e.T},e=>{V=e.P},null,null,null,null,null],execute:function(){var O=document.createElement("style");O.textContent='._registerModal_1esqj_1{background:linear-gradient(180deg,#D0EFFD 0%,#DBF4FF 100%);overflow-x:hidden;overflow-y:scroll;min-height:100vh}._headBg_1esqj_7{position:absolute;left:0;top:0;width:100%;height:5.2rem}._memberNumer_1esqj_14{margin:.32rem .32rem 0;background:linear-gradient(90deg,#FF8633 0%,#FFB047 100%);border-radius:.26667rem;padding:.32rem 0 .32rem .42667rem;display:flex;align-items:center;font-size:.37333rem;color:#fff;font-weight:700}._memberNumer_1esqj_14 ._iconGift_1esqj_25{width:.53333rem;height:.53333rem;margin-right:.16rem}._infoTitle_1esqj_30{width:8.4rem;height:.82667rem;display:block;margin:.37333rem auto .26667rem}._registerForm_1esqj_36{background:#FFFFFF;border-radius:.42667rem;margin:2.18667rem .37333rem 0;overflow:hidden}._registerForm_1esqj_36 ._tips_1esqj_42{display:inline-block;padding-left:.13333rem;padding-top:.10667rem;font-size:.32rem;font-weight:400;color:#666;line-height:.45333rem}._registerForm_1esqj_36 .van-cell{padding:.48rem .37333rem}._registerForm_1esqj_36 .van-cell:after{border-bottom:.02667rem solid #F2F2F2}._registerForm_1esqj_36 .van-field__label{width:-moz-fit-content;width:fit-content;font-size:.42667rem;color:#666;line-height:.58667rem;margin-bottom:0}._registerForm_1esqj_36 .van-field__control{font-size:.42667rem}._submitBtn_1esqj_67{margin:.66667rem;width:calc(100% - 1.33333rem);height:1.17333rem;border-radius:1.06667rem;font-size:.48rem;font-weight:600;color:#fff!important;line-height:.66667rem}._radioSection_1esqj_77{position:relative;min-width:.85333rem;justify-content:center;width:1.38667rem;height:.64rem;background:linear-gradient(135deg,#31C7FF 0%,#007AFE 100%);border-radius:.16rem;margin-left:.32rem}._radioItem_1esqj_87{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_1esqj_77+._radioSection_1esqj_77{margin-left:.32rem}._giftTips_1esqj_98{background:#E8F8FF;border-radius:.21333rem;display:flex;align-items:center;font-size:.34667rem;font-weight:500;color:#2b85ff;margin:.37333rem;padding:.16rem .10667rem .16rem .26667rem}._giftTips_1esqj_98>img{width:.48rem;height:.48rem;margin-right:.16rem}._giftTips_1esqj_98 i{font-style:normal;font-size:.4rem;color:#f62c2c;display:inline-block;margin:0 .08rem}._agreeColumn_1esqj_121{margin:.42667rem .37333rem;display:flex;align-items:center}._agreeColumn_1esqj_121>img{width:.37333rem;height:.37333rem;margin-right:.16rem}._agreeColumn_1esqj_121>p{font-size:.34667rem;color:#3c3c3c}._agreeColumn_1esqj_121>p i{font-style:normal;color:#247ffa;display:inline-block}._username_1esqj_140{padding-bottom:.21333rem!important}._username_1esqj_140 .van-cell:after{border-bottom:.02667rem solid transparent!important}._username_1esqj_140 .van-field__label{display:flex;align-items:center;width:4.53333rem}._fieldTipsGroup_1esqj_151{padding:0 .37333rem .24rem;background:#fff;position:relative}._fieldTipsGroup_1esqj_151 :before{content:"";position:absolute;left:.37333rem;bottom:0;width:calc(100vw - 1.49333rem);height:.02667rem;background:#f2f2f2;transform:scaleY(.5)}._fieldTips_1esqj_151{font-size:.34667rem;color:#ec763b;line-height:.48rem;background:#FFF8EB;border-radius:.21333rem;padding:.10667rem .26667rem}._codeText_1esqj_174{color:#1189ff;font-size:.37333rem}._countDown_1esqj_178{min-width:2.13333rem;text-align:center;font-size:.37333rem;color:#a0d0ff}\n',document.head.appendChild(O);const R={registerModal:"_registerModal_1esqj_1",headBg:"_headBg_1esqj_7",memberNumer:"_memberNumer_1esqj_14",iconGift:"_iconGift_1esqj_25",infoTitle:"_infoTitle_1esqj_30",registerForm:"_registerForm_1esqj_36",tips:"_tips_1esqj_42",submitBtn:"_submitBtn_1esqj_67",radioSection:"_radioSection_1esqj_77",radioItem:"_radioItem_1esqj_87",giftTips:"_giftTips_1esqj_98",agreeColumn:"_agreeColumn_1esqj_121",username:"_username_1esqj_140",fieldTipsGroup:"_fieldTipsGroup_1esqj_151",fieldTips:"_fieldTips_1esqj_151",codeText:"_codeText_1esqj_174",countDown:"_countDown_1esqj_178"},Y=""+new URL("register-bg-f7f91121.png",n.meta.url).href,k=[];for(let e=1;e<=40;e++)k.push({text:e+"班",value:e});t("default",a({name:"register-new",emits:["close","submit"],setup(t,{emit:n}){const a=s(),O=l();S().setShoolId(a.query.sId);const z=u(),B=d((()=>{let e=[];const t=[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],r=[{text:"六年级",value:6}],n=[{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}];return"FIVE_YEAR_SYSTEM"===U.gradeYear?e.push([...t]):"SIX_YEAR_SYSTEM"===U.gradeYear?e.push([...t,...r]):"THREE_YEAR_SYSTEM"===U.gradeYear?e.push([...n]):"FORE_YEAR_SYSTEM"===U.gradeYear?e.push([...r,...n]):e.push([...t,...r,...n]),e})),U=c({countDownStatus:!0,countDownTime:12e4,modelValue:!1,imgCodeStatus:!1,gradeNumText:"",currentClassText:"",gradeStatus:!1,classStatus:!1,loading:!1,schoolId:a.query.sId,gradeYear:null,schoolType:null,giftVipDay:null,showTips:!1,showButton:!1,showMessage:"请使用微信打开"});u(!1);const M=c({autoRegister:!0,client_id:"cooleshow-student",client_secret:"cooleshow-student",extra:{nickname:"",currentGradeNum:"",currentClass:"",gender:1,registerType:"",giftVipDay:0,clientType:"TEACHER"},grant_type:"password",loginType:"SMS",password:"",username:""}),G=()=>{U.countDownStatus=!1,_((()=>{z.value.start()}))},P=()=>{if(!y(M.username))return b("请输入正确的手机号码");U.imgCodeStatus=!0},I=function(){var e=i((function*(){if(6===M.password.length&&y(M.username))try{const{data:e}=yield x.get(`/edu-app/open/student/studentInfo?mobile=${M.username}&code=${M.password}&type=REGISTER`);if(e){M.extra.nickname||(M.extra.nickname=e.nickname),M.extra.currentGradeNum||(M.extra.currentGradeNum=e.currentGradeNum),M.extra.currentClass||(M.extra.currentClass=e.currentClass),M.extra.gender=M.extra.gender!==e.gender?e.gender:M.extra.gender,k.forEach((t=>{t.value===e.currentClass&&(U.currentClassText=t.text)}));const t=B.value[0]||[];null==t||t.forEach((t=>{t.value===e.currentGradeNum&&(U.gradeNumText=t.text)}))}}catch(e){}}));return function(){return e.apply(this,arguments)}}(),Q=d((()=>!!y(M.username))),J=()=>{U.countDownStatus=!0,z.value.reset()},K=function(){var t=i((function*(){try{if(H())return;U.loading=!0,yield x.get("/edu-app/open/student/schoolQuery",{params:{schoolId:U.schoolId,mobile:M.username}});const{extra:t}=M,n=o(M,e),a=yield x.post("/edu-app/userlogin",{hideLoading:!1,requestType:"form",data:r(r({},n),{},{extra:JSON.stringify(r(r({},t),{},{schoolId:U.schoolId}))})});5435===a.code||5436===a.code?(U.showTips=!0,U.showMessage="报名信息更新,请刷新后重新提交",U.showButton=!0):setTimeout((()=>{b("报名成功"),O.push("/download")}),100)}catch(t){}finally{U.loading=!1}}));return function(){return t.apply(this,arguments)}}(),H=()=>y(M.username)?M.password?M.extra.nickname?M.extra.currentGradeNum?!M.extra.currentClass&&(b("请选择所在班级"),!0):(b("请选择所在年级"),!0):(b("请输入学生姓名"),!0):(b("请输入验证码"),!0):(b("请输入正确的手机号码"),!0),Z=function(){var e=i((function*(){try{const{data:e}=yield x.get("/edu-app/open/school/detail",{params:{id:U.schoolId},noAuthorization:!0});U.giftVipDay=e.giftVipDay,U.schoolType=e.schoolType,U.gradeYear=e.gradeYear,M.extra.giftVipDay=e.giftVipDay,M.extra.registerType=e.registerType,w().weixin?0===e.status&&(U.showTips=!0,U.showMessage="二维码已经失效,详情请咨询学校老师",U.showButton=!1):U.showTips=!0}catch(e){}}));return function(){return e.apply(this,arguments)}}();return m((()=>{Z()})),()=>{return g("div",{class:R.registerModal},[U.giftVipDay?g("div",{class:R.memberNumer},[g("img",{src:q,class:R.iconGift},null),g("p",null,[p("现在报名立即赠送乐器AI学练工具有效期")," ",g("span",null,[U.giftVipDay]),p(" 天")])]):"",g("img",{class:R.headBg,src:Y},null),g(A,{labelAlign:"top",class:R.registerForm},{default:()=>[g(C,{clearable:!1,label:"联系方式",placeholder:"请输入手机号码",type:"tel",autocomplete:"off",class:R.username,modelValue:M.username,"onUpdate:modelValue":e=>M.username=e,required:!0,"input-align":"right",maxlength:11},{label:()=>g("div",null,[p("联系方式"),g("p",{class:R.tips},[p("(直接监护人)")])])}),g("div",{class:[R.fieldTipsGroup]},[g("div",{class:[R.fieldTips]},[p("手机号是音乐数字课堂的唯一登录账户")])]),g(C,{center:!0,clearable:!1,label:"验证码",placeholder:"请输入验证码",autocomplete:"off",type:"number",modelValue:M.password,"onUpdate:modelValue":[e=>M.password=e,e=>{I()}],required:!0,"input-align":"right",maxlength:6},{button:()=>U.countDownStatus?g("span",{class:[R.codeText,Q.value?"":R.codeTextDisabled],onClick:P},[p("获取验证码")]):g(j,{ref:e=>z.value=e,"auto-start":!1,class:R.countDown,time:U.countDownTime,onFinish:J,format:"ss秒后重试"},null)}),g(C,{clearable:!1,label:"学生姓名",placeholder:"请输入学生姓名",autocomplete:"off",maxlength:14,modelValue:M.extra.nickname,"onUpdate:modelValue":e=>M.extra.nickname=e,required:!0,"input-align":"right"},null),g(C,{clearable:!1,label:"学生性别",placeholder:"请选择性别",autocomplete:"off",required:!0,"input-align":"right"},{input:()=>g(E,{"checked-color":"#ffcb75",modelValue:M.extra.gender,"onUpdate:modelValue":e=>M.extra.gender=e,direction:"horizontal"},{default:()=>[g(N,{size:"large",type:"primary",color:1!==M.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:1!==M.extra.gender?"#626264":"#fff",class:R.radioSection,round:!0},{default:()=>[g(D,{class:R.radioItem,name:1},null),p("男")]}),g(N,{size:"large",type:"primary",color:0!==M.extra.gender?"#F5F6FA":"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",textColor:0!==M.extra.gender?"#626264":"#fff",class:R.radioSection,round:!0},{default:()=>[g(D,{class:R.radioItem,name:0},null),p("女")]})]})}),g(C,{clearable:!1,label:"所在年级",placeholder:"请选择年级",isLink:!0,readonly:!0,clickable:!1,modelValue:U.gradeNumText,onClick:()=>U.gradeStatus=!0,required:!0,"input-align":"right"},null),g(C,{clearable:!1,label:"所在班级",placeholder:"请选择班级",isLink:!0,readonly:!0,clickable:!1,modelValue:U.currentClassText,onClick:()=>U.classStatus=!0,required:!0,"input-align":"right"},null),"GIFT_VIP_DAY"===M.extra.registerType&&U.giftVipDay&&Number(U.giftVipDay)>0?g("div",{class:R.giftTips},[g("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABndJREFUWEetmFtsFHUUxr9vKYoKEQsKUm0QUYqSJhrxwQtGJWpsJGDkooYYUJGbF6IPoj60mhjNahQRRFRQVBRQFKyXKoYEgRdUvJBIDCoUIbUUfDCxVTrn0//M7O7M7swsJjZttrvz35nfnPP9v3POEP/xZ1SbzoJwLQyXARgtoV6GAXLnEf6Q0C7hBzNsVQ3a9k3gL//lEjymxWvVZ/TJmCxgvoRLZCLcr+Qg4L+Ef8X35s5M9/F2Cs/vFdZhCr1q16sKNHq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vL+EB5Nkrp40Ge/b6+lnRBYspKNW3S/luygeRSxipAi728iQ/E9BOta8BOjnhPr0iaGRbHoMcp5DQEIpgN9IpazaUMbOm8Mz1CJy/28nARCiGcgcYaOHAFh6/XbCowxgJMuWPLOOng9IwIvRwAiWzpygJa5OWlMGVhrx3rPJ0xnvGB6vr0qB1Azj9YTu2DZgMNXh5oyO2yrrsyIvSMlzcEEYrWtLDfNvRFvV9c69dpC0yXp9YyVAfyd5nY0jUnHWjA015eKNNQoS8SvuhemBsXAK11xU/rkpp1v5NiFaAXg5S5CB05BqByjbrMUJzc/RDfCRo0iWeuwXeSxgQtSHzModPQjHQN1S5TKxwQs4FOynt5uJSVzXQQdvUsZKPrHostbN1qXUVgk2tDKiyAvOe327g4zYdql5Y0dGReesr65701EqfEzu9u33h1z8PcXGphwyvVrdYSeZqboKXfaXzSEzr9pV7Y/hRHH90HoVHgBggb/J4oOjR7/l4ZA+BemfpEgUgu7V7IeYWbjY9BK9Xv7xo/SpeWSklkAq3Sz8S+EzZwMZ8pewbgusSevzEezaUptmJQrHtNg0zYWhwUfY2FZlnaESnjdMToErQY1w5/+Iu4HA/xcFQKiaO0g+r1tDF40hEXeNrYHD6OKZlrSjSD+Qfbe8gJ5TAVGoqSDl+pfn96eFrSHLmnBJE7TmzmojUpmpooGGg0W9Z9NHd/NE1VIxRdMOglXQVPiySMSfOp2GiTUAvDG9gF8Z7CbkrbsVWfDxV8qnYZbpRwLwLBB2UmOqUklQPRIGwDsKj7Qax3PpPVCmemLO2LJ7ygun5HMcGEiwRdIONQmU4JR5nfIXVI3AnDl+rFxu5HeKAaRPT4PxS8DFqftuYQAAAAAElFTkSuQmCC"},null),g("span",null,[p("注册成功即可获得乐器AI学练工具"),g("i",null,[U.giftVipDay]),p("天有效期")])]):null]}),g(F,{position:"bottom"},{default:()=>[g(f,{type:"primary",class:R.submitBtn,color:"linear-gradient( 135deg, #31C7FF 0%, #007AFE 100%)",block:!0,onClick:K,disabled:U.loading,loading:U.loading},{default:()=>[p("确认")]})]}),U.imgCodeStatus?g(T,{value:U.imgCodeStatus,"onUpdate:value":e=>U.imgCodeStatus=e,phone:M.username,type:"REGISTER",onClose:()=>{U.imgCodeStatus=!1},onSendCode:G},null):null,g(h,{show:U.gradeStatus,"onUpdate:show":e=>U.gradeStatus=e,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:()=>[g(V,{showToolbar:!0,columns:B.value,onCancel:()=>U.gradeStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];M.extra.currentGradeNum=t.value,U.gradeNumText=t.text,U.gradeStatus=!1}},null)]}),g(h,{show:U.classStatus,"onUpdate:show":e=>U.classStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[g(V,{showToolbar:!0,columns:k,onCancel:()=>U.classStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];M.extra.currentClass=t.value,U.currentClassText=t.text,U.classStatus=!1}},null)]}),g(v,{show:U.showTips,"onUpdate:show":e=>U.showTips=e,message:U.showMessage,showButton:U.showButton,buttonText:"刷新",onConfirm:(e=i((function*(){U.showTips=!1,yield Z(),M.password="",window.scrollTo({top:0,behavior:"smooth"})})),function(){return e.apply(this,arguments)})},null)]);var e}}}))}}}))}();
|