import{_ as o}from"./uv-navbar.c519dc25.js";import{O as e,o as s,e as a,h as t,w as r,i,F as u,u as l,G as n,a4 as p,j as _,k as m,I as d,z as c,H as v,B as j}from"./index-9bec188e.js";import{_ as f}from"./uv-search.9dfd48f2.js";import{_ as g}from"./uv-sticky.2d93d618.js";import{_ as y}from"./blank.a65124f9.js";import{_ as b}from"./goods.1796f368.js";import{_ as k}from"./card.bb6c2a17.js";import{a as x,_ as h}from"./uv-grid-item.2f1f1e22.js";import{_ as T}from"./container.1b21e877.js";import{_ as w}from"./layout.62460c6d.js";import{d as L}from"./product.0ff691f6.js";import{u as C}from"./usePage.b639b5a8.js";import{E as I}from"./index.036a38bb.js";import{L as B,a as N}from"./index.afd705a5.js";import{F as P}from"./images.52fc6216.js";import{R as S}from"./index.f3f840d0.js";import{u as V}from"./useScroll.c0a86152.js";import{_ as E}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.6dc37cad.js";/* empty css                                                                      */import"./uv-icon.27c7246d.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.1b208e51.js";import"./uv-button.9242bdc2.js";import"./uv-loading-icon.bfbe6dc1.js";import"./uv-loading-icon.vue_vue_type_style_index_0_scoped_bad0efbf_lang.8998f762.js";import"./uv-button.vue_vue_type_style_index_0_scoped_bc0e850d_lang.79bfdc50.js";import"./good-attr-select.96595f56.js";import"./uv-image.6bda10b1.js";import"./uv-transition.b971e856.js";import"./createAnimation.e5fefaf6.js";import"./space.a9e7e18e.js";import"./useInterface.982c71ba.js";import"./index.9b540af7.js";import"./index.2f3cf70a.js";/* empty css                                                                  *//* empty css                                                               */import"./config.6730da78.js";const F=E({__name:"goodsList",setup(E){const{scrollTop:F}=V(),{getParams:z,goBack:A}=l(),{keyword:G,refresh:H,sid:R,couponId:Y,dataList:q,loadend:M,loading:O,listEmpty:U}=C(L);e((o=>{const e=z(o);G.value=e.keyword||"",R.value=e.sid||"",Y.value=e.couponId||"",H()}));const W=()=>{H()};return(e,l)=>{const L=n(v("uv-navbar"),o),C=n(v("uv-search"),f),V=j,E=n(v("uv-sticky"),g),z=n(v("blank"),y),H=n(v("goods"),b),R=n(v("card"),k),Y=n(v("uv-grid-item"),x),X=n(v("uv-grid"),h),Z=n(v("container"),T),$=n(v("layout"),w);return s(),a(u,null,[t($,null,{default:r((()=>[t(E,{customNavHeight:"0"},{default:r((()=>[t(L,{fixed:!1,title:"商品列表","left-arrow":"",onLeftClick:i(A)},null,8,["onLeftClick"]),t(V,{class:"search-bar"},{default:r((()=>[t(C,{modelValue:i(G),"onUpdate:modelValue":l[0]||(l[0]=o=>p(G)?G.value=o:null),shape:"round",placeholder:"搜索商品","show-action":"",onCustom:W,onClear:W,onSearch:W},null,8,["modelValue"])])),_:1})])),_:1}),t(z,{size:"15"}),t(Z,null,{default:r((()=>[i(U)?(s(),_(I,{key:1,iconSrc:i(P)},{default:r((()=>[d(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(s(),_(X,{key:0,border:!1,col:1,gutter:10},{default:r((()=>[(s(!0),a(u,null,m(i(q),((o,e)=>(s(),_(Y,{key:e},{default:r((()=>[t(R,{class:"pro-card"},{default:r((()=>[t(H,{link:"",list:"",data:o,storeName:o.storeName,price:o.price,stock:!o.campaignType,groupBuy:1===o.campaignType,original:1===o.campaignType,buyProgress:[2,3].includes(o.campaignType),total:[2,3].includes(o.campaignType)},null,8,["data","storeName","price","stock","groupBuy","original","buyProgress","total"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})),i(O)?(s(),_(B,{key:2})):c("",!0),i(M)?(s(),_(N,{key:3})):c("",!0)])),_:1})])),_:1}),t(S,{scrollTop:i(F)},null,8,["scrollTop"])],64)}}},[["__scopeId","data-v-2c937593"]]);export{F as default};
