import{_ as e}from"./uv-navbar.917fb540.js";import{O as o,o as s,e as a,h as t,w as r,i,F as u,u as l,G as p,a4 as n,j as _,k as m,I as c,z as d,H as v,B as f}from"./index-90c12cc1.js";import{_ as g}from"./uv-search.62b2f92a.js";import{_ as j}from"./uv-sticky.7ebad6a8.js";import{_ as y}from"./blank.e8f70d39.js";import{_ as k}from"./goods.6639d2a3.js";import{_ as b}from"./card.908936ad.js";import{a as x,_ as h}from"./uv-grid-item.770c329b.js";import{_ as T}from"./container.e11fde10.js";import{_ as L}from"./layout.e3de63ac.js";import{d as w}from"./product.4783a646.js";import{u as B}from"./usePage.8865205f.js";import{E as I}from"./index.ed915e92.js";import{L as C,a as N}from"./index.867e23f4.js";import{F as P}from"./images.cf3befb9.js";import{R as S}from"./index.b6529df5.js";import{u as z}from"./useScroll.50272fa4.js";import{_ as E}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.acda7a2c.js";/* empty css                                                                      */import"./uv-icon.c815b875.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./uv-navbar.vue_vue_type_style_index_0_scoped_4c301e25_lang.553ed1e6.js";import"./uv-line-progress.f06101e5.js";import"./uv-button.8e862d87.js";import"./uv-loading-icon.ad70964c.js";import"./uv-loading-icon.vue_vue_type_style_index_0_scoped_bad0efbf_lang.de7e0d02.js";import"./uv-button.vue_vue_type_style_index_0_scoped_bc0e850d_lang.79bfdc50.js";import"./good-attr-select.3f64fa6c.js";import"./uv-image.b3f882de.js";import"./space.af0e7a6e.js";import"./useInterface.bd4f041a.js";import"./index.188c29d6.js";import"./index.d156dd8a.js";/* empty css                                                                  *//* empty css                                                               */import"./config.6730da78.js";const F=E({__name:"goodsList",setup(E){const{scrollTop:F}=z(),{getParams:V,goBack:H}=l(),{keyword:U,refresh:X,sid:Y,couponId:q,dataList:D,loadend:G,loading:M,listEmpty:O}=B(w);o((e=>{const o=V(e);U.value=o.keyword||"",Y.value=o.sid||"",q.value=o.couponId||"",X()}));const Q=()=>{X()};return(o,l)=>{const w=p(v("uv-navbar"),e),B=p(v("uv-search"),g),z=f,E=p(v("uv-sticky"),j),V=p(v("blank"),y),X=p(v("goods"),k),Y=p(v("card"),b),q=p(v("uv-grid-item"),x),R=p(v("uv-grid"),h),W=p(v("container"),T),Z=p(v("layout"),L);return s(),a(u,null,[t(Z,null,{default:r((()=>[t(E,{customNavHeight:"0"},{default:r((()=>[t(w,{fixed:!1,title:"商品列表","left-arrow":"",onLeftClick:i(H)},null,8,["onLeftClick"]),t(z,{class:"search-bar"},{default:r((()=>[t(B,{modelValue:i(U),"onUpdate:modelValue":l[0]||(l[0]=e=>n(U)?U.value=e:null),shape:"round",placeholder:"搜索商品","show-action":"",onCustom:Q,onClear:Q,onSearch:Q},null,8,["modelValue"])])),_:1})])),_:1}),t(V,{size:"15"}),t(W,null,{default:r((()=>[i(O)?(s(),_(I,{key:1,iconSrc:i(P)},{default:r((()=>[c(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(s(),_(R,{key:0,border:!1,col:1,gutter:10},{default:r((()=>[(s(!0),a(u,null,m(i(D),((e,o)=>(s(),_(q,{key:o},{default:r((()=>[t(Y,{class:"pro-card"},{default:r((()=>[t(X,{link:"",list:"",data:e,storeName:e.storeName,price:e.price,stock:!e.campaignType,groupBuy:1===e.campaignType,original:1===e.campaignType,buyProgress:[2,3].includes(e.campaignType),total:[2,3].includes(e.campaignType)},null,8,["data","storeName","price","stock","groupBuy","original","buyProgress","total"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})),i(M)?(s(),_(C,{key:2})):d("",!0),i(G)?(s(),_(N,{key:3})):d("",!0)])),_:1})])),_:1}),t(S,{scrollTop:i(F)},null,8,["scrollTop"])],64)}}},[["__scopeId","data-v-2c937593"]]);export{F as default};
