1 |
- System.register(["./index-legacy-e0181e36-1720699367816.js"],(function(e,t){"use strict";var r,o,a,n,l,i,s,u,d,c,_,v,m,w,p;return{setters:[e=>{r=e.d,o=e.u,a=e.r,n=e.c,l=e.e,i=e.q,s=e.T,u=e.f,d=e.l,c=e.m,_=e.E,v=e.k,m=e.x,w=e.j,p=e.z}],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 h="_wrap_rryzt_1",y="_previewWindow_rryzt_12",z="_previewIframe_rryzt_16",f="_removeVisiable_rryzt_21",g="_studentRemove_rryzt_27",b="_btnGroupModal_rryzt_39";e("default",r({name:"notation-a",setup(){o();const e=a(!1),t=a(!1),r=a({}),x=a(!1),F=n().getToken||"",k=a(),R="1"==sessionStorage.getItem("notation-open-create")?"&addShow=1":"";sessionStorage.removeItem("notation-open-create");const q=l({src:`${/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":location.origin}/notation/?t=${Date.now()}#/create?v=${Date.now()}&Authorization=${F}${R}`}),C=o=>{console.log(o.data,"data"),"notation_open"===o.data.api?p.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("进来"),x.value=!0)};return i((()=>{window.addEventListener("message",C)})),s((()=>{window.removeEventListener("message",C)})),()=>u("div",{class:h},[u("iframe",{ref:k,src:q.src,key:Date.now()},null),u(d,{maskClosable:c,show:t.value,"onUpdate:show":e=>t.value=e,class:y,showIcon:!1,displayDirective:"show"},{default:()=>[u(_,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[u("iframe",{class:z,onLoad:()=>{e.value=!1},frameborder:"0",src:r.value.url},null)]})]}),u(d,{maskClosable:c,show:x.value,"onUpdate:show":e=>x.value=e,preset:"card",class:["modalTitle",f],title:"退出制谱"},{default:()=>[u("div",{class:g},[u("p",null,[v("是否退出制谱功能?")]),u(m,{class:b,justify:"center"},{default:()=>[u(w,{round:!0,type:"primary",onClick:()=>{t.value=!1,r.value.url="",x.value=!1,k.value.contentWindow.postMessage({api:"reload"},"*"),p.application&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}},{default:()=>[v("确定")]}),u(w,{round:!0,onClick:()=>x.value=!1},{default:()=>[v("取消")]})]})])]})])}}))}}}));
|