import{_ as a}from"./uv-navbar.31c484ad.js";import{o,c as s,w as r,a as e,u as t,R as i,b as l,r as m,F as u,h as n,m as d,g as p,d as c}from"./index-3714412c.js";import{o as _,u as f,r as j}from"./useRouter.f44141c1.js";import{_ as v}from"./uv-search.3960861f.js";import{_ as g}from"./uv-sticky.53c0e026.js";import{_ as k}from"./blank.2892a414.js";import{_ as y}from"./goods.46695bdd.js";import{_ as h}from"./card.65aaf97b.js";import{_ as b,a as x}from"./uv-grid.27d59d00.js";import{_ as w}from"./container.6fa82c89.js";import{_ as C}from"./layout.99605750.js";import{g as L}from"./product.d7200236.js";import{u as N}from"./usePage.b4ec4df0.js";import{E as S}from"./index.573aa2d3.js";import{L as V,a as E}from"./index.17afd7bc.js";import{e as I}from"./收藏.f26ff3a3.js";import{_ as P}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.b515a02d.js";import"./uv-icon.c593f91d.js";import"./uv-button.14a976f7.js";import"./uv-loading-icon.8ba359c8.js";import"./good-attr-select.1541fb80.js";import"./uv-image.7b0e6bd2.js";import"./uv-transition.4f5b62a8.js";import"./space.57299547.js";import"./useInterface.f3e95e31.js";import"./index.d0119d7e.js";/* empty css                                                             */import"./api.966d6934.js";const R=P({__name:"goodsList",setup(P){const{getParams:R,goBack:F}=f(),{keyword:H,refresh:U,sid:z,dataList:B,loadend:D,loading:G,listEmpty:J}=N(L);_((a=>{const o=R(a);H.value=o.keyword||"",z.value=o.sid||"",U()}));const M=()=>{console.log("点击搜索"),U()},T=()=>{};return(_,f)=>{const L=j(p("uv-navbar"),a),N=j(p("uv-search"),v),P=c,R=j(p("uv-sticky"),g),U=j(p("blank"),k),z=j(p("goods"),y),W=j(p("card"),h),X=j(p("uv-grid-item"),b),Y=j(p("uv-grid"),x),Z=j(p("container"),w),$=j(p("layout"),C);return o(),s($,null,{default:r((()=>[e(R,{customNavHeight:"0"},{default:r((()=>[e(L,{fixed:!1,title:"商品列表","left-arrow":"",onLeftClick:t(F)},null,8,["onLeftClick"]),e(P,{class:"search-bar"},{default:r((()=>[e(N,{modelValue:t(H),"onUpdate:modelValue":f[0]||(f[0]=a=>i(H)?H.value=a:null),shape:"round",placeholder:"搜索商品","show-action":"",onCustom:M,onClear:M,onSearch:M,onCancel:T},null,8,["modelValue"])])),_:1})])),_:1}),e(U,{size:"15"}),e(Z,null,{default:r((()=>[t(J)?(o(),s(S,{key:1,iconSrc:t(I)},{default:r((()=>[n(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(o(),s(Y,{key:0,border:!1,col:1,gutter:10},{default:r((()=>[(o(!0),l(u,null,m(t(B),((a,t)=>(o(),s(X,{key:t},{default:r((()=>[e(W,{class:"pro-card"},{default:r((()=>[e(z,{link:"",list:"",data:a,storeName:a.storeName,price:a.price,stock:!0},null,8,["data","storeName","price"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})),t(G)?(o(),s(V,{key:2})):d("",!0),t(D)?(o(),s(E,{key:3})):d("",!0)])),_:1})])),_:1})}}},[["__scopeId","data-v-232d6e45"]]);export{R as default};
