UserFavoriteList-c36be23f.js 2.8 KB

1
  1. import{aA as C,d as N,r as o,x as S,b as T,o as u,C as d,A as i,k as z,a as t,f as r,D,E as P,aB as I,P as k,X as A,Y as E,Z as F,_ as L,__tla as j}from"./index-286756b9.js";import{_ as q,__tla as B}from"./ContentWrap-83998678.js";import{_ as O,__tla as R}from"./index-ed6c67a8.js";import{_ as X,__tla as Y}from"./DictTag-f72b04ca.js";import{E as Z,__tla as G}from"./el-image-73c105b7.js";import{__tla as H}from"./el-image-viewer-e0e5d3be.js";import{D as J,__tla as K}from"./dict-82dca549.js";import{d as M,__tla as Q}from"./formatTime-83e416ef.js";import{u as V,__tla as W}from"./useMessage-084b1e70.js";import{__tla as $}from"./el-card-d3d5a654.js";import{__tla as aa}from"./index-fb47c94c.js";import"./color-6e929987.js";let f,ta=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return aa}catch{}})()]).then(async()=>{f=L(N({__name:"UserFavoriteList",props:{userId:{type:Number,required:!0}},setup(h){V(),k();const n=o(!0),p=o(0),c=o([]),_=S({pageNo:1,pageSize:10,name:null,createTime:[],userId:NaN});o();const m=async()=>{n.value=!0;try{const e=await(s=_,C.get({url:"/product/favorite/page",params:s}));c.value=e.list,p.value=e.total}finally{n.value=!1}var s},{userId:y}=h;return T(()=>{_.userId=y,m()}),(s,e)=>{const l=A,g=Z,w=X,v=E,b=O,U=q,x=F;return u(),d(U,null,{default:i(()=>[z((u(),d(v,{data:t(c)},{default:i(()=>[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:i(({row:a})=>[r(g,{src:a.picUrl,class:"h-30px w-30px",onClick:ra=>s.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:i(({row:a})=>[D(P(t(I)(a.price))+"\u5143",1)]),_:1}),r(l,{align:"center",label:"\u9500\u91CF","min-width":"90",prop:"salesCount"}),r(l,{formatter:t(M),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:i(a=>[r(w,{type:t(J).PRODUCT_SPU_STATUS,value:a.row.status},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[x,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","D:/zx/mall-newfeifan-zx-admin/src/views/member/user/detail/UserFavoriteList.vue"]])});export{ta as __tla,f as default};