"use strict";const e=require("../../../common/vendor.js"),a=require("../../../sheep/index.js"),r=require("../../../sheep/api/promotion/combination.js");if(require("../../../sheep/url/index.js"),require("../../../sheep/store/index.js"),require("../../../sheep/store/app.js"),require("../../../sheep/api/promotion/diy.js"),require("../../../sheep/request/index.js"),require("../../../sheep/config/index.js"),require("../../../sheep/platform/index.js"),require("../../../sheep/platform/provider/wechat/index.js"),require("../../../sheep/platform/provider/wechat/miniProgram.js"),require("../../../sheep/api/member/auth.js"),require("../../../sheep/api/member/social.js"),require("../../../sheep/api/member/user.js"),require("../../../sheep/platform/provider/apple/index.js"),require("../../../sheep/platform/share.js"),require("../../../sheep/router/index.js"),require("../../../sheep/hooks/useModal.js"),require("../../../sheep/helper/index.js"),require("../../../sheep/helper/test.js"),require("../../../sheep/helper/digit.js"),require("../../../sheep/api/member/signin.js"),require("../../../sheep/helper/throttle.js"),require("../../../sheep/platform/pay.js"),require("../../../sheep/api/pay/order.js"),require("../../../sheep/store/user.js"),require("../../../sheep/store/cart.js"),require("../../../sheep/api/trade/cart.js"),require("../../../sheep/api/pay/wallet.js"),require("../../../sheep/api/trade/order.js"),require("../../../sheep/api/promotion/coupon.js"),require("../../../sheep/store/sys.js"),require("../../../sheep/store/modal.js"),require("../../../sheep/config/zIndex.js"),!Array){(e.resolveComponent("s-goods-column")+e.resolveComponent("uni-load-more")+e.resolveComponent("s-layout"))()}Math||((()=>"../../../sheep/components/s-goods-column/s-goods-column.js")+(()=>"../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../../sheep/components/s-layout/s-layout.js"))();const s={__name:"list",setup(s){e.useCssVars((a=>({d8a49dda:e.unref(u)})));const{safeAreaInsets:o,safeArea:i}=a.sheep.$platform.device,t=a.sheep.$platform.navbar,p=2*a.sheep.$platform.device.statusBarHeight,n=2*(i.height+o.bottom)+p-t-350,u=a.sheep.$url.css("/static/img/shop/goods/groupon-header.png"),m=e.reactive({pagination:{list:[],total:0,pageNo:1,pageSize:10},loadStatus:"",summaryData:{}});async function h(){m.loadStatus="loading";const{data:e}=await r.CombinationApi.getCombinationActivityPage({pageNo:m.pagination.pageNo,pageSize:m.pagination.pageSize});e.list.forEach((e=>{m.pagination.list.push({...e,price:e.combinationPrice})})),m.pagination.total=e.total,m.loadStatus=m.pagination.list.length<m.pagination.total?"more":"noMore"}function l(){"noMore"!==m.loadStatus&&(m.pagination.pageNo++,h())}return e.onReachBottom((()=>l())),e.onLoad((()=>{(async()=>{const{data:e}=await r.CombinationApi.getCombinationRecordSummary();m.summaryData=e})(),h()})),(r,s)=>e.e({a:e.s({marginTop:"-"+Number(p+88)+"rpx"}),b:e.f(m.summaryData.avatars,((a,r,s)=>e.e({a:e.s(`background-image: url(${a})`),b:6===r&&m.summaryData.avatars.length>3},(6===r&&m.summaryData.avatars.length,{}),{c:r,d:e.s(6===r?"position: relative":"position: static")}))),c:e.t(m.summaryData.userCount||0),d:e.f(m.pagination.list,((r,s,o)=>({a:e.o((s=>e.unref(a.sheep).$router.go("/pages/goods/groupon",{id:r.id})),r.id),b:"f8777e6a-1-"+o+",f8777e6a-0",c:e.p({size:"lg",data:r,grouponTag:!0}),d:r.id}))),e:m.pagination.total>0},m.pagination.total>0?{f:e.o(l),g:e.p({status:m.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{h:n+"rpx",i:e.s(r.__cssVars()),j:e.p({navbar:"inner",bgStyle:{color:"#FE832A"}})})}},o=e._export_sfc(s,[["__scopeId","data-v-f8777e6a"]]);wx.createPage(o);
