show.f07b3f68.js 11 KB

1
  1. import{d as f,R as A,$ as y,_ as w,b7 as T,c as e,q as o,B as C,ah as h,r as B,a5 as k,F as L}from"./index.f2940478.js";import{s as i,a as P}from"./signin-tips.4edbed1d.js";import{C as _}from"./index.0045c0ee.js";import{F as r}from"./index.9ee57e86.js";import{s}from"./video.module.60ee571d.js";import{d as M}from"./deep-clone.c5af4e6b.js";import{T as b}from"./tcplayer.v4.8.0.min.d79f74d0.js";/* empty css */import{F as N}from"./index.0c19add9.js";import{R as E,a as d}from"./index.f3020f0b.js";import{T as p}from"./index.9cdfbaae.js";import"./index.d77afd61.js";import"./Checker.15f4682a.js";var j=f({name:"pre-register",emits:["tabChange"],setup(c,{emit:g}){const a=A(""),m=()=>{},l=v=>{v.data.api==="parent-agenda"&&(a.value=v.data.message||"")};return y(()=>{w(()=>{window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")}),window.addEventListener("message",l)}),T(()=>{window.removeEventListener("message",l)}),()=>e("div",{class:i["per-register-active"]},[e("div",{class:i.flowPath},[e("i",{class:i.flowPathTitle},null),e("div",{class:i.flowPathContent,innerHTML:a.value},null)]),e("div",{class:i.signin},[e("div",{class:i.tips},[e("img",{src:P,class:i.signinTips},null),e("p",null,[o("\u8BF7\u5148\u8FDB\u884C"),e("span",null,[o("\u7B7E\u5230")]),o("\uFF0C\u518D\u89C2\u770B"),e("span",null,[o("\u7BA1\u4E50\u56E2\u5BB6\u957F\u4F1A\u89C6\u9891")])])]),e(_,{class:i.cellGroup,border:!1},{default:()=>[e(r,{label:"\u5B66\u751F\u59D3\u540D",labelAlign:"top",placeholder:"\u8BF7\u8F93\u5165\u5B66\u751F\u59D3\u540D",autocomplete:"off"},null),e(r,{label:"\u5E74\u7EA7",labelAlign:"top",placeholder:"\u8BF7\u9009\u62E9\u5E74\u7EA7",isLink:!0,readonly:!0,clickable:!1},null),e(r,{label:"\u73ED\u7EA7",labelAlign:"top",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",isLink:!0,readonly:!0,clickable:!1},null),e(C,{class:i.submitBtn,onClick:m},null)]})])])}}),R=f({name:"pre-register",emits:["tabChange"],setup(c,{emit:g}){const a=h(),m=a.query.v?JSON.parse(a.query.v):[];console.log(a.query,"query");const l=B({coverImg:a.query.coverImg,videoID:"video"+Date.now()+Math.floor(Math.random()*100),introductionVideo:a.query.introductionVideo,id:null,videoDetails:M(m),player:null,currentTime:0}),v=()=>{const u=b.getComponent("Button"),F=b.getComponent("BigPlayButton");F.prototype.createEl=function(){const n=u.prototype.createEl.call(this),q='<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="\u692D\u5706\u5F62"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="\u8DEF\u5F84"fill="#FFFFFF"fill-rule="nonzero"></path></g></g></g></g></g></svg></button>';return n.appendChild(b.dom.createEl("div",{className:"vjs-button-icon",innerHTML:q})),n},l.player=b("register-video",{appID:"",controls:!0,plugins:{ProgressMarker:!0}}),l.player&&(l.player.src(l.introductionVideo),l.player.poster(l.coverImg||""),l.player.on("loadedmetadata",()=>{D(l.player.currentTime())}),l.player.on("timeupdate",n=>{console.log(l.player.currentTime(),"forms.player.currentTime()",n),D(l.player.currentTime())}),l.player.on("fullscreenchange",()=>{if(l.player.isFullscreen()){console.log("fullscreen");const n=document.createElement("i");n.id="fullscreen-back",n.className="van-icon van-icon-arrow-left video-back",n.addEventListener("click",()=>{l.player.exitFullscreen()}),document.getElementsByClassName("video-js")[0].appendChild(n)}else{console.log("exitfullscreen");const n=document.getElementById("fullscreen-back");n&&n.remove()}}))},D=u=>{l.videoDetails.forEach(F=>{F.startNode<=u&&u<=F.endNode&&(l.id=F.id)})};y(()=>{w(()=>{v()})});const z=()=>{},x=A(""),I=A(),S=u=>{u.data.api==="parent-notes"&&(console.log(u.data,"data"),x.value=u.data.message||"",I.value=u.data.registerDisplay||!1)};return y(()=>{w(()=>{window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")}),window.addEventListener("message",S)}),T(()=>{window.removeEventListener("message",S)}),()=>e("div",{class:s["pre-register-video"]},[e("div",{class:s.videoContainer},[e("div",{class:s["video-content"]},[e("img",{src:l.coverImg,class:s.coverImg},null)])]),e("div",{class:s.videoCount},[e("div",{class:s.videoTitle},null),e("div",{class:s.videoCountContent},[l.videoDetails.map(u=>e("span",{class:[u.id===l.id?s.active:""],onClick:()=>{l.player.currentTime(u.startNode)}},[u.desc]))])]),e("div",{class:s.messageContainer},[e("div",{class:s.messageContent},[e("div",{innerHTML:x.value},null),I.value&&e(C,{class:s.submitBtn,onClick:z},null)])])])}});const V="_registerShow_wv681_1",G="_banner_wv681_39",H="_system_wv681_52",$="_title_wv681_82",J="_radioSection_wv681_94",O="_radioItem_wv681_100",U="_otherSubject_wv681_114",Z="_wxPopupDialog_wv681_155",K="_popupContainer_wv681_170",Q="_title1_wv681_176",W="_popupTips_wv681_183";var t={registerShow:V,banner:G,"btn-submit":"_btn-submit_wv681_44",system:H,"van-cell--required":"_van-cell--required_wv681_25","top-tips":"_top-tips_wv681_61",title:$,radioSection:J,radioItem:O,"van-picker__confirm":"_van-picker__confirm_wv681_111",otherSubject:U,"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:Z,popupContainer:K,title1:Q,popupTips:W},X=f({name:"register-show",setup(){const c=h(),g=B({instrumentPriceImg:c.query.instrumentPriceImg,name:c.query.name});return()=>e("div",{class:t.registerShow},[e("div",{class:t.title},[g.name,o("\u7BA1\u4E50\u56E2\u62A5\u540D\u7533\u8BF7")]),e(N,{validateFirst:!0,scrollToError:!0,ref:"form",class:t.form},{default:()=>[e("div",{class:t["top-tips"]},[o("1\u3001\u4E3A\u4E86\u4FDD\u969C\u4E50\u56E2\u987A\u5229\u7EC4\u5EFA\uFF0C\u907F\u514D\u540D\u989D\u6D6A\u8D39\uFF1B\u8BF7\u5BB6\u957F\u4E0E\u5B69\u5B50\u4EE5\u81EA\u613F\u4E3A\u539F\u5219\uFF0C\u5728\u786E\u8BA4\u610F\u5411\u540E\u586B\u5199\u76F8\u5173\u4FE1\u606F\uFF1B\u4E13\u4E1A\u8001\u5E08\u5C06\u6839\u636E\u5BB6\u957F\u7684\u76F8\u5173\u586B\u62A5\uFF0C\u786E\u8BA4\u5B69\u5B50\u662F\u5426\u80FD\u591F\u52A0\u5165\u4E50\u56E2\uFF1B"),e("br",null,null),o("2\u3001\u81EA\u7528\u4E50\u5668\u53CA\u8BFE\u540E\u7EC3\u4E60\uFF0C\u5BB6\u957F\u81EA\u613F\u9009\u62E9\u51C6\u5907\u65B9\u5F0F\u3002")]),e(_,{inset:!0,class:t["cell-group"]},{default:()=>[e(r,{labelAlign:"top",label:"\u6027\u522B",name:"sex"},{input:()=>e(E,{checkedColor:"#57ABF8",direction:"horizontal"},{default:()=>[e(p,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:1},null),o("\u7537\u751F")]}),e(p,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:0},null),o("\u5973\u751F")]})]})}),e(r,{labelAlign:"top",label:"\u5B69\u5B50\u662F\u5426\u6709\u5B66\u4E60\u8FC7\u7684\u4E50\u5668(\u6709\u8BF7\u5907\u6CE8)",name:"learningSubjectName",placeholder:"\u8BF7\u8F93\u5165\u5B66\u4E60\u8FC7\u7684\u4E50\u5668"},null),e(r,{labelAlign:"top",label:"\u9009\u62A5\u58F0\u90E81",readonly:!0,name:"registerSubjectId",placeholder:"\u8BF7\u9009\u62E9\u9009\u62A5\u58F0\u90E81"},{"right-icon":()=>e(k,{name:"arrow",color:"#323233",size:"16"},null)}),e(r,{labelAlign:"top",label:"\u9009\u62A5\u58F0\u90E82",readonly:!0,name:"standbyRegisterSubjectId",placeholder:"\u8BF7\u9009\u62E9\u9009\u62A5\u58F0\u90E82"},{"right-icon":()=>e(k,{name:"arrow",color:"#323233",size:"16"},null)}),e(r,{labelAlign:"top",label:"\u662F\u5426\u670D\u4ECE\u8C03\u914D",name:"adjust"},{input:()=>e("div",null,[e("p",{class:t.otherSubject},[o("(\u5982\u679C\u81EA\u9009\u58F0\u90E8\u540D\u989D\u5DF2\u6EE1\uFF0C\u662F\u5426\u613F\u610F\u63A5\u53D7\u5B89\u6392\u5176\u4ED6\u58F0\u90E8?)")]),e(E,{"checked-color":"#57ABF8",direction:"horizontal"},{default:()=>[e(p,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:1},null),o("\u613F\u610F")]}),e(p,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:0},null),o("\u4E0D\u613F\u610F")]})]})])})]}),e(_,{inset:!0,class:t["cell-group"]},{default:()=>[e(r,{labelAlign:"top",label:"\u4E50\u5668\u53C2\u8003\u8868&Ai\u7EC3\u4E60\u53C2\u8003\u8868",border:!1,style:"padding-bottom: 0;"},{input:()=>e("img",{src:g.instrumentPriceImg,style:"width: 100%"},null)}),e(r,{labelAlign:"top",label:"\u4E50\u5668\u51C6\u5907\u65B9\u5F0F",name:"instrumentsPrepareMode"},{input:()=>e(E,{"checked-color":"#57ABF8",direction:"horizontal"},{default:()=>[e(p,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:1},null),o("\u81EA\u884C\u8D2D\u7F6E")]}),e(p,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:0},null),o("\u5E0C\u671B\u57FA\u91D1\u4F1A\u63D0\u4F9B\u6E20\u9053\u8D2D\u7F6E")]})]})}),e(r,{labelAlign:"top",label:"\u4E50\u56E2\u5B66\u4E60\u7CFB\u7EDF\u51C6\u5907\u65B9\u5F0F",name:"learningSystemPrepareMode"},{input:()=>e(E,{"checked-color":"#57ABF8",direction:"horizontal"},{default:()=>[e(p,{size:"large",type:"primary",color:"#57ABF8",textColor:"#FFF",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:1},null),o("\u81EA\u884C\u8D2D\u7F6E")]}),e(p,{size:"large",type:"primary",color:"#EAEAEA",textColor:"#AAA",class:t.radioSection},{default:()=>[e(d,{class:t.radioItem,name:0},null),o("\u5E0C\u671B\u57FA\u91D1\u4F1A\u63D0\u4F9B\u6E20\u9053\u8D2D\u7F6E")]})]})}),e(r,{labelAlign:"top",type:"tel",label:"\u8054\u7CFB\u7535\u8BDD(\u76F4\u63A5\u76D1\u62A4\u4EBA)",name:"phone",placeholder:"\u8BF7\u8F93\u5165\u76D1\u62A4\u4EBA\u624B\u673A\u53F7\u7801"},null)]}),e(C,{size:"large",block:!0,round:!0,class:t["btn-submit"],"native-type":"submit"},null)]})])}}),pe=f({name:"show-page",setup(){const c=h();console.log(c.query,"query");const g=c.query.index?Number(c.query.index):1,a=B({tabIndex:g||1});return()=>e(L,null,[a.tabIndex===1&&e(j,{onTabChange:m=>{a.tabIndex=m}},null),a.tabIndex===2&&e(R,{onTabChange:m=>{a.tabIndex=m}},null),a.tabIndex===3&&e(X,null,null)])}});export{pe as default};