PageSourceSearch

https://www.mechrevo.com/na/_nuxt/CYmFoSnH.js

js mechrevo.com collected 2026-09-24 22:57:40 UTC 2,907 bytes, 1 lines download raw bytes

1import{u as $}from"./7wDI_HF0.js";import{a4 as f,L as b,i as D,o as t,c as o,a,t as c,f as w,k as h,u as g,x as v,H as M,ah as N,g as y}from"./C4-mtOfP.js";import{c as k}from"./BdkEiKsM.js";import{_ as p}from"./DlAUqK2U.js";const H={class:"pc-news-detail-page"},x={class:"detail-container"},C={key:0,class:"loading"},L={key:1,class:"detail-content"},E={class:"detail-title"},j={class:"detail-subtitle"},B={key:0,class:"detail-subtitle"},R={class:"detail-subtitle"},T={key:1,class:"video-container"},V=["src"],Y=["innerHTML"],I={key:2,class:"error"},O={__name:"NewsDetail",setup(m){const r=l=>l?N(l).format("YYYY-MM-DD"):"",u=f(),s=b(),e=v(null),d=v(!0),i=async()=>{try{d.value=!0;const l=u.params.id;if(!l){s.push("/news");return}const _=await k.getContentDetail(l);e.value=_.object,e.value&&g({title:`${e.value.title} - MECHREVO`,meta:[{name:"description",content:e.value.subtitle||e.value.summary||e.value.title}]})}catch(l){console.error("加载新闻详情失败:",l)}finally{d.value=!1}},n=M(()=>!e.value||!e.value.display_products||e.value.display_products.length===0?"":e.value.display_products.map(l=>l.name).join(", "));return D(()=>{i()}),(l,_)=>(t(),o("div",H,[a("div",x,[d.value?(t(),o("div",C,"Loading...")):e.value?(t(),o("div",L,[a("h1",E,c(e.value.title),1),a("div",j,c(e.value.subtitle||e.value.summary),1),e.value.display_products&&e.value.display_products.length>0?(t(),o("div",B,"适合产品: "+c(w(n)),1)):h("",!0),a("div",R,c(r(e.value.created_at)),1),_[0]||(_[0]=a("div",{class:"divider"},null,-1)),e.value.video?.url?(t(),o("div",T,[a("video",{src:e.value.video?.url,controls:""},null,8,V)])):h("",!0),a("div",{class:"detail-body",innerHTML:e.value.content},null,8,Y)])):(t(),o("div",I," Content loading failed "))])]))}},P=p(O,[["__scopeId","data-v-db96354e"]]),A={class:"mobile-news-detail-page"},q={key:0,class:"loading"},z={key:1,class:"detail-content"},F={class:"detail-title"},G={class:"detail-subtitle"},J=["innerHTML"],K={key:2,class:"error"},Q={__name:"NewsDetail",setup(m){const r=f(),u=b(),s=v(null),e=v(!0),d=async()=>{try{e.value=!0;const i=r.params.id;if(!i){u.push("/news");return}const n=await k.getContentDetail(i);s.value=n.object,s.value&&g({title:`${s.value.title} - MECHREVO`})}catch(i){console.error("加载新闻详情失败:",i)}finally{e.value=!1}};return D(()=>{d()}),(i,n)=>(t(),o("div",A,[e.value?(t(),o("div",q,"加载中...")):s.value?(t(),o("div",z,[a("h1",F,c(s.value.title),1),a("div",G,c(s.value.subtitle||s.value.summary),1),n[0]||(n[0]=a("div",{class:"divider"},null,-1)),a("div",{class:"detail-body",innerHTML:s.value.content},null,8,J)])):(t(),o("div",K," 内容加载失败 "))]))}},S=p(Q,[["__scopeId","data-v-1eabcbd9"]]),U={class:"news-detail-page"},W={__name:"[id]",setup(m){const{isMobile:r}=$();return(u,s)=>(t(),o("div",U,[w(r)?(t(),y(S,{key:1})):(t(),y(P,{key:0}))]))}},se=p(W,[["__scopeId","data-v-b185a21f"]]);export{se 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.