import{T as s,a8 as a,W as o,X as e,a as t,O as r,v as i,o as l,j as u,w as d,u as n,B as p,h as m,I as c,i as f,e as _,k as j,F as g,l as v,Q as h,A as x}from"./index-d4baa715.js";import{H as b}from"./index.704ebef3.js";import{u as y}from"./useScroll.dcb46f58.js";import{G as P}from"./Goods.ed14922a.js";import{u as S}from"./usePage.48b817d3.js";import{d as k}from"./product.280a3345.js";import{u as I}from"./useShare.a1157a10.js";import{u as w,G,a as A}from"./Goods.95cf79f1.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-icon.b5ddbe11.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./utils.052a93d2.js";import"./index.6c6cd02e.js";import"./images.f0a6f614.js";import"./useShearPlate.1f74bce6.js";import"./useInterface.2c7749ae.js";import"./index.ae120a7a.js";import"./uv-overlay.28e9addc.js";import"./uv-transition.e8fc5cb3.js";import"./createAnimation.a561e009.js";import"./useImage.bf0418c3.js";import"./Popup.965f3d92.js";import"./lodash.77ffa483.js";const C=T({__name:"index",setup(T){s();const{scrollTop:C}=y();a((()=>{}));const{refresh:D,dataList:H,loadend:Q,loading:W,listEmpty:B,otherQuery:E}=S(k),{shareAppMessage:F,shareTimeline:J,distributionGoodsDetailShare:L,shareH5:M}=I(),O=w();o(F),e(J);const{push:X,getParams:$}=n(),q=t();r((s=>{const a=$(s);q.value=a.distributionId,E.value={isDistribution:1}}));const z=t(),K=t();async function N(s,a){await O.doShareToAddIntegral(),L(a,q.value),"photo"!==s.value?"wechat"===s.value&&M():K.value.open(a)}return i((()=>{D()})),(s,a)=>{const o=p,e=x;return l(),u(o,{class:"goods-list"},{default:d((()=>[m(b,{"scroll-top":f(C),"system-bar-area-bg":"#fff","header-area-bg":"#fff"},{default:d((()=>[c(" 分销商品 ")])),_:1},8,["scroll-top"]),m(o,{class:"goods-list__inner"},{default:d((()=>[(l(!0),_(g,null,j(f(H),(s=>(l(),u(o,{key:s.id,class:"product"},{default:d((()=>[m(P,{row:"","img-width":"160rpx",ratio:!0,goods:s,infoPadding:"10rpx 10rpx"},{options:d((()=>[m(o,{class:"good-bottom"},{default:d((()=>[m(o,{class:"price"},{default:d((()=>[c(" ￥"+v(s.price),1)])),_:2},1024),m(o,{class:"sale flex flex-jc__sb flex-ai__end"},{default:d((()=>[m(o,{class:"left"},{default:d((()=>[m(e,{class:"gray-color"},{default:d((()=>[c("预计佣金：")])),_:1}),c(" ￥999-999 ")])),_:1}),m(o,{class:"btn",onClick:h((a=>{return o=s,void z.value.open("分享赚",o);var o}),["stop"])},{default:d((()=>[c(" 分享赚 ")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["goods"])])),_:2},1024)))),128))])),_:1}),m(G,{ref_key:"goodsShare",ref:z,onShare:N},null,512),m(A,{ref_key:"goodsPoster",ref:K},null,512)])),_:1})}}},[["__scopeId","data-v-d00cc071"]]);export{C as default};
