1 |
- import{s as i,a as z}from"./signin-tips.998f0ac2.js";import{d as E,R as k,$ as A,_ as f,b3 as T,c as e,q as o,B as y,ah as w,r as C,f as P,a5 as I,F as N}from"./index.3b0304e1.js";import{C as _}from"./index.ead63c4f.js";import{F as s}from"./index.f8e9940f.js";import{s as r}from"./video.module.f0db40bb.js";import{P as L}from"./plyr.min.22fd58dd.js";/* empty css */import{d as x}from"./deep-clone.c5af4e6b.js";import{F as M}from"./index.47222a40.js";import{R as b,a as d}from"./index.77c4c772.js";import{T as p}from"./index.1e205a49.js";import"./index.ff3f298b.js";import"./Checker.d1c194b4.js";var j=E({name:"pre-register",emits:["tabChange"],setup(c,{emit:F}){const a=k(""),m=()=>{},l=v=>{v.data.api==="parent-agenda"&&(a.value=v.data.message||"")};return A(()=>{f(()=>{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:z,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(s,{label:"\u5B66\u751F\u59D3\u540D",labelAlign:"top",placeholder:"\u8BF7\u8F93\u5165\u5B66\u751F\u59D3\u540D",autocomplete:"off"},null),e(s,{label:"\u5E74\u7EA7",labelAlign:"top",placeholder:"\u8BF7\u9009\u62E9\u5E74\u7EA7",isLink:!0,readonly:!0,clickable:!1},null),e(s,{label:"\u73ED\u7EA7",labelAlign:"top",placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",isLink:!0,readonly:!0,clickable:!1},null),e(y,{class:i.submitBtn,onClick:m},null)]})])])}}),R=E({name:"pre-register",emits:["tabChange"],setup(c,{emit:F}){const a=w(),m=a.query.v?JSON.parse(a.query.v):[];console.log(a.query,"query");const l=C({coverImg:a.query.coverImg,introductionVideo:a.query.introductionVideo,id:null,videoDetails:x(m),player:null,currentTime:0}),v=()=>{const g={controls:["play-large","play","progress","captions","current-time","duration","settings","fullscreen"],settings:["speed"],speed:{selected:1,options:[.5,1,1.5,2]},i18n:{speed:"\u901F\u5EA6",normal:"\u9ED8\u8BA4"},invertTime:!1};P().iPhone&&(g.fullscreen={enabled:!0,fallback:"force",iosNative:!0});const S=[];x(l.videoDetails).forEach(u=>{S.push({time:u.startNode,label:u.desc})}),g.markers={enabled:!0,points:S},l.player=new L("#register-video",g),l.player.on("loadedmetadata",()=>{B(l.player.currentTime)}),l.player.on("timeupdate",u=>{console.log(l.player.currentTime,"forms.player.currentTime",u),B(l.player.currentTime)}),l.player.on("enterfullscreen",()=>{console.log("fullscreen");const u=document.createElement("i");u.id="fullscreen-back",u.className="van-icon van-icon-arrow-left video-back",u.addEventListener("click",()=>{l.player.fullscreen.exit()}),console.log(document.getElementsByClassName("plyr")),document.getElementsByClassName("plyr")[0].appendChild(u)}),l.player.on("exitfullscreen",()=>{console.log("exitfullscreen");const u=document.getElementById("fullscreen-back");u&&u.remove()})},B=n=>{l.videoDetails.forEach(g=>{g.startNode<=n&&n<=g.endNode&&(l.id=g.id)})};A(()=>{f(()=>{v()})});const q=()=>{},h=k(""),D=n=>{n.data.api==="parent-notes"&&(h.value=n.data.message||"")};return A(()=>{f(()=>{window.parent&&window.parent.postMessage({api:"onLoad",status:!0},"*")}),window.addEventListener("message",D)}),T(()=>{window.removeEventListener("message",D)}),()=>e("div",{class:r["pre-register-video"]},[e("div",{class:r.videoContainer},[e("div",{class:r["video-content"]},[e("img",{src:l.coverImg,class:r.coverImg},null)])]),e("div",{class:r.videoCount},[e("div",{class:r.videoCountContent},[l.videoDetails.map(n=>e("span",{class:[n.id===l.id?r.active:""],onClick:()=>{l.player.currentTime=n.startNode}},[n.desc]))])]),e("div",{class:r.messageContainer},[e("div",{class:r.messageContent},[e("div",{innerHTML:h.value},null),e(y,{class:r.submitBtn,onClick:q},null)])])])}});const V="_registerShow_wv681_1",G="_banner_wv681_39",$="_system_wv681_52",H="_title_wv681_82",J="_radioSection_wv681_94",O="_radioItem_wv681_100",U="_otherSubject_wv681_114",K="_wxPopupDialog_wv681_155",Q="_popupContainer_wv681_170",W="_title1_wv681_176",X="_popupTips_wv681_183";var t={registerShow:V,banner:G,"btn-submit":"_btn-submit_wv681_44",system:$,"van-cell--required":"_van-cell--required_wv681_25","top-tips":"_top-tips_wv681_61",title:H,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:K,popupContainer:Q,title1:W,popupTips:X},Y=E({name:"register-show",setup(){const c=w(),F=C({instrumentPriceImg:c.query.instrumentPriceImg,name:c.query.name});return()=>e("div",{class:t.registerShow},[e("div",{class:t.title},[F.name,o("\u7BA1\u4E50\u56E2\u62A5\u540D\u7533\u8BF7")]),e(M,{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(s,{labelAlign:"top",label:"\u6027\u522B",name:"sex"},{input:()=>e(b,{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(s,{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(s,{labelAlign:"top",label:"\u9009\u62A5\u58F0\u90E81",readonly:!0,name:"registerSubjectId",placeholder:"\u8BF7\u9009\u62E9\u9009\u62A5\u58F0\u90E81"},{"right-icon":()=>e(I,{name:"arrow",color:"#323233",size:"16"},null)}),e(s,{labelAlign:"top",label:"\u9009\u62A5\u58F0\u90E82",readonly:!0,name:"standbyRegisterSubjectId",placeholder:"\u8BF7\u9009\u62E9\u9009\u62A5\u58F0\u90E82"},{"right-icon":()=>e(I,{name:"arrow",color:"#323233",size:"16"},null)}),e(s,{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(b,{"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(s,{labelAlign:"top",label:"\u4E50\u5668\u53C2\u8003\u8868&Ai\u7EC3\u4E60\u53C2\u8003\u8868",border:!1,style:"padding-bottom: 0;"},{input:()=>e("img",{src:F.instrumentPriceImg,style:"width: 100%"},null)}),e(s,{labelAlign:"top",label:"\u4E50\u5668\u51C6\u5907\u65B9\u5F0F",name:"instrumentsPrepareMode"},{input:()=>e(b,{"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(s,{labelAlign:"top",label:"\u4E50\u56E2\u5B66\u4E60\u7CFB\u7EDF\u51C6\u5907\u65B9\u5F0F",name:"learningSystemPrepareMode"},{input:()=>e(b,{"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(s,{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(y,{size:"large",block:!0,round:!0,class:t["btn-submit"],"native-type":"submit"},null)]})])}}),pe=E({name:"show-page",setup(){const c=w();console.log(c.query,"query");const F=c.query.index?Number(c.query.index):1,a=C({tabIndex:F||1});return()=>e(N,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(Y,null,null)])}});export{pe as default};
|