var f=(d,o,a)=>new Promise((i,r)=>{var s=e=>{try{t(a.next(e))}catch(l){r(l)}},n=e=>{try{t(a.throw(e))}catch(l){r(l)}},t=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,n);t((a=a.apply(d,o)).next())});import{_ as x}from"./product.RTWsdzSq.js";import{d as k,r as g,v as h,f as _,g as c,z as C,B as F,D as I,o as p,h as y,E as w,F as m,J as V,j as z,G as B,H as D,I as P,K as E,q as L}from"./index-C8qz7c0N.js";import{_ as q}from"./z-paging.Dxcf6OUf.js";import{u as N}from"./useZPaging.DLVc1w-R.js";import{m as $}from"./mine.CfB0U9tE.js";const j=k({name:"MyFavorite",__name:"myFavorite",setup(d){const o=g(null);N(o);const a=g([]);function i(r,s){return f(this,null,function*(){var n;try{const e=yield $({page:r,size:s});o.value.complete(((n=e.data)==null?void 0:n.list)||[])}catch(t){o.value.complete(!1)}})}return h(()=>{o.value.reload()}),(r,s)=>{const n=x,t=z,e=F(I("z-paging"),q),l=C("layout-default-uni");return p(),_(l,null,{default:c(()=>[y(e,{ref_key:"paging",ref:o,modelValue:m(a),"onUpdate:modelValue":s[0]||(s[0]=u=>w(a)?a.value=u:null),"use-page-scroll":"",onQuery:i},{default:c(()=>[m(a).length?(p(),_(t,{key:0,class:"px-24rpx py-24rpx"},{default:c(()=>[y(t,{class:"grid grid-cols-2 gap-20rpx"},{default:c(()=>[(p(!0),B(D,null,P(m(a),(u,v)=>(p(),_(n,{key:v,width:"100%",height:340,item:u,onItemClick:G=>m(E)({url:"/pages/productDetail/productDetail",params:{productId:u.productId}})},null,8,["item","onItemClick"]))),128))]),_:1})]),_:1})):V("",!0)]),_:1},8,["modelValue"])]),_:1})}}}),S=L(j,[["__scopeId","data-v-86072457"]]);export{S as default};
