pages-activity-groupon-list.1c058ff3.js 3.2 KB

1
  1. import{s as a,z as t,A as s,o,f as e,g as n,w as l,a8 as i,m as r,k as u,B as c,l as p,r as d,F as g,u as m,v as _,i as y,H as f,j as b,I as v,n as h,D as x,U as j,x as k,J as S}from"./index-a116b7fa.js";import{_ as w}from"./s-goods-column.67cd78e3.js";import{_ as C}from"./uni-load-more.2682655d.js";import{_ as D}from"./s-layout.4ae51839.js";import{_ as $}from"./_plugin-vue_export-helper.1b428a4d.js";import"./points.c381a8e1.js";import"./useGoods.6b315a78.js";/* empty css *//* empty css */import"./phone-international-input.b9f6c8e6.js";/* empty css */const z=$({__name:"list",setup($){f((a=>({d8a49dda:k(E)})));const{safeAreaInsets:z,safeArea:A}=a.$platform.device,N=a.$platform.navbar,I=2*a.$platform.device.statusBarHeight,B=2*(A.height+z.bottom)+I-N-350,E=a.$url.css("/static/img/shop/goods/groupon-header.png"),F=t({pagination:{list:[],total:0,pageNo:1,pageSize:10},loadStatus:"",summaryData:{}});async function H(){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 M(){"noMore"!==F.loadStatus&&(F.pagination.pageNo++,H())}return s((()=>M())),o((()=>{(async()=>{const{data:a}=await i.getCombinationRecordSummary();F.summaryData=a})(),H()})),(t,s)=>{const o=b,i=v,f=S,$=r(h("s-goods-column"),w),z=r(h("uni-load-more"),C),A=x,N=r(h("s-layout"),D);return e(),n(N,{navbar:"inner",bgStyle:{color:"#FE832A"}},{default:l((()=>[u(o,{class:"page-bg",style:c([{marginTop:"-"+Number(I+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),p(g,null,d(F.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&&F.summaryData.avatars.length>3?(e(),p("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(A,{class:"scroll-box",style:c({height:B+"rpx"}),"scroll-y":"true","scroll-with-animation":!1,"enable-back-to-top":!0},{default:l((()=>[(e(!0),p(g,null,d(F.pagination.list,(t=>(e(),n(o,{class:"goods-box ss-m-b-20",key:t.id},{default:l((()=>[u($,{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(z,{key:0,status:F.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:M},null,8,["status"])):y("",!0)])),_:1},8,["style"])])),_:1})])),_:1})}}},[["__scopeId","data-v-f8777e6a"]]);export{z as default};