PageSourceSearch

https://www.cbjai.com.cn/assets/chunk2.js

js cbjai.com.cn collected 2026-10-08 02:12:17 UTC 3,857 bytes, 1 lines download raw bytes

1import{e as N,r as d,f,g as R,h as W,c as o,o as n,a,d as c,t as r,n as k,F as y,b as w,i as j,w as B,T as D,j as C,_ as E}from"./index.js";import{a as $,s as q}from"./chunk9.js";import"./chunk10.js";import"./chunk11.js";const F=()=>({bannerImg:"",introVideo:"",hero:{logo:"",bookImg:"",qrCode:"",title:"",badge:"",publishText:"",scanText:""},intro:{title:"",content:""},tabs:[]}),H=i=>i.externalLink?i.externalLink:`/detail/${i.id}`,O=i=>{const _=i.picWap||i.picWeb||"";return{bannerImg:_,introVideo:i.introVideo||"",hero:{logo:"",bookImg:_,qrCode:"",title:i.title||"",badge:"",publishText:"",scanText:""},intro:{title:i.title||"",content:i.intro||""},tabs:(i.directoryList||[]).filter(l=>(l.reportList||[]).length>0).map(l=>({key:String(l.id),label:l.name,list:(l.reportList||[]).map(t=>({id:t.id,title:t.title,intro:t.intro||"",cover:t.picList?.[0]||"",link:H(t)}))}))}},U={class:"activity-share"},z={class:"share-page"},M={key:0,class:"hero-banner-video"},G=["poster","src"],J={key:1,class:"hero-banner-img"},K=["src","alt"],P={key:2,class:"intro-section"},Q={key:0,class:"intro-title"},X={key:1,class:"intro-content-wrap"},Y={key:3,class:"tab-section"},Z={class:"tab-nav"},tt=["onClick"],et={class:"content-section"},ot=["onClick"],nt={class:"item-info"},st={class:"item-title"},it={key:0,class:"item-intro"},at={class:"item-cover"},lt=["src","alt"],ct={key:1,class:"cover-placeholder"},rt={key:0,class:"empty-tip"},ut=N({__name:"share",setup(i){const _=W(),l=d({}),t=d(F()),u=d(0),v=d(!1),p=d(!1),b=d(null),x=()=>{C(()=>{const e=b.value;if(!e){p.value=!1;return}v.value=!1,C(()=>{p.value=e.scrollHeight>e.clientHeight+1})})},I=()=>{v.value=!v.value},m=f(()=>t.value.tabs[u.value]?.list||[]),T=f(()=>t.value.tabs[u.value]?.label||""),L=e=>{u.value=e},V=e=>{e&&(window.location.href=e)},S=async e=>{const{code:h,data:s}=await $.getActivitySource({id:e});h===200&&s&&(l.value=s,t.value=O(s),u.value=0,v.value=!1,x())},A=async()=>{const e=window.location.href.split("#")[0],h={title:l.value.title||t.value.intro.title,desc:l.value.intro||t.value.intro.content||"",link:e,imgUrl:"https://pic.cbjai.com.cn/static/logo_app_wx_share.jpg"};await q(h,e)};return R(async()=>{const e=_.params.id||"";if(console.log(e,"shareNo"),!e){window.location.href="http://www.cb.com.cn";return}await S(e),await A()}),(e,h)=>(n(),o("div",U,[a("div",z,[t.value.introVideo?(n(),o("section",M,[a("video",{playsinline:"",controls:"",poster:t.value.bannerImg||"",src:t.value.introVideo}," 您的浏览器不支持视频播放 ",8,G)])):t.value.bannerImg?(n(),o("section",J,[a("img",{src:t.value.bannerImg,alt:t.value.intro.title},null,8,K)])):c("",!0),t.value.intro.title||t.value.intro.content?(n(),o("section",P,[t.value.intro.title?(n(),o("h2",Q,r(t.value.intro.title),1)):c("",!0),t.value.intro.content?(n(),o("div",X,[a("p",{ref_key:"introContentRef",ref:b,class:k(["intro-content",{"is-collapsed":!v.value}])},r(t.value.intro.content),3),p.value?(n(),o("button",{key:0,type:"button",class:"intro-toggle",onClick:I},r(v.value?"↑ 收起":"[ 查看详情 ]"),1)):c("",!0)])):c("",!0)])):c("",!0),t.value.tabs.length?(n(),o("section",Y,[a("ul",Z,[(n(!0),o(y,null,w(t.value.tabs,(s,g)=>(n(),o("li",{key:s.key,class:k({active:u.value===g}),onClick:vt=>L(g)},r(s.label),11,tt))),128))])])):c("",!0),a("section",et,[j(D,{name:"tab-switch",mode:"out-in"},{default:B(()=>[(n(),o("ul",{key:u.value,class:"content-list"},[(n(!0),o(y,null,w(m.value,s=>(n(),o("li",{key:s.id,class:"content-item",onClick:g=>V(s.link)},[a("div",nt,[a("p",st,r(s.title),1),s.intro?(n(),o("p",it,r(s.intro),1)):c("",!0)]),a("div",at,[s.cover?(n(),o("img",{key:0,src:s.cover,alt:s.title},null,8,lt)):(n(),o("div",ct,[a("span",null,r(T.value),1)]))])],8,ot))),128))]))]),_:1}),m.value.length?c("",!0):(n(),o("p",rt,"暂无内容"))])])]))}}),gt=E(ut,[["__scopeId","data-v-67beb2eb"]]);export{gt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.