1 |
- !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(e,n,t,r,a,u,o){try{var s=e[u](o),i=s.value}catch(c){return void t(c)}s.done?n(i):Promise.resolve(i).then(r,a)}function r(e){return function(){var n=this,r=arguments;return new Promise((function(a,u){var o=e.apply(n,r);function s(e){t(o,a,u,s,i,"next",e)}function i(e){t(o,a,u,s,i,"throw",e)}s(void 0)}))}}System.register(["./index-legacy.5f9666b4.js","./signin-tips-legacy.5e66143d.js","./index-legacy.18bf263a.js","./index-legacy.85e16f70.js","./index-legacy.e96cb8ba.js","./index-legacy.b6ba0003.js","./index-legacy.91f80f2a.js","./index-legacy.1f24a6b5.js","./Picker-legacy.71aa652a.js","./index-legacy.7fb4d035.js","./use-tab-status-legacy.feb57916.js","./index-legacy.8f20f3d1.js","./index-legacy.42a30b51.js"],(function(t){"use strict";var a,u,o,s,i,c,l,d,p,f,v,g,b,h,w,m,x,y,P,k,R,C,I,O,j,E;return{setters:[function(e){a=e.d,u=e.ag,o=e.ah,s=e.r,i=e.R,c=e.$,l=e.o,d=e.m,p=e.f,f=e.br,v=e.bd,g=e.b7,b=e.c,h=e.q,w=e.B,m=e.P,x=e.bi,y=e.bs},function(e){P=e.s,k=e.a},function(e){R=e.O},function(e){C=e.u,I=e.b},function(e){O=e.C},function(e){j=e.F},function(e){E=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){for(var T=[],G=1;G<=40;G++)T.push({text:G+"班",value:G});t("default",a({name:"pre-register",setup:function(){var t=C(1e3,{controls:!0});t.pause();var a=u(),G=o(),S=s({loading:!0,orchestraId:G.query.id,code:null,currentGradeList:[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5},{text:"六年级",value:6},{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}],showPicker:!1,classPicker:!1,nameReg:/^[\u4E00-\u9FA5]+$/,openId:"",id:null,videoBrowseData:null,videoBrowsePoint:null,username:"",currentGrade:"",currentClass:"",intervalFnRef:null,applyStatus:!1,isPageHide:!1,parentConferencesAgenda:""}),A=i(!1),B=i(""),L=["1715022312206573570","1715045889000656897","1715030463675944961","1715034224138985474","1715036209671098370","1715042256419889153","1715013540700561409"],D=function(e){return e?S.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":void 0:"学员姓名必须为中文":"请填写学生真实姓名"},H=function(){var e=r(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!S.applyStatus){e.next=4;break}return l("家长会调查问卷已结束"),e.abrupt("return");case 4:if(!D(S.username)){e.next=7;break}return l(D(S.username)),e.abrupt("return");case 7:if(S.currentGrade){e.next=10;break}return l("请选择年级"),e.abrupt("return");case 10:if(S.currentClass){e.next=13;break}return l("请选择班级"),e.abrupt("return");case 13:return null===(n=S.intervalFnRef)||void 0===n||n.pause(),t.pause(),e.next=17,d.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:S.id,pageBrowseTime:t.counter.value,username:S.username,currentGrade:S.currentGrade,currentClass:S.currentClass?Number(S.currentClass):null}});case 17:a.push({path:"/pre-register-video",query:{saveId:S.id,id:S.orchestraId,openId:S.openId}}),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(0),null===(r=S.intervalFnRef)||void 0===r||r.resume(),t.resume();case 24:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),N=function(e,n){var t="";return n.forEach((function(n){n.value==e&&(t=n.text)})),t},F=function(){var e=r(regeneratorRuntime.mark((function e(){var n,t=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:10,e.prev=1,e.next=4,d.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:S.id,pageBrowseTime:n}});case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(){return e.apply(this,arguments)}}();c(r(regeneratorRuntime.mark((function e(){var n,r,a,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,S.orchestraId||l("信息获取失败,请联系老师"),e.next=4,d.get("/api-student/open/orchestra/detail/"+S.orchestraId);case 4:if(n=e.sent,r=n.data,S.parentConferencesAgenda=r.parentConferencesAgenda,S.code){e.next=9;break}return e.abrupt("return");case 9:if("ORCHESTRA"!==r.orchestraRegisterType||"PRE_REGISTER"===r.status){e.next=13;break}return l("家长会调查问卷已结束"),S.applyStatus=!0,e.abrupt("return");case 13:if("PARENT_CONFERENCES"!==r.orchestraRegisterType||"PARENT_TEACHER_REGISTRATION"===r.status||"DOING"===r.status||"DONE"===r.status){e.next=17;break}return l("家长会调查问卷已结束"),S.applyStatus=!0,e.abrupt("return");case 17:if(!S.orchestraId||-1==L.indexOf(S.orchestraId)){e.next=21;break}return B.value="二维码已过期",A.value=!0,e.abrupt("return");case 21:return e.next=23,d.post("/api-student/open/studentBrowseRecord/add",{data:{orchestraId:S.orchestraId,code:S.code,openId:S.openId}});case 23:a=e.sent,u=a.data,S.currentClass=u.currentClass,S.currentGrade=u.currentGrade,S.openId=u.openId,S.username=u.username,S.videoBrowseData=u.videoBrowseData,S.videoBrowsePoint=u.videoBrowsePoint,S.id=u.id,sessionStorage.setItem("active-open-id",u.openId),t.resume(),S.intervalFnRef=I((function(){t.counter.value=0,t.resume(),F()}),1e4),e.next=39;break;case 37:e.prev=37,e.t0=e.catch(0);case 39:case"end":return e.stop()}}),e,null,[[0,37]])}))));var V=function(){var e=r(regeneratorRuntime.mark((function e(n){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/api-school/open/paramConfig/wechatAppId");case 3:t=e.sent,(r=t.data)&&(x(),y(r,n)),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(n){return e.apply(this,arguments)}}();if(p().weixin){var q=sessionStorage.getItem("active-open-id");S.openId=q;var U=f();if(!U){var _=window.location.origin+window.location.pathname+"#"+G.path+"?"+v.stringify(function(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},G.query));return V(_),""}S.code=U}var M=function(){console.log(S.isPageHide,"showInfo"),S.isPageHide&&window.location.reload()};window.addEventListener("pageshow",M);var $=function(){console.log(S.isPageHide,"showInfo"),S.isPageHide=!0};return window.addEventListener("pagehide",$),g((function(){window.removeEventListener("pageshow",M),window.removeEventListener("pagehide",$)})),function(){return b("div",{class:P["per-register-active"]},[b("div",{class:P.flowPath},[b("i",{class:P.flowPathTitle},null),b("div",{class:P.flowPathContent,innerHTML:S.parentConferencesAgenda},null)]),b("div",{class:P.signin},[b("div",{class:P.tips},[b("img",{src:k,class:P.signinTips},null),b("p",null,[h("请先进行"),b("span",null,[h("签到")]),h(",再观看"),b("span",null,[h("管乐团家长会视频")])])]),b(O,{class:P.cellGroup,border:!1},{default:function(){return[b(j,{label:"学生姓名",labelAlign:"top",placeholder:"请输入学生姓名",autocomplete:"off",modelValue:S.username,"onUpdate:modelValue":function(e){return S.username=e}},null),b(j,{label:"年级",labelAlign:"top",placeholder:"请选择年级",isLink:!0,readonly:!0,modelValue:N(S.currentGrade,S.currentGradeList),clickable:!1,onClick:function(){return S.showPicker=!0}},null),b(j,{label:"班级",labelAlign:"top",placeholder:"请选择班级",isLink:!0,readonly:!0,modelValue:N(S.currentClass,T),clickable:!1,onClick:function(){return S.classPicker=!0}},null),b(w,{class:P.submitBtn,onClick:H},null)]}})]),b(R,null,null),b(m,{show:S.showPicker,"onUpdate:show":function(e){return S.showPicker=e},position:"bottom",round:!0},{default:function(){return[b(E,{columns:S.currentGradeList,onCancel:function(){return S.showPicker=!1},onConfirm:function(e){var n=e.selectedValues;S.currentGrade=n[0],S.showPicker=!1}},null)]}}),b(m,{show:S.classPicker,"onUpdate:show":function(e){return S.classPicker=e},position:"bottom",round:!0},{default:function(){return[b(E,{columns:T,onCancel:function(){return S.classPicker=!1},onConfirm:function(e){var n=e.selectedValues;S.currentClass=n[0],S.classPicker=!1}},null)]}}),b(m,{show:A.value,"onUpdate:show":function(e){return A.value=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:P.wxPopupDialog},{default:function(){return[b("div",{class:P.popupContainer},[b("p",{class:P.title},[h("温馨提示")]),b("p",{class:P.popupTips,innerHTML:B.value},null)])]}})])}}}))}}}))}();
|