import{t as s,o,j as a,w as e,h as t,I as l,Q as r,B as d,O as i,x as n,e as p,i as u,F as c,z as _,k as f,u as m,p as g}from"./index-9bec188e.js";import{aa as x,F as j}from"./images.52fc6216.js";import{H as y}from"./index.bdca3eba.js";import{u as b}from"./useScroll.c0a86152.js";import{L as k,a as v}from"./index.afd705a5.js";import{E as h}from"./index.036a38bb.js";import{G as w}from"./Goods.7dc38957.js";import{u as I}from"./usePage.b639b5a8.js";import{d as L}from"./product.0ff691f6.js";import{_ as G}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-icon.27c7246d.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./utils.3f9740a5.js";import"./index.2f3cf70a.js";const O=G({__name:"GoodsItemOptions",props:{goods:{type:Object,required:!0}},setup:i=>(s(i),(s,i)=>{const n=d;return o(),a(n,{class:"options flex flex-jc__sb flex-ai__end"},{default:e((()=>[t(n,{class:"left-info"},{default:e((()=>[t(n,{class:"row"},{default:e((()=>[l(" 3人团 ")])),_:1}),t(n,{class:"price-row flex flex-ai__end"},{default:e((()=>[l(" ￥329 "),t(n,{class:"old-price"},{default:e((()=>[l(" ￥666 ")])),_:1})])),_:1})])),_:1}),t(n,{class:"button animation-button",onClick:i[0]||(i[0]=r((()=>{}),["stop"]))},{default:e((()=>[l(" 立即拼团 ")])),_:1})])),_:1})})},[["__scopeId","data-v-cc33193b"]]),P=G({__name:"index",props:{more:{type:Boolean,default:()=>!0}},setup(r,{expose:G}){const P=r,{scrollTop:S}=b(),{refresh:B,dataList:C,loadend:E,loading:F,listEmpty:W}=I(L),{push:q}=m();i((()=>{B()}));const{more:z}=s(P),H=n((()=>[{name:"all",data:C.value.filter(((s,o)=>o%2==0))},{name:"right",data:C.value.filter(((s,o)=>o%2!=0))}]));return G({executeRefresh:()=>{B(),console.log()}}),(s,r)=>{const i=g,n=d;return o(),p(c,null,[t(y,{"scroll-top":u(S)},{default:e((()=>[l(" 拼团专区 ")])),_:1},8,["scroll-top"]),t(n,{class:"group-buy-container"},{default:e((()=>[t(n,{class:"bg-box"},{default:e((()=>[t(i,{class:"bg",src:u(x)},null,8,["src"])])),_:1}),t(n,{class:"main-box"},{default:e((()=>[t(n,{class:"main-box__inner"},{default:e((()=>[u(H)[0].data.length>0?(o(),a(n,{key:0,class:"row-product"},{default:e((()=>[t(w,{row:"",ratio:!0,goods:u(H)[0].data[0],imgWidth:"200rpx",infoPadding:"0rpx 20rpx"},{options:e((({goods:s})=>[t(O,{goods:s},null,8,["goods"])])),_:1},8,["goods"])])),_:1})):_("",!0),u(W)?(o(),a(h,{key:2,iconSrc:u(j)},{default:e((()=>[l(" 暂时没有商品推荐哦~ ")])),_:1},8,["iconSrc"])):(o(),a(n,{key:1,class:"product-box"},{default:e((()=>[(o(!0),p(c,null,f(u(H),(s=>(o(),a(n,{key:s.name,class:"goods-col"},{default:e((()=>[(o(!0),p(c,null,f(s.data,(s=>(o(),a(n,{key:s.id,class:"product"},{default:e((()=>[t(w,{ratio:!0,goods:s,infoPadding:"30rpx 10rpx"},{options:e((({goods:s})=>[t(O,{goods:s},null,8,["goods"])])),_:2},1032,["goods"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1})),u(F)?(o(),a(k,{key:3})):_("",!0),u(E)?(o(),a(v,{key:4},{default:e((()=>[u(z)?(o(),p("span",{key:0,onClick:r[0]||(r[0]=s=>u(q)({url:"/pages/goodsList/goodsList"}))}," 浏览更多商品 ")):(o(),p(c,{key:1},[l(" 到底了~ ")],64))])),_:1})):_("",!0)])),_:1})])),_:1})])),_:1})],64)}}},[["__scopeId","data-v-d37c3394"]]);export{P as default};
