pages-activity-groupon-list.dfe73c00.js 3.2 KB

1
  1. 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 p,r as u,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 j,v as x,G as k}from"./index-b48a414d.js";import{_ as S}from"./s-goods-column.5d43688b.js";import{_ as w}from"./uni-load-more.647920f4.js";import{_ as C}from"./s-layout.d6dcdc81.js";import{C as D}from"./combination.1281dd6d.js";import{_ as $}from"./_plugin-vue_export-helper.1b428a4d.js";import"./points.c381a8e1.js";/* empty css *//* empty css */import"./phone-international-input.feef99c7.js";/* empty css */const z=$({__name:"list",setup($){y((a=>({d8a49dda:x(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),p(g,null,u(M.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&&M.summaryData.avatars.length>3?(e(),p("span",{key:0,class:"mengceng"},[j("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),p(g,null,u(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=>x(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};