1 |
- import{as as N,d as S,r as o,g as T,z as x,o as m,k as d,w as _,D as C,a as t,i as r,l as k,t as D,au as P,B as I,K as L,L as F,M as j,_ as q,__tla as A}from"./index-2f799233.js";import{_ as B,__tla as E}from"./ContentWrap-9da801df.js";import{_ as K,__tla as M}from"./index-e6cd813f.js";import{_ as O,__tla as R}from"./DictTag-ea4c6cc2.js";import{E as G,__tla as H}from"./el-image-4d26fa76.js";import{__tla as J}from"./el-image-viewer-8e9e3571.js";import{D as Q,__tla as V}from"./dict-20c916e2.js";import{d as W,__tla as X}from"./formatTime-2157894c.js";import{u as Y,__tla as Z}from"./useMessage-e567ad40.js";import{__tla as $}from"./el-card-c64c83d1.js";import{__tla as aa}from"./index-1c180a16.js";import"./color-6e929987.js";let f,ta=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return aa}catch{}})()]).then(async()=>{f=q(S({__name:"UserFavoriteList",props:{userId:{type:Number,required:!0}},setup(h){Y(),I();const n=o(!0),p=o(0),u=o([]),s=T({pageNo:1,pageSize:10,name:null,createTime:[],userId:NaN});o();const c=async()=>{n.value=!0;try{const e=await(i=s,N.get({url:"/product/favorite/page",params:i}));u.value=e.list,p.value=e.total}finally{n.value=!1}var i},{userId:g}=h;return x(()=>{s.userId=g,c()}),(i,e)=>{const l=L,y=G,w=O,v=F,b=K,U=B,z=j;return m(),d(U,null,{default:_(()=>[C((m(),d(v,{data:t(u)},{default:_(()=>[r(l,{key:"id",align:"center",label:"\u5546\u54C1\u7F16\u53F7",width:"180",prop:"id"}),r(l,{label:"\u5546\u54C1\u56FE","min-width":"80"},{default:_(({row:a})=>[r(y,{src:a.picUrl,class:"h-30px w-30px",onClick:ra=>i.imagePreview(a.picUrl)},null,8,["src","onClick"])]),_:1}),r(l,{"show-overflow-tooltip":!0,label:"\u5546\u54C1\u540D\u79F0","min-width":"300",prop:"name"}),r(l,{align:"center",label:"\u5546\u54C1\u552E\u4EF7","min-width":"90",prop:"price"},{default:_(({row:a})=>[k(D(t(P)(a.price))+"\u5143",1)]),_:1}),r(l,{align:"center",label:"\u9500\u91CF","min-width":"90",prop:"salesCount"}),r(l,{formatter:t(W),align:"center",label:"\u6536\u85CF\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),r(l,{align:"center",label:"\u72B6\u6001","min-width":"80"},{default:_(a=>[r(w,{type:t(Q).PRODUCT_SPU_STATUS,value:a.row.status},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[z,t(n)]]),r(b,{total:t(p),page:t(s).pageNo,"onUpdate:page":e[0]||(e[0]=a=>t(s).pageNo=a),limit:t(s).pageSize,"onUpdate:limit":e[1]||(e[1]=a=>t(s).pageSize=a),onPagination:c},null,8,["total","page","limit"])]),_:1})}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/member/user/detail/UserFavoriteList.vue"]])});export{ta as __tla,f as default};
|