show-legacy.4b55cc71.js 14 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML='._registerShow_wv681_1{background:url(./assets/banner.7ea6a969.png) no-repeat top center #C7F4FF;background-size:contain;max-width:20rem;margin:0 auto;min-height:100vh;overflow:hidden;position:relative}._registerShow_wv681_1 .van-cell{flex-direction:column;font-size:.42667rem;padding:.37333rem .34667rem}._registerShow_wv681_1 .van-field__label{width:100%;margin-right:0;color:#333;font-size:.42667rem;font-weight:500}._registerShow_wv681_1 .van-field--disabled .van-field__label{color:#333}._registerShow_wv681_1 .van-cell--required:before{left:.4rem}._registerShow_wv681_1 .van-field__body{margin-top:.26667rem}._registerShow_wv681_1 .cell-group{margin:0 .34667rem .32rem;border-radius:.26667rem;padding-bottom:.53333rem}._registerShow_wv681_1 .van-form{overflow:hidden}._banner_wv681_39,._banner_wv681_39 img{width:100%;font-size:0}._btn-submit_wv681_44{width:90%;margin:.53333rem auto;background:url(./assets/btn.067795cb.png) no-repeat center;background-size:contain;height:1.38667rem;border:none}._system_wv681_52 h2{font-size:.48rem;font-weight:500;margin:.26667rem .64rem;color:#444}._system_wv681_52 ._van-cell--required_wv681_25:before{left:.66667rem}._top-tips_wv681_61{position:relative;margin:.53333rem .32rem;padding:1.06667rem .48rem .53333rem;background:#FFFFFF;border-radius:.26667rem;font-size:.32rem;color:#777;line-height:.53333rem}._top-tips_wv681_61:before{position:absolute;top:-.16rem;left:50%;content:" ";margin-left:-1.66667rem;width:3.33333rem;height:.85333rem;background:url(./assets/tips.468721c3.png) no-repeat center;background-size:contain}._title_wv681_82{font-size:.58667rem;line-height:.85333rem;color:#fff;width:57%;padding-left:.64rem;height:3.94667rem;display:flex;justify-content:center;align-items:center;z-index:1}._radioSection_wv681_94{position:relative;font-size:.37333rem;min-width:.85333rem;justify-content:center}._radioItem_wv681_100{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_wv681_94+._radioSection_wv681_94{margin-left:.32rem}._van-picker__confirm_wv681_111{color:#57abf8}._otherSubject_wv681_114{font-size:.32rem;font-weight:500;color:#aaa;line-height:.45333rem;padding-bottom:.34667rem}._submit-container_wv681_122{position:relative;text-align:center;margin:0 auto;background:url(./assets/p-popup-banner.0becd7c9.png) no-repeat top center;background-size:contain;width:7.5rem;height:8.87rem}._submit-title_wv681_131{padding-top:4.2rem;padding-bottom:.26667rem;font-size:.48rem;font-weight:500;color:#000}._submit-tips_wv681_138{font-size:.4rem;color:#777;line-height:.53333rem;padding-bottom:.32rem}._submit-btn_wv681_144{background:url(./assets/p-popup-btn.84ba8dba.png) no-repeat center center;background-size:contain;width:3.547rem;height:1rem;margin:0 auto}._submit-container_wv681_122 ._van-button_wv681_151{font-size:.48rem;font-weight:500}._wxPopupDialog_wv681_155{overflow:initial}._wxPopupDialog_wv681_155:before{position:absolute;content:" ";top:-1.94667rem;left:50%;margin-left:-2.29333rem;display:inline-block;background:url(../images/initiation/wx-no-top.png) no-repeat top center;background-size:contain;width:4.58667rem;height:4.10667rem}._popupContainer_wv681_170{background:url(../images/initiation/wx-no-bg.png) no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden}._popupContainer_wv681_170 ._title1_wv681_176{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_wv681_170 ._popupTips_wv681_183{padding-top:.32rem;padding-bottom:1.25333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}\n',document.head.appendChild(e),System.register(["./index-legacy.5f9666b4.js","./signin-tips-legacy.5e66143d.js","./index-legacy.e96cb8ba.js","./index-legacy.b6ba0003.js","./video.module-legacy.fa24b34b.js","./deep-clone-legacy.b234d76d.js","./tcplayer.v4.8.0.min-legacy.cbe420be.js","./tcplayer-legacy.cc17772c.js","./index-legacy.392445f1.js","./index-legacy.c898c258.js","./index-legacy.355c349b.js","./index-legacy.1f24a6b5.js","./Checker-legacy.3dea4053.js"],(function(e){"use strict";var n,t,r,i,o,a,l,s,c,u,d,p,m,g,_,f,v,b,w,h,y,x,F;return{setters:[function(e){n=e.d,t=e.R,r=e.$,i=e._,o=e.b7,a=e.c,l=e.q,s=e.B,c=e.ah,u=e.r,d=e.a5,p=e.F},function(e){m=e.s,g=e.a},function(e){_=e.C},function(e){f=e.F},function(e){v=e.s},function(e){b=e.d},function(e){w=e.T},function(){},function(e){h=e.F},function(e){y=e.R,x=e.a},function(e){F=e.T},function(){},function(){}],execute:function(){var A=n({name:"pre-register",emits:["tabChange"],setup:function(e,n){n.emit;var c=t(""),u=function(){},d=function(e){"parent-agenda"===e.data.api&&(c.value=e.data.message||"")};return r((function(){i((function(){window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")})),window.addEventListener("message",d)})),o((function(){window.removeEventListener("message",d)})),function(){return a("div",{class:m["per-register-active"]},[a("div",{class:m.flowPath},[a("i",{class:m.flowPathTitle},null),a("div",{class:m.flowPathContent,innerHTML:c.value},null)]),a("div",{class:m.signin},[a("div",{class:m.tips},[a("img",{src:g,class:m.signinTips},null),a("p",null,[l("请先进行"),a("span",null,[l("签到")]),l(",再观看"),a("span",null,[l("管乐团家长会视频")])])]),a(_,{class:m.cellGroup,border:!1},{default:function(){return[a(f,{label:"学生姓名",labelAlign:"top",placeholder:"请输入学生姓名",autocomplete:"off"},null),a(f,{label:"年级",labelAlign:"top",placeholder:"请选择年级",isLink:!0,readonly:!0,clickable:!1},null),a(f,{label:"班级",labelAlign:"top",placeholder:"请选择班级",isLink:!0,readonly:!0,clickable:!1},null),a(s,{class:m.submitBtn,onClick:u},null)]}})])])}}}),C=n({name:"pre-register",emits:["tabChange"],setup:function(e,n){n.emit;var l=c(),d=l.query.v?JSON.parse(l.query.v):[];console.log(l.query,"query");var p=u({coverImg:l.query.coverImg,videoID:"video"+Date.now()+Math.floor(100*Math.random()),introductionVideo:l.query.introductionVideo,id:null,videoDetails:b(d),player:null,currentTime:0}),m=function(e){p.videoDetails.forEach((function(n){n.startNode<=e&&e<=n.endNode&&(p.id=n.id)}))};r((function(){i((function(){!function(){var e=w.getComponent("Button");w.getComponent("BigPlayButton").prototype.createEl=function(){var n=e.prototype.createEl.call(this);return n.appendChild(w.dom.createEl("div",{className:"vjs-button-icon",innerHTML:'<button><svg width="41px"height="41px"viewBox="0 0 41 41"version="1.1"xmlns="http://www.w3.org/2000/svg"xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none"stroke-width="1"fill="none"fill-rule="evenodd"><g transform="translate(-167.000000, -155.000000)"><g transform="translate(0.000000, 85.000000)"><g transform="translate(158.000000, 70.000000)"><g transform="translate(9.000000, 0.000000)"><circle id="椭圆形"stroke="#FFFFFF"fill-opacity="0.1"fill="#D8D8D8"cx="20.5"cy="20.5"r="20"></circle><path d="M14.5483871,27.6859997 L14.5483871,13.4342349 C14.5480523,12.8729571 14.8729597,12.356555 15.3949624,12.0887034 C15.9169651,11.8208518 16.5522696,11.8445472 17.0503046,12.1504437 L28.6530473,19.2778563 C29.1119763,19.5602271 29.3887725,20.0426422 29.3887725,20.5601173 C29.3887725,21.0775924 29.1119763,21.5600075 28.6530473,21.8423783 L17.0503046,28.9697909 C16.5522696,29.2756874 15.9169651,29.2993828 15.3949624,29.0315312 C14.8729597,28.7636796 14.5480523,28.2472775 14.5483871,27.6859997 Z"id="路径"fill="#FFFFFF"fill-rule="nonzero"></path></g></g></g></g></g></svg></button>'})),n},p.player=w("register-video",{appID:"",controls:!0,plugins:{ProgressMarker:!0}}),p.player&&(p.player.src(p.introductionVideo),p.player.poster(p.coverImg||""),p.player.on("loadedmetadata",(function(){m(p.player.currentTime())})),p.player.on("timeupdate",(function(e){console.log(p.player.currentTime(),"forms.player.currentTime()",e),m(p.player.currentTime())})),p.player.on("fullscreenchange",(function(){if(p.player.isFullscreen()){console.log("fullscreen");var e=document.createElement("i");e.id="fullscreen-back",e.className="van-icon van-icon-arrow-left video-back",e.addEventListener("click",(function(){p.player.exitFullscreen()})),document.getElementsByClassName("video-js")[0].appendChild(e)}else{console.log("exitfullscreen");var n=document.getElementById("fullscreen-back");n&&n.remove()}})))}()}))}));var g=function(){},_=t(""),f=t(),h=function(e){"parent-notes"===e.data.api&&(console.log(e.data,"data"),_.value=e.data.message||"",f.value=e.data.registerDisplay||!1)};return r((function(){i((function(){window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")})),window.addEventListener("message",h)})),o((function(){window.removeEventListener("message",h)})),function(){return a("div",{class:v["pre-register-video"]},[a("div",{class:v.videoContainer},[a("div",{class:v["video-content"]},[a("img",{src:p.coverImg,class:v.coverImg},null)])]),a("div",{class:v.videoCount},[a("div",{class:v.videoTitle},null),a("div",{class:v.videoCountContent},[p.videoDetails.map((function(e){return a("span",{class:[e.id===p.id?v.active:""],onClick:function(){p.player.currentTime(e.startNode)}},[e.desc])}))])]),a("div",{class:v.messageContainer},[a("div",{class:v.messageContent},[a("div",{innerHTML:_.value},null),f.value&&a(s,{class:v.submitBtn,onClick:g},null)])])])}}}),k={registerShow:"_registerShow_wv681_1",banner:"_banner_wv681_39","btn-submit":"_btn-submit_wv681_44",system:"_system_wv681_52","van-cell--required":"_van-cell--required_wv681_25","top-tips":"_top-tips_wv681_61",title:"_title_wv681_82",radioSection:"_radioSection_wv681_94",radioItem:"_radioItem_wv681_100","van-picker__confirm":"_van-picker__confirm_wv681_111",otherSubject:"_otherSubject_wv681_114","submit-container":"_submit-container_wv681_122","submit-title":"_submit-title_wv681_131","submit-tips":"_submit-tips_wv681_138","submit-btn":"_submit-btn_wv681_144","van-button":"_van-button_wv681_151",wxPopupDialog:"_wxPopupDialog_wv681_155",popupContainer:"_popupContainer_wv681_170",title1:"_title1_wv681_176",popupTips:"_popupTips_wv681_183"},z=n({name:"register-show",setup:function(){var e=c(),n=u({instrumentPriceImg:e.query.instrumentPriceImg,name:e.query.name});return function(){return a("div",{class:k.registerShow},[a("div",{class:k.title},[n.name,l("管乐团报名申请")]),a(h,{validateFirst:!0,scrollToError:!0,ref:"form",class:k.form},{default:function(){return[a("div",{class:k["top-tips"]},[l("1、为了保障乐团顺利组建,避免名额浪费;请家长与孩子以自愿为原则,在确认意向后填写相关信息;专业老师将根据家长的相关填报,确认孩子是否能够加入乐团;"),a("br",null,null),l("2、自用乐器及课后练习,家长自愿选择准备方式。")]),a(_,{inset:!0,class:k["cell-group"]},{default:function(){return[a(f,{labelAlign:"top",label:"性别",name:"sex"},{input:function(){return a(y,{checkedColor:"#57ABF8",direction:"horizontal"},{default:function(){return[a(F,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:1},null),l("男生")]}}),a(F,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:0},null),l("女生")]}})]}})}}),a(f,{labelAlign:"top",label:"孩子是否有学习过的乐器(有请备注)",name:"learningSubjectName",placeholder:"请输入学习过的乐器"},null),a(f,{labelAlign:"top",label:"选报声部1",readonly:!0,name:"registerSubjectId",placeholder:"请选择选报声部1"},{"right-icon":function(){return a(d,{name:"arrow",color:"#323233",size:"16"},null)}}),a(f,{labelAlign:"top",label:"选报声部2",readonly:!0,name:"standbyRegisterSubjectId",placeholder:"请选择选报声部2"},{"right-icon":function(){return a(d,{name:"arrow",color:"#323233",size:"16"},null)}}),a(f,{labelAlign:"top",label:"是否服从调配",name:"adjust"},{input:function(){return a("div",null,[a("p",{class:k.otherSubject},[l("(如果自选声部名额已满,是否愿意接受安排其他声部?)")]),a(y,{"checked-color":"#57ABF8",direction:"horizontal"},{default:function(){return[a(F,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:1},null),l("愿意")]}}),a(F,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:0},null),l("不愿意")]}})]}})])}})]}}),a(_,{inset:!0,class:k["cell-group"]},{default:function(){return[a(f,{labelAlign:"top",label:"乐器参考表&Ai练习参考表",border:!1,style:"padding-bottom: 0;"},{input:function(){return a("img",{src:n.instrumentPriceImg,style:"width: 100%"},null)}}),a(f,{labelAlign:"top",label:"乐器准备方式",name:"instrumentsPrepareMode"},{input:function(){return a(y,{"checked-color":"#57ABF8",direction:"horizontal"},{default:function(){return[a(F,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:1},null),l("自行购置")]}}),a(F,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:0},null),l("希望基金会提供渠道购置")]}})]}})}}),a(f,{labelAlign:"top",label:"乐团学习系统准备方式",name:"learningSystemPrepareMode"},{input:function(){return a(y,{"checked-color":"#57ABF8",direction:"horizontal"},{default:function(){return[a(F,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:1},null),l("自行购置")]}}),a(F,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:k.radioSection},{default:function(){return[a(x,{class:k.radioItem,name:0},null),l("希望基金会提供渠道购置")]}})]}})}}),a(f,{labelAlign:"top",type:"tel",label:"联系电话(直接监护人)",name:"phone",placeholder:"请输入监护人手机号码"},null)]}}),a(s,{size:"large",block:!0,round:!0,class:k["btn-submit"],"native-type":"submit"},null)]}})])}}});e("default",n({name:"show-page",setup:function(){var e=c();console.log(e.query,"query");var n=e.query.index?Number(e.query.index):1,t=u({tabIndex:n||1});return function(){return a(p,null,[1===t.tabIndex&&a(A,{onTabChange:function(e){t.tabIndex=e}},null),2===t.tabIndex&&a(C,{onTabChange:function(e){t.tabIndex=e}},null),3===t.tabIndex&&a(z,null,null)])}}}))}}}))}();