index-legacy.0005f15e.js 10 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,u){try{var i=e[o](u),s=i.value}catch(l){return void t(l)}i.done?n(s):Promise.resolve(s).then(r,a)}function r(e){return function(){var n=this,r=arguments;return new Promise((function(a,o){var u=e.apply(n,r);function i(e){t(u,a,o,i,s,"next",e)}function s(e){t(u,a,o,i,s,"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.a6f2fbfe.js","./signin-tips-legacy.559b687e.js","./index-legacy.c75fe8a2.js","./index-legacy.b12f44d3.js","./index-legacy.b8778ca4.js","./index-legacy.7c5b1963.js","./index-legacy.2286ebd7.js","./index-legacy.9739c1bd.js","./Picker-legacy.2f8d690e.js","./index-legacy.0cd47a48.js","./use-tab-status-legacy.19bf57a8.js","./index-legacy.1556efff.js","./index-legacy.4b2c6c41.js"],(function(t){"use strict";var a,o,u,i,s,l,c,d,p,f,v,g,b,m,w,h,x,y,k,P,_,j,C,I,R,O;return{setters:[function(e){a=e.d,o=e.R,u=e.$,i=e.f,s=e.c,l=e.P,c=e.F,d=e.ag,p=e.ah,f=e.r,v=e.o,g=e.m,b=e.bd,m=e.b3,w=e.q,h=e.B,x=e.be,y=e.bf},function(e){k=e.s,P=e.a},function(e){_=e.q},function(e){j=e.u,C=e.b},function(e){I=e.C},function(e){R=e.F},function(e){O=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){for(var S="_wxPopupDialog_1sfd3_1",B="_popupContainer_1sfd3_16",G="_title1_1sfd3_22",E="_popupTips_1sfd3_29",L=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 u((function(){i().weixin||!e.show||(n.value=!0)})),function(){return s(c,null,[s(l,{show:n.value,"onUpdate:show":function(e){return n.value=e},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:S},{default:function(){return[s("div",{class:B},[s("p",{class:G},[e.title]),s("p",{class:E},[e.message])])]}})])}}}),D=[],T=1;T<=40;T++)D.push({text:T+"班",value:T});t("default",a({name:"pre-register",setup:function(){var t=j(1e3,{controls:!0});t.pause();var a=d(),o=p(),c=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}],showPicker:!1,classPicker:!1,nameReg:/^[\u4E00-\u9FA5]+$/,openId:"",id:null,videoBrowseData:null,videoBrowsePoint:null,username:"",currentGrade:"",currentClass:"",intervalFnRef:null,applyStatus:!1,isPageHide:!1}),S=function(e){return e?c.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":void 0:"学员姓名必须为中文":"请填写学生真实姓名"},B=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,!c.applyStatus){e.next=4;break}return v("家长会调查问卷已结束"),e.abrupt("return");case 4:if(!S(c.username)){e.next=7;break}return v(S(c.username)),e.abrupt("return");case 7:if(c.currentGrade){e.next=10;break}return v("请选择年级"),e.abrupt("return");case 10:if(c.currentClass){e.next=13;break}return v("请选择班级"),e.abrupt("return");case 13:return null===(n=c.intervalFnRef)||void 0===n||n.pause(),t.pause(),e.next=17,g.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:c.id,pageBrowseTime:t.counter.value,username:c.username,currentGrade:c.currentGrade,currentClass:c.currentClass?Number(c.currentClass):null}});case 17:a.push({path:"/pre-register-video",query:{saveId:c.id,id:c.orchestraId,openId:c.openId}}),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(0),null===(r=c.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)}}(),G=function(e,n){var t="";return n.forEach((function(n){n.value==e&&(t=n.text)})),t},E=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:c.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,c.orchestraId||v("信息获取失败,请联系老师"),e.next=4,g.get("/api-student/open/orchestra/detail/"+c.orchestraId);case 4:if(n=e.sent,r=n.data,"sixYearSystem"===(r.schoolSystem||"sixYearSystem")&&c.currentGradeList.push({text:"六年级",value:6}),c.code){e.next=10;break}return e.abrupt("return");case 10:if("PRE_REGISTER"===r.status){e.next=14;break}return v("家长会调查问卷已结束"),c.applyStatus=!0,e.abrupt("return");case 14:return e.next=16,g.post("/api-student/open/studentBrowseRecord/add",{data:{orchestraId:c.orchestraId,code:c.code,openId:c.openId}});case 16:a=e.sent,o=a.data,c.currentClass=o.currentClass,c.currentGrade=o.currentGrade,c.openId=o.openId,c.username=o.username,c.videoBrowseData=o.videoBrowseData,c.videoBrowsePoint=o.videoBrowsePoint,c.id=o.id,sessionStorage.setItem("active-open-id",o.openId),t.resume(),c.intervalFnRef=C((function(){t.counter.value=0,t.resume(),E()}),1e4),e.next=32;break;case 30:e.prev=30,e.t0=e.catch(0);case 32:case"end":return e.stop()}}),e,null,[[0,30]])}))));var T=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)&&(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(i().weixin){var F=sessionStorage.getItem("active-open-id");c.openId=F;var H=b();if(!H){var V=window.location.origin+window.location.pathname+"#"+o.path+"?"+_.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 T(V),""}c.code=H}var q=function(){console.log(c.isPageHide,"showInfo"),c.isPageHide&&window.location.reload()};window.addEventListener("pageshow",q);var A=function(){console.log(c.isPageHide,"showInfo"),c.isPageHide=!0};return window.addEventListener("pagehide",A),m((function(){window.removeEventListener("pageshow",q),window.removeEventListener("pagehide",A)})),function(){return s("div",{class:k["per-register-active"]},[s("div",{class:k.flowPath},[s("i",{class:k.flowPathTitle},null),s("div",{class:k.flowPathContent},[w("一、请所有家长进行"),s("span",null,[w("签到")]),s("br",null,null),w("二、"),s("span",null,[w("观看")]),w("管乐团家长会议"),s("br",null,null),w("1、学校领导讲话(5分钟)"),s("br",null,null),w("2、基金会老师介绍乐团事项(20分钟)"),s("br",null,null),s("p",{style:{"padding-left":"1em"}},[w("*乐团组建背景及政策"),s("br",null,null),w("*乐团发展规划与乐器知识讲解"),s("br",null,null),w("*学校/基金会/家长各方职责与投入"),s("br",null,null),w("*入团流程讲解")]),w("三、请"),s("span",null,[w("“有意向”")]),w("让孩子加入乐团的家长点击"),s("span",null,[w("“乐团报名”")]),w("完成信息填报")])]),s("div",{class:k.signin},[s("div",{class:k.tips},[s("img",{src:P,class:k.signinTips},null),s("p",null,[w("请先进行"),s("span",null,[w("签到")]),w(",再观看"),s("span",null,[w("管乐团家长会视频")])])]),s(I,{class:k.cellGroup,border:!1},{default:function(){return[s(R,{label:"学生姓名",labelAlign:"top",placeholder:"请输入学生姓名",autocomplete:"off",modelValue:c.username,"onUpdate:modelValue":function(e){return c.username=e}},null),s(R,{label:"年级",labelAlign:"top",placeholder:"请选择年级",isLink:!0,readonly:!0,modelValue:G(c.currentGrade,c.currentGradeList),clickable:!1,onClick:function(){return c.showPicker=!0}},null),s(R,{label:"班级",labelAlign:"top",placeholder:"请选择班级",isLink:!0,readonly:!0,modelValue:G(c.currentClass,D),clickable:!1,onClick:function(){return c.classPicker=!0}},null),s(h,{class:k.submitBtn,onClick:B},null)]}})]),s(L,null,null),s(l,{show:c.showPicker,"onUpdate:show":function(e){return c.showPicker=e},position:"bottom",round:!0},{default:function(){return[s(O,{columns:c.currentGradeList,onCancel:function(){return c.showPicker=!1},onConfirm:function(e){var n=e.selectedValues;c.currentGrade=n[0],c.showPicker=!1}},null)]}}),s(l,{show:c.classPicker,"onUpdate:show":function(e){return c.classPicker=e},position:"bottom",round:!0},{default:function(){return[s(O,{columns:D,onCancel:function(){return c.classPicker=!1},onConfirm:function(e){var n=e.selectedValues;c.currentClass=n[0],c.classPicker=!1}},null)]}})])}}}))}}}))}();