| 1 |
- import{_ as L}from"./nuxt-link.c437d508.js";import{E as V}from"./el-card.b3e0be92.js";import{a as q,E as A}from"./el-row.4573850e.js";import{a as G,b as M}from"./el-footer.e869c86c.js";import{_ as R}from"./card.vue.63f86969.js";import{f as T,am as F,an as H,g as J,j as O,C as Q,D as U,y,o as r,c as _,a as e,m as b,w as s,H as w,I as k,k as i,n as W,b as o,d as K,B as P,t as C,p as X,e as Y}from"./entry.32bca663.js";/* empty css */import{u as Z}from"./asyncData.0d7e5235.js";import{E as ee,a as te}from"./index.510ef7a7.js";import{E as oe}from"./index.1d8d6300.js";import{_ as se}from"./_plugin-vue_export-helper.c27b6911.js";import"./items.vue.03ab277d.js";import"./empty_news.8be6e79a.js";import"./throttle.3b0cf71e.js";import"./debounce.36839b66.js";function ae(){return $request.get({url:"/pc/index"})}const m=c=>(X("data-v-6415f38a"),c=c(),Y(),c),ne={class:"index"},le={class:"flex"},re={class:"w-[750px] h-[340px] flex-none mr-5"},ie={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)),pe=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)),_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"}},ge={style:{"margin-left":"10px",width:"380px",height:"140px",overflow:"auto","border-bottom":"1px solid #BDC0C6",display:"flex","align-items":"center"}},xe=["src"],he={style:{"margin-left":"40px"}},ve={style:{"margin-bottom":"20px",color:"#101010","font-size":"18px"}},ye={style:{color:"#999999"}},be=T({__name:"index",async setup(c){let p,g;const E=F(),I=H(),{data:x}=([p,g]=J(()=>Z(()=>ae(),{default:()=>({all:[],hot:[],new:[],page:{}})},"$pqtWcjQkdb")),p=await p,g(),p),h=O({getGong:[]});Q(()=>{S(1)});const d=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(x.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=L,u=V,f=q,z=A,N=G,B=M,D=R,j=P;return r(),_("div",ne,[e("div",le,[e("div",re,[v.value.enabled?(r(),b(i(ee),{key:0,class:"w-full",trigger:"click",height:"340px"},{default:s(()=>[(r(!0),_(w,null,k($.value,n=>(r(),b(i(te),{key:n},{default:s(()=>[o(l,{to:n.link.path,target:"_blank"},{default:s(()=>[o(i(oe),{class:"w-full h-full rounded-[8px] bg-white overflow-hidden",src:i(E).getImageUrl(n.image),fit:"contain"},null,8,["src"])]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):W("",!0)]),e("div",ie,[o(B,null,{default:s(()=>[o(N,null,{default:s(()=>[o(z,{gutter:24,class:"service-entries"},{default:s(()=>[o(f,{span:8},{default:s(()=>[o(u,{class:"service-card",onClick:t[0]||(t[0]=n=>d("agricultural")),style:{width:"100px",height:"300px","background-image":"url(https://images.pexels.com/photos/2132171/pexels-photo-2132171.jpeg)","background-size":"cover"}},{default:s(()=>[ce]),_:1})]),_:1}),o(f,{span:8},{default:s(()=>[o(u,{class:"service-card",onClick:t[1]||(t[1]=n=>d("aerial")),style:{width:"100px",height:"300px","background-image":"url(https://images.pexels.com/photos/2933243/pexels-photo-2933243.jpeg)","background-size":"cover"}},{default:s(()=>[pe]),_:1})]),_:1}),o(f,{span:8},{default:s(()=>[o(u,{class:"service-card",onClick:t[2]||(t[2]=n=>d("drying")),style:{width:"100px",height:"300px","background-image":"url(https://images.pexels.com/photos/5273634/pexels-photo-5273634.jpeg)","background-size":"cover"}},{default:s(()=>[de]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),e("div",_e,[o(D,{link:"/information",class:"w-[750px] flex-none mr-5",header:"全部资讯",data:i(x).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=>d("condi")),style:{"margin-bottom":"20rpx"}},[ue,o(l,{style:{color:"#666666"},class:"flex"},{default:s(()=>[K(" 更多 "),o(j)]),_:1})]),e("div",fe,[(r(!0),_(w,null,k(h.getGong,n=>(r(),_("div",ge,[e("img",{style:{width:"100px",height:"100px"},src:n.images,alt:""},null,8,xe),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-6415f38a"]]);export{Ae as default};
|