index.207343d2.js 4.5 KB

1
  1. import{_ as G}from"./nuxt-link.2b7c59c6.js";import{E as V}from"./el-card.82e0f2ef.js";import{a as q,E as A}from"./el-row.a0d994c8.js";import{a as M,b as T}from"./el-footer.b311ba5e.js";import{_ as j}from"./card.vue.b0cc6e00.js";import{f as Q,b6 as R,aW as W,g as F,j as J,a6 as O,aX as U,L as y,o as i,c as _,a as e,m as b,w as s,Q as w,T as k,k as r,n as X,b as o,d as H,G as K,t as C,p as P,e as Y}from"./entry.72b914a2.js";/* empty css */import{u as Z}from"./asyncData.6f204e21.js";import{E as ee,a as te}from"./index.ae341d65.js";import{E as oe}from"./index.2bf8f145.js";import{_ as se}from"./_plugin-vue_export-helper.c27b6911.js";import"./items.vue.6d484abc.js";import"./empty_news.fa1aff12.js";import"./throttle.9e0d392e.js";import"./debounce.e714b03d.js";function ae(){return $request.get({url:"/pc/index"})}const m=c=>(P("data-v-b33b856e"),c=c(),Y(),c),ne={class:"index"},le={class:"flex"},ie={class:"w-[750px] h-[340px] flex-none mr-5"},re={class:"service-platform",style:{"border-radius":"8px"}},ce=m(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"农机服务")],-1)),de=m(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"飞防服务")],-1)),pe=m(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"烘干服务")],-1)),_e={class:"mt-5 flex"},me={class:"bg-white rounded-[8px] w-[750px]"},ue=m(()=>e("div",{class:"flex-1 flex min-w-0 mr-4 h-full"},[e("span",{class:"text-2xl truncate font-medium h-full border-b-2 border-tx-primary mt-[1px] flex items-center"}," 供需大厅 ")],-1)),fe={style:{width:"420px",height:"320px","margin-top":"20px",overflow:"auto"}},xe={style:{"margin-left":"10px",width:"380px",height:"140px",overflow:"auto","border-bottom":"1px solid #BDC0C6",display:"flex","align-items":"center"}},ge=["src"],he={style:{"margin-left":"40px"}},ve={style:{"margin-bottom":"20px",color:"#101010","font-size":"18px"}},ye={style:{color:"#999999"}},be=Q({__name:"index",async setup(c){let d,x;const E=R(),I=W(),{data:g}=([d,x]=F(()=>Z(()=>ae(),{default:()=>({all:[],hot:[],new:[],page:{}})},"$pqtWcjQkdb")),d=await d,x(),d),h=J({getGong:[]});O(()=>{S(1)});const p=a=>{const t={agricultural:"/nong",aerial:"/fei",drying:"/gan",mass:"/message",condi:"/condition"};I.push({path:`${t[a]}`})},S=a=>{let t={type:a};console.log(a,"data"),U(t).then(l=>{console.log(l,"huoqu接口卡数据 "),h.getGong=l.lists})},v=y(()=>{var a;try{const t=JSON.parse(g.value.page.data);return console.log(t),(a=t.find(l=>l.name==="pc-banner"))==null?void 0:a.content}catch{return{}}}),$=y(()=>{var a;return((a=v.value)==null?void 0:a.data)||[]});return(a,t)=>{const l=G,u=V,f=q,N=A,L=M,B=T,D=j,z=K;return i(),_("div",ne,[e("div",le,[e("div",ie,[v.value.enabled?(i(),b(r(ee),{key:0,class:"w-full",trigger:"click",height:"340px"},{default:s(()=>[(i(!0),_(w,null,k($.value,n=>(i(),b(r(te),{key:n},{default:s(()=>[o(l,{to:n.link.path,target:"_blank"},{default:s(()=>[o(r(oe),{class:"w-full h-full rounded-[8px] bg-white overflow-hidden",src:r(E).getImageUrl(n.image),fit:"contain"},null,8,["src"])]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):X("",!0)]),e("div",re,[o(B,null,{default:s(()=>[o(L,null,{default:s(()=>[o(N,{gutter:24,class:"service-entries"},{default:s(()=>[o(f,{span:8},{default:s(()=>[o(u,{class:"service-card img1",onClick:t[0]||(t[0]=n=>p("agricultural")),style:{width:"100px",height:"300px"}},{default:s(()=>[ce]),_:1})]),_:1}),o(f,{span:8},{default:s(()=>[o(u,{class:"service-card img2",onClick:t[1]||(t[1]=n=>p("aerial")),style:{width:"100px",height:"300px"}},{default:s(()=>[de]),_:1})]),_:1}),o(f,{span:8},{default:s(()=>[o(u,{class:"service-card img3",onClick:t[2]||(t[2]=n=>p("drying")),style:{width:"100px",height:"300px"}},{default:s(()=>[pe]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),e("div",_e,[o(D,{link:"/information",class:"w-[750px] flex-none mr-5",header:"全部资讯",data:r(g).all,"only-title":!1},null,8,["data"]),e("div",me,[e("div",{class:"flex items-center h-[60px] border-b border-br ml-5 pr-5",onClick:t[3]||(t[3]=n=>p("condi")),style:{"margin-bottom":"20rpx"}},[ue,o(l,{style:{color:"#666666"},class:"flex"},{default:s(()=>[H(" 更多 "),o(z)]),_:1})]),e("div",fe,[(i(!0),_(w,null,k(h.getGong,n=>(i(),_("div",xe,[e("img",{style:{width:"100px",height:"100px"},src:n.images,alt:""},null,8,ge),e("div",he,[e("div",ve,C(n.title),1),e("div",ye,"联系方式:"+C(n.mobile),1)])]))),256))])])])])}}});const Ae=se(be,[["__scopeId","data-v-b33b856e"]]);export{Ae as default};