| 1 |
- import{_ as M}from"./nuxt-link.0a4e7f67.js";import{E as R}from"./el-card.4ce93ec2.js";import{a as T,E as j}from"./el-row.d1a4f66e.js";import{a as H,b as Q}from"./el-footer.29aa76f6.js";import{_ as W}from"./card.vue.fd6b07f4.js";import{_ as F}from"./index.vue.0876edaa.js";import{f as J,ba as O,aW as U,g as X,r as k,j as K,a6 as P,aX as Y,L as C,o as r,c as m,a as e,m as E,w as n,Q as I,T as S,k as i,n as Z,b as o,d as ee,al as te,G as oe,t as h,p as se,e as ae}from"./entry.41ebcf1f.js";/* empty css */import{u as ne}from"./asyncData.387b1caa.js";import{E as le,a as re}from"./index.ed34e194.js";import{E as ie}from"./index.db1ae98a.js";import{_ as ce}from"./_plugin-vue_export-helper.c27b6911.js";import"./items.vue.4010921a.js";import"./empty_news.04c5d447.js";import"./util.8a34bab4.js";import"./throttle.2c79ce13.js";import"./debounce.a72cd5f0.js";function de(){return $request.get({url:"/pc/index"})}const f=c=>(se("data-v-ef45410c"),c=c(),ae(),c),pe={class:"index"},_e={class:"flex"},me={class:"w-[750px] h-[340px] flex-none mr-5"},fe={class:"service-platform",style:{"border-radius":"8px"}},ue=f(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"农机服务")],-1)),ge=f(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"飞防服务")],-1)),xe=f(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"烘干服务")],-1)),he={class:"bg-white rounded-[8px] w-[750px]"},ve=f(()=>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)),ye={style:{"margin-left":"10px",width:"380px",height:"140px",overflow:"auto","border-bottom":"1px solid #BDC0C6",display:"flex","align-items":"center"}},we=["src"],be={style:{"margin-left":"40px"}},ke={style:{"margin-bottom":"10px",color:"#101010","font-size":"18px"}},Ce={style:{color:"#999999","margin-bottom":"10px"}},Ee={style:{color:"#999999"}},Ie=J({__name:"index",async setup(c){let d,v;const $=O(),N=U(),{data:y}=([d,v]=X(()=>ne(()=>de(),{default:()=>({all:[],hot:[],new:[],page:{}})},"$pqtWcjQkdb")),d=await d,v(),d),p=k(),u=k(),w=K({getGong:[]});P(()=>{u.value=p.value.clientHeight,console.log(u.value,1234);const s=p.value.clientHeight;console.log(s,0xb39638b3dc7),z(1)});const _=s=>{const t={agricultural:"/nong",aerial:"/fei",drying:"/gan",mass:"/message",condi:"/condition"};N.push({path:`${t[s]}`})},z=s=>{let t={type:s};console.log(s,"data"),Y(t).then(l=>{console.log(l,"huoqu接口卡数据 "),w.getGong=l.lists})},b=C(()=>{var s;try{const t=JSON.parse(y.value.page.data);return console.log(t),(s=t.find(l=>l.name==="pc-banner"))==null?void 0:s.content}catch{return{}}}),L=C(()=>{var s;return((s=b.value)==null?void 0:s.data)||[]});return(s,t)=>{const l=M,g=R,x=T,B=j,D=H,A=Q,G=W,V=F,q=oe;return r(),m("div",pe,[e("div",_e,[e("div",me,[b.value.enabled?(r(),E(i(le),{key:0,class:"w-full",trigger:"click",height:"340px"},{default:n(()=>[(r(!0),m(I,null,S(L.value,a=>(r(),E(i(re),{key:a},{default:n(()=>[o(l,{to:a.link.path,target:"_blank"},{default:n(()=>[o(i(ie),{class:"w-full h-full rounded-[8px] bg-white overflow-hidden",src:i($).getImageUrl(a.image),fit:"contain"},null,8,["src"])]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):Z("",!0)]),e("div",fe,[o(A,null,{default:n(()=>[o(D,null,{default:n(()=>[o(B,{gutter:24,class:"service-entries"},{default:n(()=>[o(x,{span:8},{default:n(()=>[o(g,{class:"service-card img1",onClick:t[0]||(t[0]=a=>_("agricultural")),style:{width:"100px",height:"300px"}},{default:n(()=>[ue]),_:1})]),_:1}),o(x,{span:8},{default:n(()=>[o(g,{class:"service-card img2",onClick:t[1]||(t[1]=a=>_("aerial")),style:{width:"100px",height:"300px"}},{default:n(()=>[ge]),_:1})]),_:1}),o(x,{span:8},{default:n(()=>[o(g,{class:"service-card img3",onClick:t[2]||(t[2]=a=>_("drying")),style:{width:"100px",height:"300px"}},{default:n(()=>[xe]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),e("div",{class:"mt-5 flex",ref_key:"mains",ref:p},[o(G,{ref_key:"mains",ref:p,link:"/information",class:"w-[750px] flex-none mr-5",header:"全部资讯",data:i(y).all,"only-title":!1},null,8,["data"]),e("div",he,[e("div",{class:"flex items-center h-[60px] border-b border-br ml-5 pr-5",onClick:t[3]||(t[3]=a=>_("condi")),style:{"margin-bottom":"20rpx"}},[ve,o(l,{style:{color:"#666666",cursor:"pointer","align-items":"center"},class:"flex"},{default:n(()=>[ee(" 更多 "),o(V,{name:"el-icon-ArrowRight",size:14}),o(q)]),_:1})]),e("div",{style:te([{width:"420px","margin-top":"20px",overflow:"auto"},{height:u.value-100+"px"}])},[(r(!0),m(I,null,S(w.getGong,a=>(r(),m("div",ye,[e("img",{style:{width:"100px",height:"100px"},src:a.images,alt:""},null,8,we),e("div",be,[e("div",ke,h(a.title),1),e("div",Ce,"类别:"+h(a.cateInfo.name),1),e("div",Ee,"地址:"+h(a.area==null?"":a.area.title),1)])]))),256))],4)])],512)])}}});const We=ce(Ie,[["__scopeId","data-v-ef45410c"]]);export{We as default};
|