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 d,t as g,u as m,g as _,D as f,i as y,E as b,m as v,S as h,a0 as j,v as x,G as S}from"./index-9aa72eed.js";import{_ as k}from"./s-goods-column.0698bfaf.js";import{_ as w}from"./uni-load-more.93dce372.js";import{_ as C}from"./s-layout.bffb18b8.js";import{C as D}from"./combination.2ca2f38a.js";import{_ as $}from"./_plugin-vue_export-helper.1b428a4d.js";import"./useGoods.ce02ada2.js";/* empty css                                                                     *//* empty css                                                                */import"./form.c66b5271.js";/* empty css                                                                      */const z=$({__name:"list",setup($){f((a=>({d8a49dda:x(G)})));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,G=a.$url.css("/static/img/shop/goods/groupon-header.png"),I=t({pagination:{list:[],total:0,pageNo:1,pageSize:10},loadStatus:"",summaryData:{}});async function M(){I.loadStatus="loading";const{data:a}=await D.getCombinationActivityPage({pageNo:I.pagination.pageNo,pageSize:I.pagination.pageSize});a.list.forEach((a=>{I.pagination.list.push({...a,price:a.combinationPrice})})),I.pagination.total=a.total,I.loadStatus=I.pagination.list.length<I.pagination.total?"more":"noMore"}function P(){"noMore"!==I.loadStatus&&(I.pagination.pageNo++,M())}return s((()=>P())),o((()=>{(async()=>{const{data:a}=await D.getCombinationRecordSummary();I.summaryData=a})(),M()})),(t,s)=>{const o=y,f=b,D=S,$=i(v("s-goods-column"),k),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(d,null,p(I.summaryData.avatars,((a,t)=>(e(),n(o,{key:t,class:"picture",style:c(6===t?"position: relative":"position: static")},{default:l((()=>[j("span",{class:"avatar",style:c(`background-image: url(${a})`)},null,4),6===t&&I.summaryData.avatars.length>3?(e(),u("span",{key:0,class:"mengceng"},[j("i",null,"···")])):_("",!0)])),_:2},1032,["style"])))),128)),r(f,{class:"pic_count"},{default:l((()=>[g(m(I.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(d,null,p(I.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=>x(a).$router.go("/pages/goods/groupon",{id:t.id})},{cart:l((()=>[r(D,{class:"ss-reset-button cart-btn"},{default:l((()=>[g("去拼团")])),_:1})])),_:2},1032,["data","onClick"])])),_:2},1024)))),128)),I.pagination.total>0?(e(),n(z,{key:0,status:I.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:P},null,8,["status"])):_("",!0)])),_:1},8,["style"])])),_:1})])),_:1})}}},[["__scopeId","data-v-f8777e6a"]]);export{z as default};
