import{s as a,B as t,C as s,o,f as e,g as n,w as l,aa as i,q as r,n as u,E as p,p as c,r as d,F as g,m,t as _,i as y,J as f,l as b,K as v,u as h,G as x,W as j,z as k,L as S}from"./index-007bf156.js";import{_ as w}from"./s-goods-column.dca4f2a3.js";import{_ as C}from"./uni-load-more.4c025ab2.js";import{_ as $}from"./s-layout.19bedb43.js";import{_ as z}from"./_plugin-vue_export-helper.1b428a4d.js";import"./points.c381a8e1.js";import"./useGoods.ac3bf93e.js";/* empty css                                                                     *//* empty css                                                                */import"./phone-international-input.3617e4e0.js";/* empty css                                                                      */const D=z({__name:"list",setup(z){f((a=>({d8a49dda:k(B)})));const{safeAreaInsets:D,safeArea:N}=a.$platform.device,A=a.$platform.navbar,E=2*a.$platform.device.statusBarHeight,q=2*(N.height+D.bottom)+E-A-350,B=a.$url.css("/static/img/shop/goods/groupon-header.png"),F=t({pagination:{list:[],total:0,pageNo:1,pageSize:10},loadStatus:"",summaryData:{}});async function G(){F.loadStatus="loading";const{data:a}=await i.getCombinationActivityPage({pageNo:F.pagination.pageNo,pageSize:F.pagination.pageSize});a.list.forEach((a=>{F.pagination.list.push({...a,price:a.combinationPrice})})),F.pagination.total=a.total,F.loadStatus=F.pagination.list.length<F.pagination.total?"more":"noMore"}function I(){"noMore"!==F.loadStatus&&(F.pagination.pageNo++,G())}return s((()=>I())),o((()=>{(async()=>{const{data:a}=await i.getCombinationRecordSummary();F.summaryData=a})(),G()})),(t,s)=>{const o=b,i=v,f=S,z=r(h("s-goods-column"),w),D=r(h("uni-load-more"),C),N=x,A=r(h("s-layout"),$);return e(),n(A,{navbar:"inner",bgStyle:{color:"#FE832A"}},{default:l((()=>[u(o,{class:"page-bg",style:p([{marginTop:"-"+Number(E+88)+"rpx"}])},null,8,["style"]),u(o,{class:"list-content"},{default:l((()=>[u(o,{class:"content-header ss-flex-col ss-col-center ss-row-center"},{default:l((()=>[u(o,{class:"content-header-title ss-flex ss-row-center"},{default:l((()=>[(e(!0),c(g,null,d(F.summaryData.avatars,((a,t)=>(e(),n(o,{key:t,class:"picture",style:p(6===t?"position: relative":"position: static")},{default:l((()=>[j("span",{class:"avatar",style:p(`background-image: url(${a})`)},null,4),6===t&&F.summaryData.avatars.length>3?(e(),c("span",{key:0,class:"mengceng"},[j("i",null,"···")])):y("",!0)])),_:2},1032,["style"])))),128)),u(i,{class:"pic_count"},{default:l((()=>[m(_(F.summaryData.userCount||0)+"人参与",1)])),_:1})])),_:1})])),_:1}),u(N,{class:"scroll-box",style:p({height:q+"rpx"}),"scroll-y":"true","scroll-with-animation":!1,"enable-back-to-top":!0},{default:l((()=>[(e(!0),c(g,null,d(F.pagination.list,(t=>(e(),n(o,{class:"goods-box ss-m-b-20",key:t.id},{default:l((()=>[u(z,{class:"",size:"lg",data:t,grouponTag:!0,onClick:s=>k(a).$router.go("/pages/goods/groupon",{id:t.id})},{cart:l((()=>[u(f,{class:"ss-reset-button cart-btn"},{default:l((()=>[m("去拼团")])),_:1})])),_:2},1032,["data","onClick"])])),_:2},1024)))),128)),F.pagination.total>0?(e(),n(D,{key:0,status:F.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:I},null,8,["status"])):y("",!0)])),_:1},8,["style"])])),_:1})])),_:1})}}},[["__scopeId","data-v-f8777e6a"]]);export{D as default};
