chunk-78f4744b.0c346a19.js 2.7 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78f4744b"],{"047a":function(t,e,n){"use strict";n("c0aa")},"078d":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[t.content?e("rich-text",{attrs:{content:t.content,"is-encrypt":1===t.is_encrypt,watermark:t.watermark}}):t._e()],1)},s=[],r=n("840a"),c=function(){var t=this,e=t._self._c;return e("div",{ref:"content",staticClass:"rich-text",domProps:{innerHTML:t._s(t.contentShow)}})},i=[],a=n("325c"),l=n("c0e9"),f=n.n(l),u={props:{content:{default:""},isEncrypt:{default:!0},watermark:{default:""}},data:function(){return{iframeHeight:0,contentShow:"",userInfo:{}}},mounted:function(){var t=this;try{this.userInfo=JSON.parse(localStorage.getItem("user_info")||"{}")}catch(e){this.userInfo={}}this.isEncrypt?this.contentShow=Object(a["a"])(this.content):this.contentShow=this.content,this.$nextTick((function(){var e=.7*document.documentElement.clientHeight,n=t.$refs.content.offsetHeight,o=Math.floor(n/e),s=parseInt(t.$refs.content.offsetWidth/12),r=document.createElement("div");r.className="cover",r.style.height=n+"px",r.style.lineHeight=s+"px",r.style.position="absolute",r.style.left="50%",r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center",r.style.justifyContent="center",r.style.transform="translateX(-50%)",r.style.pointerEvents="none";for(var c=0;c<o;c++){var i=document.createElement("div");i.className="cover",i.style.width="max-content",i.style.height=e+"px",i.style.fontSize=s+"px",i.style.transform="rotateZ(315deg)",i.style.color="rgba(0, 0, 0, 0.20)",i.style.fontWeight="bold",i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.justifyContent="center",i.innerText=t.watermark||t.userInfo.phone||"搞一下",i.style.pointerEvents="none",r.appendChild(i)}t.$refs.content.appendChild(r),document.documentElement.scrollTop=document.body.scrollTop=0,setTimeout((function(){f()(t.$refs.content,{allowTaint:!0}).then((function(e){t.$refs.content.innerHTML="",t.$refs.content.appendChild(e)})).catch((function(){t.$refs.content.innerHTML=""}))}),50)}))}},h=u,p=(n("047a"),n("2877")),d=Object(p["a"])(h,c,i,!1,null,"a5f4b7a4",null),m=d.exports,y={components:{RichText:m,PdfView:r["a"]},data:function(){return{platform:"h5",content:"",watermark:"",is_encrypt:1}},mounted:function(){var t=this.$route.query;this.platform=t.platform||"h5",this.content=t.content||this.content,this.watermark=t.watermark||this.watermark,this.is_encrypt=parseInt(t.is_encrypt||1)},methods:{}},w=y,v=(n("be0e"),Object(p["a"])(w,o,s,!1,null,"1a45626e",null));e["default"]=v.exports},be0e:function(t,e,n){"use strict";n("dd49")},c0aa:function(t,e,n){},dd49:function(t,e,n){}}]);
  2. //# sourceMappingURL=chunk-78f4744b.0c346a19.js.map