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,o,s){try{var u=e[o](s),i=u.value}catch(c){return void t(c)}u.done?n(i):Promise.resolve(i).then(r,a)}function r(e){return function(){var n=this,r=arguments;return new Promise((function(a,o){var s=e.apply(n,r);function u(e){t(s,a,o,u,i,"next",e)}function i(e){t(s,a,o,u,i,"throw",e)}u(void 0)}))}}var a=document.createElement("style");a.innerHTML='._wxPopupDialog_1sfd3_1{overflow:initial}._wxPopupDialog_1sfd3_1:before{position:absolute;content:" ";top:-1.94667rem;left:50%;margin-left:-2.29333rem;display:inline-block;background:url(./assets/wx-no-top.562db7f2.png) no-repeat top center;background-size:contain;width:4.58667rem;height:4.10667rem}._popupContainer_1sfd3_16{background:url(./assets/wx-no-bg.f12a4a6d.png) no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden}._popupContainer_1sfd3_16 ._title1_1sfd3_22{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_1sfd3_16 ._popupTips_1sfd3_29{padding-top:.32rem;padding-bottom:1.25333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}\n',document.head.appendChild(a),System.register(["./index-legacy.90c82f08.js","./signin-tips-legacy.5e66143d.js","./index-legacy.c4f76e6e.js","./index-legacy.55839436.js","./index-legacy.3c5580aa.js","./index-legacy.c8871c95.js","./index-legacy.f3e5e283.js","./Picker-legacy.aeff9f1a.js","./index-legacy.fe10c814.js","./use-tab-status-legacy.bafe466c.js","./index-legacy.64e3b474.js","./index-legacy.f9492e3a.js"],(function(t){"use strict";var a,o,s,u,i,c,l,d,p,f,v,g,h,w,m,b,x,y,k,P,_,C,R,O,I,j;return{setters:[function(e){a=e.d,o=e.R,s=e.$,u=e.f,i=e.c,c=e.P,l=e.F,d=e.ag,p=e.ah,f=e.r,v=e.o,g=e.m,h=e.bd,w=e.be,m=e.b3,b=e.q,x=e.B,y=e.bf,k=e.bg},function(e){P=e.s,_=e.a},function(e){C=e.u,R=e.b},function(e){O=e.C},function(e){I=e.F},function(e){j=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){for(var E="_wxPopupDialog_1sfd3_1",T="_popupContainer_1sfd3_16",S="_title1_1sfd3_22",G="_popupTips_1sfd3_29",A=a({name:"o-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"}},setup:function(e){var n=o(!1);return s((function(){u().weixin||!e.show||(n.value=!0)})),function(){return i(l,null,[i(c,{show:n.value,"onUpdate:show":function(e){return n.value=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:E},{default:function(){return[i("div",{class:T},[i("p",{class:S},[e.title]),i("p",{class:G},[e.message])])]}})])}}}),B=[],D=1;D<=40;D++)B.push({text:D+"班",value:D});t("default",a({name:"pre-register",setup:function(){var t=C(1e3,{controls:!0});t.pause();var a=d(),l=p(),E=f({loading:!0,orchestraId:l.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:""}),T=o(!1),S=o(""),G=["1715022312206573570","1715045889000656897","1715030463675944961","1715034224138985474","1715036209671098370","1715042256419889153","1715013540700561409"],D=function(e){return e?E.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":void 0:"学员姓名必须为中文":"请填写学生真实姓名"},L=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,!E.applyStatus){e.next=4;break}return v("家长会调查问卷已结束"),e.abrupt("return");case 4:if(!D(E.username)){e.next=7;break}return v(D(E.username)),e.abrupt("return");case 7:if(E.currentGrade){e.next=10;break}return v("请选择年级"),e.abrupt("return");case 10:if(E.currentClass){e.next=13;break}return v("请选择班级"),e.abrupt("return");case 13:return null===(n=E.intervalFnRef)||void 0===n||n.pause(),t.pause(),e.next=17,g.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:E.id,pageBrowseTime:t.counter.value,username:E.username,currentGrade:E.currentGrade,currentClass:E.currentClass?Number(E.currentClass):null}});case 17:a.push({path:"/pre-register-video",query:{saveId:E.id,id:E.orchestraId,openId:E.openId}}),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(0),null===(r=E.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)}}(),H=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,g.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:E.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)}}();s(r(regeneratorRuntime.mark((function e(){var n,r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,E.orchestraId||v("信息获取失败,请联系老师"),e.next=4,g.get("/api-student/open/orchestra/detail/"+E.orchestraId);case 4:if(n=e.sent,r=n.data,E.parentConferencesAgenda=r.parentConferencesAgenda,E.code){e.next=9;break}return e.abrupt("return");case 9:if("ORCHESTRA"!==r.orchestraRegisterType||"PRE_REGISTER"===r.status){e.next=13;break}return v("家长会调查问卷已结束"),E.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 v("家长会调查问卷已结束"),E.applyStatus=!0,e.abrupt("return");case 17:if(!E.orchestraId||-1==G.indexOf(E.orchestraId)){e.next=21;break}return S.value="二维码已过期",T.value=!0,e.abrupt("return");case 21:return e.next=23,g.post("/api-student/open/studentBrowseRecord/add",{data:{orchestraId:E.orchestraId,code:E.code,openId:E.openId}});case 23:a=e.sent,o=a.data,E.currentClass=o.currentClass,E.currentGrade=o.currentGrade,E.openId=o.openId,E.username=o.username,E.videoBrowseData=o.videoBrowseData,E.videoBrowsePoint=o.videoBrowsePoint,E.id=o.id,sessionStorage.setItem("active-open-id",o.openId),t.resume(),E.intervalFnRef=R((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 N=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,g.get("/api-school/open/paramConfig/wechatAppId");case 3:t=e.sent,(r=t.data)&&(y(),k(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(u().weixin){var V=sessionStorage.getItem("active-open-id");E.openId=V;var U=h();if(!U){var q=window.location.origin+window.location.pathname+"#"+l.path+"?"+w.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}({},l.query));return N(q),""}E.code=U}var z=function(){console.log(E.isPageHide,"showInfo"),E.isPageHide&&window.location.reload()};window.addEventListener("pageshow",z);var M=function(){console.log(E.isPageHide,"showInfo"),E.isPageHide=!0};return window.addEventListener("pagehide",M),m((function(){window.removeEventListener("pageshow",z),window.removeEventListener("pagehide",M)})),function(){return i("div",{class:P["per-register-active"]},[i("div",{class:P.flowPath},[i("i",{class:P.flowPathTitle},null),i("div",{class:P.flowPathContent,innerHTML:E.parentConferencesAgenda},null)]),i("div",{class:P.signin},[i("div",{class:P.tips},[i("img",{src:_,class:P.signinTips},null),i("p",null,[b("请先进行"),i("span",null,[b("签到")]),b(",再观看"),i("span",null,[b("管乐团家长会视频")])])]),i(O,{class:P.cellGroup,border:!1},{default:function(){return[i(I,{label:"学生姓名",labelAlign:"top",placeholder:"请输入学生姓名",autocomplete:"off",modelValue:E.username,"onUpdate:modelValue":function(e){return E.username=e}},null),i(I,{label:"年级",labelAlign:"top",placeholder:"请选择年级",isLink:!0,readonly:!0,modelValue:H(E.currentGrade,E.currentGradeList),clickable:!1,onClick:function(){return E.showPicker=!0}},null),i(I,{label:"班级",labelAlign:"top",placeholder:"请选择班级",isLink:!0,readonly:!0,modelValue:H(E.currentClass,B),clickable:!1,onClick:function(){return E.classPicker=!0}},null),i(x,{class:P.submitBtn,onClick:L},null)]}})]),i(A,null,null),i(c,{show:E.showPicker,"onUpdate:show":function(e){return E.showPicker=e},position:"bottom",round:!0},{default:function(){return[i(j,{columns:E.currentGradeList,onCancel:function(){return E.showPicker=!1},onConfirm:function(e){var n=e.selectedValues;E.currentGrade=n[0],E.showPicker=!1}},null)]}}),i(c,{show:E.classPicker,"onUpdate:show":function(e){return E.classPicker=e},position:"bottom",round:!0},{default:function(){return[i(j,{columns:B,onCancel:function(){return E.classPicker=!1},onConfirm:function(e){var n=e.selectedValues;E.currentClass=n[0],E.classPicker=!1}},null)]}}),i(c,{show:T.value,"onUpdate:show":function(e){return T.value=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:P.wxPopupDialog},{default:function(){return[i("div",{class:P.popupContainer},[i("p",{class:P.title},[b("温馨提示")]),i("p",{class:P.popupTips,innerHTML:S.value},null)])]}})])}}}))}}}))}();
|