UserFavoriteList-db1a29d1.js 2.8 KB

1
  1. import{am as S,d as T,r as o,e as x,q as z,o as c,x as d,w as s,z as C,a as t,f as r,y as I,t as k,bh as P,h as D,I as q,J as F,K as L,_ as R,__tla as j}from"./index-8dc1e40a.js";import{_ as A,__tla as E}from"./ContentWrap-0aca5216.js";import{_ as H,__tla as J}from"./index-64aeaa78.js";import{_ as K,__tla as O}from"./DictTag-85aade2b.js";import{E as X,__tla as B}from"./el-image-6a48e9f1.js";import{__tla as G}from"./el-image-viewer-3b8905e6.js";import{D as M,__tla as Q}from"./dict-f13a3c8f.js";import{d as V,__tla as W}from"./formatTime-8a155b2e.js";import{u as Y,__tla as Z}from"./useMessage-7a27dd80.js";import{__tla as $}from"./el-card-18df90f0.js";import{__tla as aa}from"./index-803dbf9a.js";import"./color-6e929987.js";let f,ta=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return aa}catch{}})()]).then(async()=>{f=R(T({__name:"UserFavoriteList",props:{userId:{type:Number,required:!0}},setup(h){Y(),D();const n=o(!0),p=o(0),u=o([]),_=x({pageNo:1,pageSize:10,name:null,createTime:[],userId:NaN});o();const m=async()=>{n.value=!0;try{const e=await(i=_,S.get({url:"/product/favorite/page",params:i}));u.value=e.list,p.value=e.total}finally{n.value=!1}var i},{userId:y}=h;return z(()=>{_.userId=y,m()}),(i,e)=>{const l=q,g=X,w=K,v=F,b=H,U=A,N=L;return c(),d(U,null,{default:s(()=>[C((c(),d(v,{data:t(u)},{default:s(()=>[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:s(({row:a})=>[r(g,{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:s(({row:a})=>[I(k(t(P)(a.price))+"\u5143",1)]),_:1}),r(l,{align:"center",label:"\u9500\u91CF","min-width":"90",prop:"salesCount"}),r(l,{formatter:t(V),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:s(a=>[r(w,{type:t(M).PRODUCT_SPU_STATUS,value:a.row.status},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[N,t(n)]]),r(b,{total:t(p),page:t(_).pageNo,"onUpdate:page":e[0]||(e[0]=a=>t(_).pageNo=a),limit:t(_).pageSize,"onUpdate:limit":e[1]||(e[1]=a=>t(_).pageSize=a),onPagination:m},null,8,["total","page","limit"])]),_:1})}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/member/user/detail/UserFavoriteList.vue"]])});export{ta as __tla,f as default};