import{_ as a}from"./uv-navbar.59911b60.js";import{o as s,c as o,w as e,a as r,u as t,W as i,b as u,r as l,F as m,h as n,m as d,g as p,d as c}from"./index-d76b1e7a.js";import{o as _,u as f,r as j}from"./useRouter.2bdb47a0.js";import{_ as v}from"./uv-search.e89b765c.js";import{_ as g}from"./uv-sticky.44ddc756.js";import{_ as k}from"./blank.b964b453.js";import{_ as y}from"./goods.b434f2b2.js";import{_ as b}from"./card.76ff4054.js";import{_ as h,a as x}from"./uv-grid.803c9be4.js";import{_ as w}from"./container.79005cf0.js";import{_ as C}from"./layout.f8e9d577.js";import{g as L}from"./product.b13622dd.js";import{u as N}from"./usePage.e20fbf49.js";import{E as S}from"./index.81294ba6.js";import{L as V,a as E}from"./index.bfb14c71.js";import{e as I}from"./收藏.f26ff3a3.js";import{_ as P}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.66ab7702.js";/* empty css                                                                      */import"./uv-icon.5730d4d2.js";import"./uv-navbar.vue_vue_type_style_index_0_scoped_8d8b32e4_lang.3fde2b65.js";import"./uv-button.dcfcbf96.js";import"./uv-transition.b33e1d5c.js";import"./good-attr-select.1f1b5e35.js";import"./uv-image.e629c74e.js";import"./space.cecd0c54.js";import"./useInterface.5df3648b.js";import"./index.30cfb093.js";import"./api.9246a192.js";const F=P({__name:"goodsList",setup(P){const{getParams:F,goBack:R}=f(),{keyword:U,refresh:z,sid:B,dataList:H,loadend:J,loading:K,listEmpty:O}=N(L);_((a=>{const s=F(a);U.value=s.keyword||"",B.value=s.sid||"",z()}));const Q=()=>{console.log("点击搜索"),z()},T=()=>{};return(_,f)=>{const L=j(p("uv-navbar"),a),N=j(p("uv-search"),v),P=c,F=j(p("uv-sticky"),g),z=j(p("blank"),k),B=j(p("goods"),y),W=j(p("card"),b),X=j(p("uv-grid-item"),h),Y=j(p("uv-grid"),x),Z=j(p("container"),w),$=j(p("layout"),C);return s(),o($,null,{default:e((()=>[r(F,{customNavHeight:"0"},{default:e((()=>[r(L,{fixed:!1,title:"商品列表","left-arrow":"",onLeftClick:t(R)},null,8,["onLeftClick"]),r(P,{class:"search-bar"},{default:e((()=>[r(N,{modelValue:t(U),"onUpdate:modelValue":f[0]||(f[0]=a=>i(U)?U.value=a:null),shape:"round",placeholder:"搜索商品","show-action":"",onCustom:Q,onClear:Q,onSearch:Q,onCancel:T},null,8,["modelValue"])])),_:1})])),_:1}),r(z,{size:"15"}),r(Z,null,{default:e((()=>[t(O)?(s(),o(S,{key:1,iconSrc:t(I)},{default:e((()=>[n(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(s(),o(Y,{key:0,border:!1,col:1,gutter:10},{default:e((()=>[(s(!0),u(m,null,l(t(H),((a,t)=>(s(),o(X,{key:t},{default:e((()=>[r(W,{class:"pro-card"},{default:e((()=>[r(B,{link:"",list:"",data:a,storeName:a.storeName,price:a.price,stock:!0},null,8,["data","storeName","price"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})),t(K)?(s(),o(V,{key:2})):d("",!0),t(J)?(s(),o(E,{key:3})):d("",!0)])),_:1})])),_:1})}}},[["__scopeId","data-v-c2ac2b45"]]);export{F as default};
