fulinqingjie/public/output/public/_nuxt/EffWuIhL.js

2 lines
3.0 KiB
JavaScript

import{_ as w}from"./BsChYa3B.js";import{_ as A}from"./2HdClNfd.js";import{_ as I}from"./C584n0hD.js";import{u as T}from"./CbPrn0tb.js";import{d as k,u as D,w as C,c as d,a as u,f as o,b as t,t as m,g as L,o as _,h as p}from"./BVoAI2xn.js";import{u as E}from"./RFvW8Sgv.js";import{u as F}from"./P_oyKTOd.js";const N={class:"w-full"},P={class:"hidden sm:flex sticky top-[56px] sm:top-[64px] md:top-[80px] lg:top-[100px] xl:top-[135px] z-[999] w-full h-[56px] flex-row items-center justify-center bg-[#F2F2F2]"},S={class:"flex flex-row justify-end items-center w-full h-full layout"},q={class:"h-full text-[12px] pl-[12px] text-[#999999] border-l-[1px] flex flex-row items-center gap-[8px]"},B=["href"],H={class:"w-full bg-white"},M={class:"layout pt-[28px] sm:pt-[34px] md:pt-[44px] lg:pt-[54px] xl:pt-[64px] pb-[40px] sm:pb-[48px] md:pb-[56px] lg:pb-[64px] xl:pb-[72px]"},R={class:"flex flex-col items-center w-full"},V={class:"mt-[24px] sm:mt-[28px] md:mt-[32px] lg:mt-[36px] xl:mt-[40px] flex flex-col items-center gap-[24px] sm:gap-[28px] md:gap-[32px] lg:gap-[36px] xl:gap-[40px]"},$=["innerHTML"],W=k({__name:"[id]",async setup(j){let a,x;const c=D(),f=T(),r=p(()=>String(c.params.id||"")),n=p(()=>(String(c.query.type||"")==="case_study","case_study")),g={case_study:s=>`/api/case_studies/${s}`},v={case_study:{headerTitle:"服务案例",headerImg:"/images/服务案例/服务案例.png",listLabel:"服务案例",listPath:"/service"}},i=p(()=>v[n.value]),{data:b}=([a,x]=C(async()=>E(()=>`detail-${n.value}-${r.value}`,async()=>{if(!r.value)return null;const s=g[n.value](r.value);return await f.get(s)},{watch:[r,n]})),a=await a,x(),a),e=p(()=>{const s=b.value;return s?.code===200?s.data:null});return F({title:()=>e.value?.title||"详情",description:()=>e.value?.description||"",ogTitle:()=>e.value?.title||"",ogDescription:()=>e.value?.description||"",ogImage:()=>e.value?.cover||void 0}),(s,l)=>{const h=w,y=A;return _(),d("div",N,[u(h,{title:o(i).headerTitle,img:o(i).headerImg},null,8,["title","img"]),t("div",P,[t("div",S,[t("div",q,[l[0]||(l[0]=t("img",{class:"w-[14px] h-[14px]",src:I,alt:""},null,-1)),l[1]||(l[1]=t("a",{href:"/home",class:"hover:text-[#0A357D] transition-colors"},"首页",-1)),l[2]||(l[2]=t("span",{class:"inline-block border-solid border-transparent border-l-[2px] border-y-[2px] border-l-current text-[#999999]"},null,-1)),t("a",{href:o(i).listPath,class:"hover:text-[#0A357D] transition-colors"},m(o(i).listLabel),9,B),l[3]||(l[3]=t("span",{class:"inline-block border-solid border-transparent border-l-[2px] border-y-[2px] border-l-current text-[#999999]"},null,-1)),t("span",null,m(o(e)?.title||""),1)])])]),t("div",H,[t("div",M,[t("div",R,[u(y,{title:o(e)?.title||""},null,8,["title"])]),t("div",V,[o(e)?.content?(_(),d("div",{key:0,class:"w-full text-left text-[12px] sm:text-[14px] md:text-[16px] lg:text-[18px] xl:text-[18px] text-[#333333] leading-relaxed [&_img]:max-w-full [&_img]:h-auto [&_img]:block [&_img]:my-[12px] [&_p]:mb-[12px]",innerHTML:o(e).content},null,8,$)):L("",!0)])])])])}}});export{W as default};