You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ventures/public/assets/ContentPagesView.e11ea4b3.js

9 lines
2.6 KiB

import{_ as w,D as C,r as n,b as I,o as r,c as l,a as e,t as c,u as o,h as $,F as y,i as k,E as b,G as L,H as R,L as x,s as P,p as S,l as T}from"./index.95e5d9f9.js";import{t as V}from"./tools.c7b44144.js";const a=i=>(S("data-v-f9cfc761"),i=i(),T(),i),A={class:"member container"},D={class:"header container"},H={class:"title"},M={class:"author"},U={class:"aug"},B={class:"right container"},E=["innerHTML"],F={class:"maxShare"},N={class:"sharePadding"},q={class:"share"},z=a(()=>e("div",{class:"sharetext"},[e("span",null,"Share Posts")],-1)),G={class:"shareContent"},O=["href"],j=a(()=>e("div",{class:"shareImg twitter"},null,-1)),J=[j],K=["href"],Q=a(()=>e("div",{class:"shareImg linkedin"},null,-1)),W=[Q],X=["href"],Y=a(()=>e("div",{class:"shareImg telegram"},null,-1)),Z=[Y],ee={class:"relatedArticles"},te=a(()=>e("div",{class:"relatedTitle"},"Related Posts",-1)),se={class:"iprelatedContent"},oe=["src"],ne={__name:"ContentPagesView",setup(i){const d=C().query.contentId,_=n([]);let t=n({title:""});const h=n(""),u=n(""),p=n(null),g=()=>{b(d).then(async({data:s})=>{s&&(t.value={...s,date:V(s.publishedtime)},L(()=>{document.head.innerHTML+=`<meta property="twitter:url" content="${location.href}"/>
<meta property="twitter:title" content="${t.value.title}"/>
<meta property="twitter:description" content="${t.value.description}"/>
<meta property="twitter:site" content="${location.href}">
<meta name="twitter:image:src" content="${"http://foresightventures.wncwb.com/uploads"+t.value.cover_image}"/>
`;const m="https://www.linkedin.com/shareArticle?mini=true";h.value=`${m}&title=${t.value.title}&url=${encodeURIComponent(location.href)}`,u.value=`https://t.me/share/url?&title=${t.value.title}&url=${encodeURIComponent(location.href)}`}))}),R({research_id:d,page:1,limit:3}).then(s=>{_.value=s.data.data})};return I(()=>{g(),p.value=encodeURIComponent(location.href)}),(s,m)=>(r(),l("div",A,[e("div",D,[e("div",H,c(o(t).title),1),e("div",M,c(o(t).author),1),e("div",U,c(o(t).date),1)]),$(x),e("div",B,[e("div",{class:"ContentArticle",innerHTML:o(t).content},null,8,E),e("div",F,[e("div",N,[e("div",q,[z,e("div",G,[e("a",{target:"_blank",href:`https://twitter.com/share?title=${o(t).title+encodeURIComponent(`
`)+o(t).description+`
`}&link=${p.value}`},J,8,O),e("a",{href:h.value,target:"_blank"},W,8,K),e("a",{href:u.value,target:"_blank"},Z,8,X)])])]),e("div",ee,[te,e("div",se,[(r(!0),l(y,null,k(_.value,(v,f)=>(r(),l("div",{class:P(`relatedContent ${f===0?"relatedContentOne":""}`),key:f},[e("img",{src:v.cover_image,alt:"The image cannot be displayed properly"},null,8,oe),e("h1",null,c(v.title),1)],2))),128))])])])])]))}},re=w(ne,[["__scopeId","data-v-f9cfc761"]]);export{re as default};