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