index.cd901414.js 4.8 KB

1
  1. import{_ as A}from"./nuxt-link.93b48b2f.js";import{E as M}from"./el-card.7afb9ff1.js";import{a as T,E as j}from"./el-row.b6f83943.js";import{a as H,b as Q}from"./el-footer.78899ef1.js";import{_ as R}from"./card.vue.cae3cc25.js";import{f as W,b7 as F,aW as J,g as O,r as k,j as U,a6 as Y,aY as K,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 P,b as o,d as X,al as Z,G as ee,t as h,p as te,e as oe}from"./entry.b7903528.js";/* empty css */import{u as se}from"./asyncData.068bb708.js";import{E as ae,a as ne}from"./index.530a457e.js";import{E as le}from"./index.5941adba.js";import{_ as re}from"./_plugin-vue_export-helper.c27b6911.js";import"./items.vue.e7a829c1.js";import"./empty_news.bbaf7d65.js";import"./throttle.10d2dc0e.js";import"./debounce.adc59cc5.js";function ie(){return $request.get({url:"/pc/index"})}const f=c=>(te("data-v-f86a0700"),c=c(),oe(),c),ce={class:"index"},de={class:"flex"},pe={class:"w-[750px] h-[340px] flex-none mr-5"},_e={class:"service-platform",style:{"border-radius":"8px"}},me=f(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"农机服务")],-1)),fe=f(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"飞防服务")],-1)),ue=f(()=>e("div",{class:"service-info"},[e("div",{style:{color:"#fff","font-size":"28px","margin-top":"30px"}},"烘干服务")],-1)),ge={class:"bg-white rounded-[8px] w-[750px]"},xe=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)),he={style:{"margin-left":"10px",width:"380px",height:"140px",overflow:"auto","border-bottom":"1px solid #BDC0C6",display:"flex","align-items":"center"}},ve=["src"],ye={style:{"margin-left":"40px"}},we={style:{"margin-bottom":"10px",color:"#101010","font-size":"18px"}},be={style:{color:"#999999","margin-bottom":"10px"}},ke={style:{color:"#999999"}},Ce=W({__name:"index",async setup(c){let d,v;const $=F(),N=J(),{data:y}=([d,v]=O(()=>se(()=>ie(),{default:()=>({all:[],hot:[],new:[],page:{}})},"$pqtWcjQkdb")),d=await d,v(),d),p=k(),u=k(),w=U({getGong:[]});Y(()=>{u.value=p.value.clientHeight,console.log(u.value,1234);const s=p.value.clientHeight;console.log(s,0xb39638b3dc7),L(1)});const _=s=>{const t={agricultural:"/nong",aerial:"/fei",drying:"/gan",mass:"/message",condi:"/condition"};N.push({path:`${t[s]}`})},L=s=>{let t={type:s};console.log(s,"data"),K(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{}}}),z=C(()=>{var s;return((s=b.value)==null?void 0:s.data)||[]});return(s,t)=>{const l=A,g=M,x=T,B=j,D=H,G=Q,V=R,q=ee;return r(),m("div",ce,[e("div",de,[e("div",pe,[b.value.enabled?(r(),E(i(ae),{key:0,class:"w-full",trigger:"click",height:"340px"},{default:n(()=>[(r(!0),m(I,null,S(z.value,a=>(r(),E(i(ne),{key:a},{default:n(()=>[o(l,{to:a.link.path,target:"_blank"},{default:n(()=>[o(i(le),{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})):P("",!0)]),e("div",_e,[o(G,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(()=>[me]),_: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(()=>[fe]),_: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(()=>[ue]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])]),e("div",{class:"mt-5 flex",ref_key:"mains",ref:p},[o(V,{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",ge,[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"}},[xe,o(l,{style:{color:"#666666"},class:"flex"},{default:n(()=>[X(" 更多 "),o(q)]),_:1})]),e("div",{style:Z([{width:"420px","margin-top":"20px",overflow:"auto"},{height:u.value-100+"px"}])},[(r(!0),m(I,null,S(w.getGong,a=>(r(),m("div",he,[e("img",{style:{width:"100px",height:"100px"},src:a.images,alt:""},null,8,ve),e("div",ye,[e("div",we,h(a.title),1),e("div",be,"类别:"+h(a.cateInfo.name),1),e("div",ke,"地址:"+h(a.area==null?"":a.area.title),1)])]))),256))],4)])],512)])}}});const je=re(Ce,[["__scopeId","data-v-f86a0700"]]);export{je as default};