PageSourceSearch

https://www.mtcxx.com/build/assets/Search-BpDjYyNc.js

js mtcxx.com collected 2026-10-03 00:57:01 UTC 4,402 bytes, 1 lines download raw bytes

1import{r as i,p as A,q as N,s as T,l as B,c as C,w as c,x as h,o as D,a as e,k as v,J as U,b as n,f as y,u as b,i as x,D as V,E as $}from"./app-BXvF3HYt.js";import{_ as z}from"./search-CiY6Qd0b.js";import{_ as E}from"./PCLayout-0covYxWV.js";import{_ as g}from"./TitlePC-Cn9xh5T9.js";import{_ as M}from"./NewsListPC-G5AbJcOG.js";import{_ as j}from"./RecommendListPC-B1mABi90.js";import"./MyHeadPC-B0x-Vm3s.js";import"./MeScrollPC-FqnQUnBb.js";import"./mescroll-DhZBE6H8.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./FooterPC-BVR7pXvE.js";import"./[email protected]";import"./swiper-DI3iGfOs.js";import"./navigation-DeTw_KlZ.js";import"./pagination-CPuzzYuZ.js";import"./BannerAdPC-DSQH29gP.js";const W={class:"mx-auto w-full max-w-screen-sc px-4 sl:px-0"},P={class:"w-full mt-8"},q={class:"flex flex-row w-full justify-between content-center items-center"},F={class:"flex-none relative"},I={class:"flex-none"},J={class:"inline-block h-6 ml-1 mt-4 leading-6 align-middle text-sitetext text-center text-sm font-bold"},O={class:"inline-block h-6 ml-1 mt-4 leading-6 align-middle text-sitetext text-center text-sm font-bold"},R={class:"w-full mt-4"},G={class:"flex flex-row justify-between items-start content-start w-full"},H={class:"w-auto border border-gray-100 border-t-0"},K={class:"flex-1 ml-4 hidden xl:block"};let m=null,L=i(null);const Q={data(){return{dataListStyle:"",dataListShow:!1}},beforeMount(){m=this},mounted(){let r="width: "+L.value.clientWidth+"px;";m.$data.dataListStyle=r,m.$data.dataListShow=!0}},fe=Object.assign(Q,{__name:"Search",props:{appName:String,title:String,description:String,keyword:String,adTops:Array,recommendList:Array,newsList:Array,showAd:{type:Number,default:1},enableDown:{type:Boolean,default:!0},enableUp:{type:Boolean,default:!0}},setup(s){const r=s,f=A.usePush(),p=N.usePush(),o=i(!1),a=i(r.keyword),d=i(null),S=async()=>{a.value!=null&&a.value!=""&&!o.value&&(o.value=!0,await w(a.value),setTimeout(()=>{o.value=!1},2e3))},k=async()=>{a.value!=null&&a.value!=""&&!o.value&&(a.value="",o.value=!0,await w(a.value),setTimeout(()=>{d.value.focus(),o.value=!1},2e3))},w=async l=>{h.post(route("search"),{keyword:l},{preserveState:!0,preserveScroll:!0,only:["keyword","newsList","recommendList"],onSuccess:t=>(f.pv(history.state.url),p.pv(history.state.url),!0),onError:t=>!1})},_=l=>{let t=l.value;h.post(route("search"),{keyword:r.keyword,dataNum:t},{preserveState:!0,preserveScroll:!0,only:["newsList","recommendList"],onSuccess:u=>!0,onError:u=>!1})};return T(()=>{f.pv(history.state.url),p.pv(history.state.url),B(()=>{d.value.focus(),a.value=r.keyword})}),(l,t)=>(D(),C(E,{title:s.title,description:s.description,adTops:s.adTops,dataNum:s.newsList.num,appName:s.appName,showAd:s.showAd,enableDown:s.enableDown,enableUp:s.enableUp,onLoadMore:_},{default:c(()=>[e("div",W,[e("div",P,[e("div",q,[e("div",F,[t[1]||(t[1]=e("img",{class:"absolute top-2 left-2 w-6 h-6",src:z},null,-1)),e("button",{onClick:k,class:"absolute top-0 right-0 w-16 h-10 bg-sitebg font-sans text-center text-white text-sm"},"重置"),v(e("input",{ref_key:"searchBar",ref:d,"onUpdate:modelValue":t[0]||(t[0]=u=>a.value=u),onInput:S,class:"block w-80 h-10 pl-10 pr-20 ring-2 ring-sitebg placeholder-gray-400 focus:outline-none",placeholder:"请输入"},null,544),[[U,a.value,void 0,{trim:!0}]])]),e("div",I,[t[4]||(t[4]=e("span",{class:"inline-block w-6 h-6 mt-4 leading-6 align-middle text-white text-center text-sm bg-sitebg"},"品",-1)),e("span",J,[n(b(x),{href:l.route("carcenter")},{default:c(()=>t[2]||(t[2]=[y("品牌找车")])),_:1},8,["href"])]),t[5]||(t[5]=e("span",{class:"inline-block w-6 h-6 ml-4 mt-4 leading-6 align-middle text-white text-center text-sm bg-sitebg"},"ï¿¥",-1)),e("span",O,[n(b(x),{href:l.route("carcenter")},{default:c(()=>t[3]||(t[3]=[y("价格找车")])),_:1},8,["href"])])])])]),e("div",R,[e("div",G,[e("div",{ref_key:"leftCon",ref:L,class:"flex-2"},[n(g,{title:"搜索结果",titleType:"1",navUrl:l.route("search")},null,8,["navUrl"]),e("div",H,[v(e("div",{style:$(l.dataListStyle)},[n(M,{dataList:s.newsList,showAd:s.showAd},null,8,["dataList","showAd"])],4),[[V,l.dataListShow]])])],512),e("div",K,[n(g,{title:"推荐阅读",titleType:"3"}),n(j,{recommendList:s.recommendList},null,8,["recommendList"])])])])])]),_:1},8,["title","description","adTops","dataNum","appName","showAd","enableDown","enableUp"]))}});
1export{fe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.