pages-activity-groupon-list.kwXBMazF.js 3.5 KB

1
  1. import{K as a,s as t,v as s,m as o,o as e,a as n,b as l,d as i,w as r,u as p,aa as u,e as c,f as _,n as d,x as g,y as m,F as y,g as f,j as v,z as b,i as h,l as j,I as x,a9 as S,M as k}from"./index-rA9LQu-Z.js";import{_ as w}from"./s-goods-column.C2gBmc2I.js";import{_ as C}from"./uni-load-more.DxBzzO3U.js";import{_ as z}from"./s-layout.B9qvEa4L.js";import{_ as N}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./points.DDTOnulC.js";import"./useGoods.BijVnshj.js";/* empty css */import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.DsLhC4_3.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.BKCNw0rf.js";/* empty css */import"./s-tabbar.DG8GxPLd.js";/* empty css */import"./s-menu-tools.DS1kA6Tz.js";import"./phone-international-input.xRkWv9wR.js";const $=N({__name:"list",setup(N){a((a=>({"4d1e1dc8":p(E)})));const{safeAreaInsets:$,safeArea:A}=t.$platform.device,D=t.$platform.navbar,I=2*t.$platform.device.statusBarHeight,M=2*(A.height+$.bottom)+I-D-350,E=t.$url.css("/static/img/shop/goods/groupon-header.png"),F=s({pagination:{list:[],total:0,pageNo:1,pageSize:10},loadStatus:"",summaryData:{}});async function G(){F.loadStatus="loading";const{data:a}=await u.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 H(){"noMore"!==F.loadStatus&&(F.pagination.pageNo++,G())}return o((()=>H())),e((()=>{(async()=>{const{data:a}=await u.getCombinationRecordSummary();F.summaryData=a})(),G()})),(a,s)=>{const o=h,e=j,u=k,N=n(l("s-goods-column"),w),$=n(l("uni-load-more"),C),A=x,D=n(l("s-layout"),z);return c(),i(D,{navbar:"inner",bgStyle:{color:"#FE832A"}},{default:r((()=>[_(o,{class:"page-bg",style:d([{marginTop:"-"+Number(I+88)+"rpx"}])},null,8,["style"]),_(o,{class:"list-content"},{default:r((()=>[_(o,{class:"content-header ss-flex-col ss-col-center ss-row-center"},{default:r((()=>[_(o,{class:"content-header-title ss-flex ss-row-center"},{default:r((()=>[(c(!0),g(y,null,m(F.summaryData.avatars,((a,t)=>(c(),i(o,{key:t,class:"picture",style:d(6===t?"position: relative":"position: static")},{default:r((()=>[S("span",{class:"avatar",style:d(`background-image: url(${a})`)},null,4),6===t&&F.summaryData.avatars.length>3?(c(),g("span",{key:0,class:"mengceng"},[S("i",null,"···")])):b("",!0)])),_:2},1032,["style"])))),128)),_(e,{class:"pic_count"},{default:r((()=>[f(v(F.summaryData.userCount||0)+"人参与",1)])),_:1})])),_:1})])),_:1}),_(A,{class:"scroll-box",style:d({height:M+"rpx"}),"scroll-y":"true","scroll-with-animation":!1,"enable-back-to-top":!0},{default:r((()=>[(c(!0),g(y,null,m(F.pagination.list,(a=>(c(),i(o,{class:"goods-box ss-m-b-20",key:a.id},{default:r((()=>[_(N,{class:"",size:"lg",data:a,grouponTag:!0,onClick:s=>p(t).$router.go("/pages/goods/groupon",{id:a.id})},{cart:r((()=>[_(u,{class:"ss-reset-button cart-btn"},{default:r((()=>[f("去拼团")])),_:1})])),_:2},1032,["data","onClick"])])),_:2},1024)))),128)),F.pagination.total>0?(c(),i($,{key:0,status:F.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:H},null,8,["status"])):b("",!0)])),_:1},8,["style"])])),_:1})])),_:1})}}},[["__scopeId","data-v-9909c846"]]);export{$ as default};