index-legacy-e35dc1b6.js 3.3 KB

1
  1. System.register(["./index-legacy-f073bf97.js","./state-legacy-0e06a251.js"],(function(e,t){"use strict";var r,o,n,a,l,i,s,u,c,d,_,v,m,w;return{setters:[e=>{r=e.d,o=e.u,n=e.r,a=e.c,l=e.e,i=e.n,s=e.O,u=e.f,c=e.v,d=e.A,_=e.k,v=e.w,m=e.j},e=>{w=e.s}],execute:function(){var t=document.createElement("style");t.textContent="._wrap_rryzt_1{width:100%;height:100%;background-color:#fff;border-radius:.78125vw}._wrap_rryzt_1 iframe{width:100%;height:100%;border:none}._previewWindow_rryzt_12{width:100vw;height:100vh}._previewWindow_rryzt_12 ._previewIframe_rryzt_16{width:100vw;height:100vh;background-color:#fff}._removeVisiable_rryzt_21{width:22.5vw}._removeVisiable_rryzt_21 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27{padding:1.04166667vw 2.08333333vw 0}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27 p{font-size:max(.9375rem,14Px);color:#777;line-height:1.5625vw;text-align:center}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27 p span{color:#ea4132}._removeVisiable_rryzt_21 ._btnGroupModal_rryzt_39{padding:1.66666667vw 0}._removeVisiable_rryzt_21 ._btnGroupModal_rryzt_39 .n-button{height:2.44791667vw;min-width:8.125vw}\n",document.head.appendChild(t);const p="_wrap_rryzt_1",h="_previewWindow_rryzt_12",y="_previewIframe_rryzt_16",z="_removeVisiable_rryzt_21",g="_studentRemove_rryzt_27",f="_btnGroupModal_rryzt_39";e("default",r({name:"notation-a",setup(){o();const e=n(!1),t=n(!1),r=n({}),b=n(!1),x=a().getToken||"",F=n();console.log(x);const k="1"==sessionStorage.getItem("notation-open-create")?"&addShow=1":"";sessionStorage.removeItem("notation-open-create");const R=l({src:`${/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":location.origin}/notation/#/create?Authorization=${x}${k}`}),q=o=>{console.log(o.data,"data"),"notation_open"===o.data.api?w.application?(e.value=!0,t.value=!0,r.value={url:o.data.url},(()=>{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()||e.mozRequestFullScreen&&e.mozRequestFullScreen()||e.webkitRequestFullscreen&&e.webkitRequestFullscreen()||e.msRequestFullscreen&&e.msRequestFullscreen()})()):window.open(o.data.url):"notation_exit"===o.data.api&&(console.log("进来"),b.value=!0)};return i((()=>{window.addEventListener("message",q)})),s((()=>{window.removeEventListener("message",q)})),()=>u("div",{class:p},[u("iframe",{ref:F,src:R.src},null),u(c,{show:t.value,"onUpdate:show":e=>t.value=e,class:h,showIcon:!1,displayDirective:"show"},{default:()=>[u(d,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[u("iframe",{class:y,onLoad:()=>{e.value=!1},frameborder:"0",src:r.value.url},null)]})]}),u(c,{show:b.value,"onUpdate:show":e=>b.value=e,preset:"card",class:["modalTitle",z],title:"退出制谱"},{default:()=>[u("div",{class:g},[u("p",null,[_("是否退出制谱功能?")]),u(v,{class:f,justify:"center"},{default:()=>[u(m,{round:!0,type:"primary",onClick:()=>{t.value=!1,r.value.url="",b.value=!1,F.value.contentWindow.postMessage({api:"reload"},"*"),w.application&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}},{default:()=>[_("确定")]}),u(m,{round:!0,onClick:()=>b.value=!1},{default:()=>[_("取消")]})]})])]})])}}))}}}));