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-9bec188e.js";import{H as b}from"./index.bdca3eba.js";import{u as y}from"./useScroll.c0a86152.js";import{G as P}from"./Goods.7dc38957.js";import{u as S}from"./usePage.b639b5a8.js";import{d as k}from"./product.0ff691f6.js";import{u as I}from"./useShare.d249e156.js";import{u as w,G,a as A}from"./Goods.4fe4ceee.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-icon.27c7246d.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./utils.3f9740a5.js";import"./index.2f3cf70a.js";import"./images.52fc6216.js";import"./useShearPlate.19498da6.js";import"./useInterface.982c71ba.js";import"./index.acb07630.js";import"./uv-overlay.6fe03ce8.js";import"./uv-transition.b971e856.js";import"./createAnimation.e5fefaf6.js";import"./useImage.9f5391d3.js";import"./Popup.08c50cc2.js";import"./lodash.94acaf47.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};
