PageSourceSearch

https://www.maxvision.com.cn/_nuxt/AVW97TPU.js

js maxvision.com.cn collected 2026-10-05 20:43:45 UTC 9,289 bytes, 1 lines download raw bytes

1import{_ as O}from"./BdIt4Qjf.js";import{_ as Y}from"./Cg0RpXzs.js";import{d as q,C as J,r as x,w as K,c as m,D as Q,G as X,y as Z,o as ee,a as te,b as o,h as l,f,u as n,p as U,i as _,F as b,k as y,m as $,t as h,e as t,n as se,_ as oe,j as le}from"./Cx99og_4.js";import{_ as ne}from"./W6WuSABM.js";import{g as re}from"./Ck_kXx-e.js";import{a as ie}from"./BQeKadR-.js";import{g as k}from"./D9HiDbSr.js";import{u as ae}from"./LISqIWXf.js";import{u as ce}from"./CabCVrg6.js";import{u as de}from"./DPfvyzPY.js";import{_ as ue}from"./DlAUqK2U.js";const fe={class:"relative w-full h-fit"},me=["src","alt"],he={class:"bg-white"},_e={class:"w-full"},ve={class:"sticky top-16 bg-white z-30 border-b shadow-sm"},ge={class:"w-full px-4 pt-4"},pe={class:"mb-4"},we={key:0,class:"flex gap-1 overflow-x-auto scrollbar-hide",style:{"scrollbar-width":"none","-ms-overflow-style":"none"}},xe=["onClick"],be={class:"w-full px-4 py-8"},ye={key:1,class:"text-center py-12"},ke={class:"text-muted-foreground"},Ce={key:2,class:"space-y-16"},Le={key:0,id:"overview",class:"scroll-mt-24"},Re={class:"prose max-w-none"},Be=["innerHTML"],Pe={key:1,class:"indent-8 text-base leading-relaxed text-foreground"},Se={key:1,id:"features",class:"scroll-mt-24"},je={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Ae={class:"flex justify-center mb-4 py-8"},Ee={key:0,class:"w-16 h-fit flex items-center justify-center overflow-hidden"},Ie=["src","alt"],Te={key:1,class:"w-16 h-fit rounded-full bg-primary/10 flex items-center justify-center"},ze={class:"text-lg font-semibold mb-2"},Ne={key:0,class:"text-sm text-muted-foreground"},Ue={key:2,id:"products",class:"scroll-mt-24"},$e={key:0,class:"flex items-center gap-2"},De={key:0,class:"w-full h-fit overflow-hidden bg-muted"},Fe=["src","alt"],Ge={key:1,class:"w-full h-48 bg-muted flex items-center justify-center"},Me={class:"p-4"},We={class:"text-base font-semibold mb-2 line-clamp-2 group-hover:text-primary transition-colors"},He=["innerHTML"],Ve={key:1,class:"text-center py-12 text-muted-foreground"},Oe={key:3,id:"scenarios",class:"scroll-mt-24"},Ye={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},qe={class:"w-full h-fit overflow-hidden bg-muted"},Je=["src","alt"],Ke={key:1,class:"w-full h-full bg-gradient-to-br from-muted to-muted/50"},Qe={class:"absolute bottom-4 left-4 text-white"},Xe={class:"text-xl font-semibold mb-1"},Ze=q({__name:"[id]",async setup(et){let g,R;const D=J(),{id:C}=D.params,{contentWidth:B}=ae(),L=Array.isArray(C)?C[0]:C,c=x(null),P=x(!1),S=x(!0),{data:i,pending:F,error:j}=([g,R]=K(()=>ce(`solution-${L}`,()=>L?ie(L).then(s=>s.success&&s.data?s.data:null).catch(s=>(console.error("获取方案详情出错:",s),null)):Promise.resolve(null))),g=await g,R(),g),A=m(()=>{const s=k(i.value?.fileRelationsGroup||{},"ows_solution_pc_head_cover");return s.length>0?s[0]:null});function G(s,r){if(!s||s.length===0)return"";const u=s.find(d=>d.fileUsage===r);return u?.fileUrl?re(u.fileUrl):""}Q(()=>{i.value&&de({title:`${i.value.title||"解决方案详情"} - 盛视科技`,description:i.value.description||""})}),X("breadcrumbData",m(()=>({typeName:i.value?.categoryName,solutionName:i.value?.title})));const p=x("overview"),E=m(()=>!!(i.value?.content||i.value?.description)),I=m(()=>!!(i.value?.features&&i.value.features.length>0)),T=m(()=>!!(i.value?.products&&i.value.products.length>0)),z=m(()=>!!(i.value?.scenes&&i.value.scenes.length>0)),w=m(()=>[{id:"overview",label:"方案概述",hasContent:E.value},{id:"features",label:"方案特点",hasContent:I.value},{id:"products",label:"相关产品",hasContent:T.value},{id:"scenarios",label:"应用场景",hasContent:z.value}].filter(r=>r.hasContent));Z(w,s=>{s.length>0&&!s.some(r=>r.id===p.value)&&(p.value=s?.[0]?.id||"")},{immediate:!0});{const s=()=>{const u=w.value.map(d=>{const a=document.getElementById(d.id);return a?{id:d.id,offset:a.getBoundingClientRect().top}:null}).filter(Boolean).filter(d=>d.offset<=200).sort((d,a)=>a.offset-d.offset)[0];u&&(p.value=u.id)};ee(()=>{window.addEventListener("scroll",s,{passive:!0}),s(),c.value&&(c.value.addEventListener("scroll",v,{passive:!0}),setTimeout(()=>{v()},100)),window.addEventListener("resize",v,{passive:!0})}),te(()=>{window.removeEventListener("scroll",s),c.value&&c.value.removeEventListener("scroll",v),window.removeEventListener("resize",v)})}function M(s){const r=document.getElementById(s);if(r){const a=r.getBoundingClientRect().top+window.pageYOffset-150;window.scrollTo({top:a,behavior:"smooth"})}}function N(s){const r=k(s?.fileRelationsGroup||{},"ows_product_list_cover");return r.length>0&&r[0]?r[0]:null}function v(){if(!c.value)return;const{scrollLeft:s,scrollWidth:r,clientWidth:u}=c.value;P.value=s>0,S.value=s<r-u-10}function W(){c.value&&c.value.scrollBy({left:-400,behavior:"smooth"})}function H(){if(!c.value)return;c.value.scrollBy({left:400,behavior:"smooth"})}return(s,r)=>{const u=O,d=Y,a=oe,V=ne;return t(),o("div",null,[l("section",fe,[n(A)?(t(),o("img",{key:0,src:n(A),alt:n(i)?.title||"解决方案",class:"w-full h-auto object-contain"},null,8,me)):f("",!0)]),l("div",he,[l("div",_e,[l("div",ve,[l("div",ge,[l("div",{class:"mx-auto",style:U({maxWidth:`${n(B)}px`})},[l("div",pe,[_(u)]),n(w).length>0?(t(),o("nav",we,[(t(!0),o(b,null,y(n(w),e=>(t(),o("button",{key:e.id,class:se(["px-6 py-3 text-lg font-medium whitespace-nowrap transition-colors relative shrink-0",[n(p)===e.id?"text-primary border-b-2 border-primary":"text-muted-foreground hover:text-foreground"]]),onClick:tt=>M(e.id)},h(e.label),11,xe))),128))])):f("",!0)],4)])]),l("div",be,[l("div",{class:"mx-auto",style:U({maxWidth:`${n(B)}px`})},[n(F)?(t(),$(d,{key:0,"full-screen":!1,text:"加载中..."}
1)):n(j)||!n(i)?(t(),o("div",ye,[_(a,{name:"lucide:alert-circle",class:"h-12 w-12 text-destructive mx-auto mb-4"}),l("p",ke,h(n(j)?"加载失败,请稍后重试":"未找到该解决方案"),1)])):(t(),o("div",Ce,[n(E)?(t(),o("section",Le,[r[0]||(r[0]=l("h2",{class:"text-2xl font-bold mb-4"}," 方案概述 ",-1)),l("div",Re,[n(i).content?(t(),o("div",{key:0,class:"text-base leading-relaxed text-foreground",innerHTML:n(i).content},null,8,Be)):(t(),o("p",Pe,h(n(i).description||"暂无方案概述"),1))])])):f("",!0),n(I)?(t(),o("section",Se,[r[1]||(r[1]=l("h2",{class:"text-2xl font-bold mb-6"}," 方案特点 ",-1)),l("div",je,[(t(!0),o(b,null,y(n(i).features,e=>(t(),o("div",{key:e.id,class:"bg-white border rounded-lg p-6 text-center hover:shadow-lg transition-shadow"},[l("div",Ae,[e.fileRelations&&e.fileRelations.length>0?(t(),o("div",Ee,[l("img",{src:G(e.fileRelations,"ows_solution_feature_cover"),alt:e.featureTitle||"特点",class:"w-full object-contain"},null,8,Ie)])):(t(),o("div",Te,[_(a,{name:e.featureIcon||"lucide:check-circle",class:"h-8 w-8 text-primary"},null,8,["name"])]))]),l("h3",ze,h(e.featureTitle),1),e.featureDescription?(t(),o("p",Ne,h(e.featureDescription),1)):f("",!0)]))),128))])])):f("",!0),n(T)?(t(),o("section",Ue,[r[2]||(r[2]=l("h2",{class:"text-2xl font-bold mb-6"}," 相关产品 ",-1)),n(i)?.products&&n(i).products.length>0?(t(),o("div",$e,[n(P)?(t(),o("button",{key:0,class:"shrink-0 w-10 h-10 rounded-full bg-white/90 hover:bg-white shadow-lg flex items-center justify-center transition-all hover:scale-110",onClick:W},[_(a,{name:"lucide:chevron-left",class:"h-6 w-6 text-gray-700"})])):f("",!0),l("div",{ref_key:"relatedProductsScrollRef",ref:c,class:"flex-1 flex gap-6 overflow-x-auto pb-4 scrollbar-hide",style:{"scrollbar-width":"none","-ms-overflow-style":"none"}},[(t(!0),o(b,null,y(n(i).products,e=>(t(),$(V,{key:e.id,to:`/products/product/${e.id}`,class:"group relative overflow-hidden rounded-lg border bg-card hover:shadow-lg transition-all shrink-0 w-80"},{default:le(()=>[N(e)?(t(),o("div",De,[l("img",{src:N(e)||void 0,alt:e.name||e.title,class:"w-full h-auto object-contain transition-transform duration-300 group-hover:scale-105",loading:"lazy"},null,8,Fe)])):(t(),o("div",Ge,[_(a,{name:"lucide:package",class:"h-16 w-16 text-muted-foreground/30"})])),l("div",Me,[l("h3",We,h(e.name||e.title),1),e.description?(t(),o("p",{key:0,class:"text-xs text-muted-foreground line-clamp-2",innerHTML:e.description},null,8,He)):f("",!0)])]),_:2},1032,["to"]))),128))],512),n(S)?(t(),o("button",{key:1,class:"shrink-0 w-10 h-10 rounded-full bg-white/90 hover:bg-white shadow-lg flex items-center justify-center transition-all hover:scale-110",onClick:H},[_(a,{name:"lucide:chevron-right",class:"h-6 w-6 text-gray-700"})])):f("",!0)])):(t(),o("div",Ve," 暂无相关产品 "))])):f("",!0),n(z)?(t(),o("section",Oe,[r[4]||(r[4]=l("h2",{class:"text-2xl font-bold mb-6"}," 应用场景 ",-1)),l("div",Ye,[(t(!0),o(b,null,y(n(i).scenes,e=>(t(),o("div",{key:e.id,class:"relative group overflow-hidden rounded-lg"},[l("div",qe,[n(k)(e?.fileRelationsGroup,"ows_scene_cover")?.length>0?(t(),o("img",{key:0,src:n(k)(e?.fileRelationsGroup,"ows_scene_cover")?.[0],alt:e.name||e.title,class:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"},null,8,Je)):(t(),o("div",Ke)),r[3]||(r[3]=l("div",{class:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"},null,-1)),l("div",Qe,[l("h3",Xe,h(e.name||e.title),1)])])]))),128))])])):f("",!0)]))],4)])])])])}}}),mt=ue(Ze,[["__scopeId","data-v-1954fd11"]]);export{mt 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.