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 i=e[o](s),u=i.value}catch(c){return void t(c)}i.done?n(u):Promise.resolve(u).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 i(e){t(s,a,o,i,u,"next",e)}function u(e){t(s,a,o,i,u,"throw",e)}i(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.a3370679.js","./signin-tips-legacy.83d3128b.js","./index-legacy.170a75ee.js","./index-legacy.231b3502.js","./index-legacy.700aac20.js","./index-legacy.677506a3.js","./index-legacy.605516a9.js","./Picker-legacy.2697b1af.js","./index-legacy.1fb6d287.js","./use-tab-status-legacy.9cf42c1a.js","./index-legacy.98b368da.js","./index-legacy.47fee2c4.js"],(function(t){"use strict";var a,o,s,i,u,c,l,d,p,f,g,v,m,w,h,b,x,y,P,k,_,C,R,I,O,j;return{setters:[function(e){a=e.d,o=e.R,s=e.$,i=e.f,u=e.c,c=e.P,l=e.F,d=e.ag,p=e.ah,f=e.r,g=e.o,v=e.m,m=e.bd,w=e.be,h=e.b3,b=e.q,x=e.B,y=e.bf,P=e.bg},function(e){k=e.s,_=e.a},function(e){C=e.u,R=e.b},function(e){I=e.C},function(e){O=e.F},function(e){j=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){for(var E="_wxPopupDialog_1sfd3_1",S="_popupContainer_1sfd3_16",T="_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(){i().weixin||!e.show||(n.value=!0)})),function(){return u(l,null,[u(c,{show:n.value,"onUpdate:show":function(e){return n.value=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:E},{default:function(){return[u("div",{class:S},[u("p",{class:T},[e.title]),u("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(),o=p(),l=f({loading:!0,orchestraId:o.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:""}),E=function(e){return e?l.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":void 0:"学员姓名必须为中文":"请填写学生真实姓名"},S=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,!l.applyStatus){e.next=4;break}return g("家长会调查问卷已结束"),e.abrupt("return");case 4:if(!E(l.username)){e.next=7;break}return g(E(l.username)),e.abrupt("return");case 7:if(l.currentGrade){e.next=10;break}return g("请选择年级"),e.abrupt("return");case 10:if(l.currentClass){e.next=13;break}return g("请选择班级"),e.abrupt("return");case 13:return null===(n=l.intervalFnRef)||void 0===n||n.pause(),t.pause(),e.next=17,v.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:l.id,pageBrowseTime:t.counter.value,username:l.username,currentGrade:l.currentGrade,currentClass:l.currentClass?Number(l.currentClass):null}});case 17:a.push({path:"/pre-register-video",query:{saveId:l.id,id:l.orchestraId,openId:l.openId}}),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(0),null===(r=l.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)}}(),T=function(e,n){var t="";return n.forEach((function(n){n.value==e&&(t=n.text)})),t},G=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,v.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:l.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,l.orchestraId||g("信息获取失败,请联系老师"),e.next=4,v.get("/api-student/open/orchestra/detail/"+l.orchestraId);case 4:if(n=e.sent,r=n.data,l.parentConferencesAgenda=r.parentConferencesAgenda,l.code){e.next=9;break}return e.abrupt("return");case 9:if("ORCHESTRA"!==r.orchestraRegisterType||"PRE_REGISTER"===r.status){e.next=13;break}return g("家长会调查问卷已结束"),l.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 g("家长会调查问卷已结束"),l.applyStatus=!0,e.abrupt("return");case 17:return e.next=19,v.post("/api-student/open/studentBrowseRecord/add",{data:{orchestraId:l.orchestraId,code:l.code,openId:l.openId}});case 19:a=e.sent,o=a.data,l.currentClass=o.currentClass,l.currentGrade=o.currentGrade,l.openId=o.openId,l.username=o.username,l.videoBrowseData=o.videoBrowseData,l.videoBrowsePoint=o.videoBrowsePoint,l.id=o.id,sessionStorage.setItem("active-open-id",o.openId),t.resume(),l.intervalFnRef=R((function(){t.counter.value=0,t.resume(),G()}),1e4),e.next=35;break;case 33:e.prev=33,e.t0=e.catch(0);case 35:case"end":return e.stop()}}),e,null,[[0,33]])}))));var D=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,v.get("/api-school/open/paramConfig/wechatAppId");case 3:t=e.sent,(r=t.data)&&(y(),P(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(i().weixin){var L=sessionStorage.getItem("active-open-id");l.openId=L;var H=m();if(!H){var F=window.location.origin+window.location.pathname+"#"+o.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}({},o.query));return D(F),""}l.code=H}var N=function(){console.log(l.isPageHide,"showInfo"),l.isPageHide&&window.location.reload()};window.addEventListener("pageshow",N);var V=function(){console.log(l.isPageHide,"showInfo"),l.isPageHide=!0};return window.addEventListener("pagehide",V),h((function(){window.removeEventListener("pageshow",N),window.removeEventListener("pagehide",V)})),function(){return u("div",{class:k["per-register-active"]},[u("div",{class:k.flowPath},[u("i",{class:k.flowPathTitle},null),u("div",{class:k.flowPathContent,innerHTML:l.parentConferencesAgenda},null)]),u("div",{class:k.signin},[u("div",{class:k.tips},[u("img",{src:_,class:k.signinTips},null),u("p",null,[b("请先进行"),u("span",null,[b("签到")]),b(",再观看"),u("span",null,[b("管乐团家长会视频")])])]),u(I,{class:k.cellGroup,border:!1},{default:function(){return[u(O,{label:"学生姓名",labelAlign:"top",placeholder:"请输入学生姓名",autocomplete:"off",modelValue:l.username,"onUpdate:modelValue":function(e){return l.username=e}},null),u(O,{label:"年级",labelAlign:"top",placeholder:"请选择年级",isLink:!0,readonly:!0,modelValue:T(l.currentGrade,l.currentGradeList),clickable:!1,onClick:function(){return l.showPicker=!0}},null),u(O,{label:"班级",labelAlign:"top",placeholder:"请选择班级",isLink:!0,readonly:!0,modelValue:T(l.currentClass,B),clickable:!1,onClick:function(){return l.classPicker=!0}},null),u(x,{class:k.submitBtn,onClick:S},null)]}})]),u(A,null,null),u(c,{show:l.showPicker,"onUpdate:show":function(e){return l.showPicker=e},position:"bottom",round:!0},{default:function(){return[u(j,{columns:l.currentGradeList,onCancel:function(){return l.showPicker=!1},onConfirm:function(e){var n=e.selectedValues;l.currentGrade=n[0],l.showPicker=!1}},null)]}}),u(c,{show:l.classPicker,"onUpdate:show":function(e){return l.classPicker=e},position:"bottom",round:!0},{default:function(){return[u(j,{columns:B,onCancel:function(){return l.classPicker=!1},onConfirm:function(e){var n=e.selectedValues;l.currentClass=n[0],l.classPicker=!1}},null)]}})])}}}))}}}))}();
|