index-legacy.3c48c6e0.js 9.7 KB

1
  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(["./signin-tips-legacy.83d3128b.js","./index-legacy.47bc1690.js","./index-legacy.318f6df0.js","./index-legacy.bab9fe30.js","./index-legacy.569a2858.js","./index-legacy.62a334e5.js","./index-legacy.92a01198.js","./Picker-legacy.cd27e6c1.js","./index-legacy.00966b07.js","./use-tab-status-legacy.7bf91b8c.js","./index-legacy.18044794.js","./index-legacy.21964237.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.s,o=e.a},function(e){s=e.d,i=e.R,u=e.$,c=e.f,l=e.c,d=e.P,p=e.F,f=e.ag,g=e.ah,v=e.r,m=e.o,w=e.m,h=e.bd,b=e.be,x=e.b3,y=e.q,P=e.B,k=e.bf,_=e.bg},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=s({name:"o-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"}},setup:function(e){var n=i(!1);return u((function(){c().weixin||!e.show||(n.value=!0)})),function(){return l(p,null,[l(d,{show:n.value,"onUpdate:show":function(e){return n.value=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:E},{default:function(){return[l("div",{class:S},[l("p",{class:T},[e.title]),l("p",{class:G},[e.message])])]}})])}}}),B=[],D=1;D<=40;D++)B.push({text:D+"班",value:D});t("default",s({name:"pre-register",setup:function(){var t=C(1e3,{controls:!0});t.pause();var s=f(),i=g(),p=v({loading:!0,orchestraId:i.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?p.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,!p.applyStatus){e.next=4;break}return m("家长会调查问卷已结束"),e.abrupt("return");case 4:if(!E(p.username)){e.next=7;break}return m(E(p.username)),e.abrupt("return");case 7:if(p.currentGrade){e.next=10;break}return m("请选择年级"),e.abrupt("return");case 10:if(p.currentClass){e.next=13;break}return m("请选择班级"),e.abrupt("return");case 13:return null===(n=p.intervalFnRef)||void 0===n||n.pause(),t.pause(),e.next=17,w.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:p.id,pageBrowseTime:t.counter.value,username:p.username,currentGrade:p.currentGrade,currentClass:p.currentClass?Number(p.currentClass):null}});case 17:s.push({path:"/pre-register-video",query:{saveId:p.id,id:p.orchestraId,openId:p.openId}}),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(0),null===(r=p.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,w.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:p.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)}}();u(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,p.orchestraId||m("信息获取失败,请联系老师"),e.next=4,w.get("/api-student/open/orchestra/detail/"+p.orchestraId);case 4:if(n=e.sent,r=n.data,p.parentConferencesAgenda=r.parentConferencesAgenda,p.code){e.next=9;break}return e.abrupt("return");case 9:if("ORCHESTRA"!==r.orchestraRegisterType||"PRE_REGISTER"===r.status){e.next=13;break}return m("家长会调查问卷已结束"),p.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 m("家长会调查问卷已结束"),p.applyStatus=!0,e.abrupt("return");case 17:return e.next=19,w.post("/api-student/open/studentBrowseRecord/add",{data:{orchestraId:p.orchestraId,code:p.code,openId:p.openId}});case 19:a=e.sent,o=a.data,p.currentClass=o.currentClass,p.currentGrade=o.currentGrade,p.openId=o.openId,p.username=o.username,p.videoBrowseData=o.videoBrowseData,p.videoBrowsePoint=o.videoBrowsePoint,p.id=o.id,sessionStorage.setItem("active-open-id",o.openId),t.resume(),p.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,w.get("/api-school/open/paramConfig/wechatAppId");case 3:t=e.sent,(r=t.data)&&(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(c().weixin){var L=sessionStorage.getItem("active-open-id");p.openId=L;var H=h();if(!H){var F=window.location.origin+window.location.pathname+"#"+i.path+"?"+b.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}({},i.query));return D(F),""}p.code=H}var N=function(){console.log(p.isPageHide,"showInfo"),p.isPageHide&&window.location.reload()};window.addEventListener("pageshow",N);var V=function(){console.log(p.isPageHide,"showInfo"),p.isPageHide=!0};return window.addEventListener("pagehide",V),x((function(){window.removeEventListener("pageshow",N),window.removeEventListener("pagehide",V)})),function(){return l("div",{class:a["per-register-active"]},[l("div",{class:a.flowPath},[l("i",{class:a.flowPathTitle},null),l("div",{class:a.flowPathContent,innerHTML:p.parentConferencesAgenda},null)]),l("div",{class:a.signin},[l("div",{class:a.tips},[l("img",{src:o,class:a.signinTips},null),l("p",null,[y("请先进行"),l("span",null,[y("签到")]),y(",再观看"),l("span",null,[y("管乐团家长会视频")])])]),l(I,{class:a.cellGroup,border:!1},{default:function(){return[l(O,{label:"学生姓名",labelAlign:"top",placeholder:"请输入学生姓名",autocomplete:"off",modelValue:p.username,"onUpdate:modelValue":function(e){return p.username=e}},null),l(O,{label:"年级",labelAlign:"top",placeholder:"请选择年级",isLink:!0,readonly:!0,modelValue:T(p.currentGrade,p.currentGradeList),clickable:!1,onClick:function(){return p.showPicker=!0}},null),l(O,{label:"班级",labelAlign:"top",placeholder:"请选择班级",isLink:!0,readonly:!0,modelValue:T(p.currentClass,B),clickable:!1,onClick:function(){return p.classPicker=!0}},null),l(P,{class:a.submitBtn,onClick:S},null)]}})]),l(A,null,null),l(d,{show:p.showPicker,"onUpdate:show":function(e){return p.showPicker=e},position:"bottom",round:!0},{default:function(){return[l(j,{columns:p.currentGradeList,onCancel:function(){return p.showPicker=!1},onConfirm:function(e){var n=e.selectedValues;p.currentGrade=n[0],p.showPicker=!1}},null)]}}),l(d,{show:p.classPicker,"onUpdate:show":function(e){return p.classPicker=e},position:"bottom",round:!0},{default:function(){return[l(j,{columns:B,onCancel:function(){return p.classPicker=!1},onConfirm:function(e){var n=e.selectedValues;p.currentClass=n[0],p.classPicker=!1}},null)]}})])}}}))}}}))}();