import{l as e,j as a,o as l,b as t,a as s,w as n,m as u,F as i,r,I as d,p as c,i as o,g as m,t as f,c as g,v as p,n as v,f as _,E as w}from"./index.22b081e2.js";import{a as h,b as j}from"./user.b3821dab.js";import{_ as T}from"./fanhui.37cee083.js";import{_ as b}from"./plugin-vue_export-helper.21dcd24c.js";var x=b({onUnload(){clearInterval(this.qbdjs)},setup(){let l=e(0),t=e([]),s=e([]),n=e(null);function u(e,a){let l=new Date(e.timeSale.replace(/-/g,"/")).getTime(),t=(new Date).getTime(),n=l-t;if(l>t){s.value[a].isdjs=!0;var u=parseInt(n/864e5),i=parseInt(n%864e5/36e5),r=parseInt(n%36e5/6e4),d=parseInt(n%6e4/1e3);i<10&&(i="0"+i),r<10&&(r="0"+r),d<10&&(d="0"+d),s.value[a].day=u,s.value[a].hours=i,s.value[a].minutes=r,s.value[a].seconds=d}else s.value[a].isdjs=!1}return h({}).then((e=>{console.log(e),t.value=e.data,j({id:t.value[l.value].id}).then((e=>{console.log(e),s.value=e.data.list,s.value.map((l=>{if(2==l.state||3==l.state){let e=new Date(l.timeSale.replace(/-/g,"/")).getTime(),a=(new Date).getTime();l.ismw=e>a}else l.ismw=!1;let t=a("users"),s=new Date(e.data.utime.replace(/-/g,"/")).getTime(),n="";return t&&(n=new Date(t.createdTime.replace(/-/g,"/")).getTime()),t?l.newcomer&&s>n?l.sfgm=!1:l.sfgm=!0:l.sfgm=!1,l.surfacePlot?l.tupian=l.surfacePlot:l.tupian=l.thumbnail,l})),n.value=setInterval((()=>{s.value.map(((e,a)=>{2==e.state||3==e.state?u(e,a):s.value[a].isdjs=!1}))}),1e3)}))})),{qbdjs:n,fanh:function(){d({})},godetails:function(e){c({url:"../details/details?id="+e.id})},fenglei:t,xuanzhon:l,gaixuanz:function(e,i){l.value=e,s.value=[],j({id:t.value[l.value].id}).then((e=>{console.log(e),s.value=e.data.list,s.value.map((l=>{if(l.surfacePlot?l.tupian=l.surfacePlot:l.tupian=l.thumbnail,2==l.state||3==l.state){let e=new Date(l.timeSale.replace(/-/g,"/")).getTime(),a=(new Date).getTime();l.ismw=e>a}else l.ismw=!1;let t=a("users"),s=new Date(e.data.utime.replace(/-/g,"/")).getTime(),n="";return t&&(n=new Date(t.createdTime.replace(/-/g,"/")).getTime()),t?l.newcomer&&s>n?l.sfgm=!1:l.sfgm=!0:l.sfgm=!1,l})),s.value.map(((e,a)=>{2==e.state||3==e.state?u(e,a):s.value[a].isdjs=!1})),n.value=setInterval((()=>{s.value.map(((e,a)=>{2==e.state||3==e.state?u(e,a):s.value[a].isdjs=!1}))}),1e3)}))},changplist:s}}},[["render",function(e,a,d,c,h,j){const b=o,x=m,y=f,D=w;return l(),t(i,null,[s(x,{class:"fanhui"},{default:n((()=>[s(b,{onClick:c.fanh,src:T},null,8,["onClick"]),s(x,null,{default:n((()=>[u("作品列表")])),_:1}),s(x)])),_:1}),s(y,{"scroll-x":"true",class:"Collections_biaoqian"},{default:n((()=>[s(x,{style:{display:"flex"}},{default:n((()=>[(l(!0),t(i,null,r(c.fenglei,((e,a)=>(l(),g(x,{class:v(["neir",c.xuanzhon==a?"xz":""]),onClick:l=>c.gaixuanz(a,e)},{default:n((()=>[u(p(e.seriesName),1)])),_:2},1032,["onClick","class"])))),256))])),_:1})])),_:1}),s(x,{class:"lists"},{default:n((()=>[(l(!0),t(i,null,r(c.changplist,(e=>(l(),g(x,{onClick:a=>c.godetails(e)},{default:n((()=>[s(b,{src:e.tupian},null,8,["src"]),e.isdjs?(l(),g(x,{key:0,class:"djs"},{default:n((()=>[e.day>0?(l(),g(x,{key:0},{default:n((()=>[u(p(e.day),1)])),_:2},1024)):_("",!0),e.day>0?(l(),g(D,{key:1},{default:n((()=>[u("天")])),_:1})):_("",!0),s(x,null,{default:n((()=>[u(p(e.hours),1)])),_:2},1024),u(": "),s(x,null,{default:n((()=>[u(p(e.minutes),1)])),_:2},1024),u(": "),s(x,null,{default:n((()=>[u(p(e.seconds),1)])),_:2},1024)])),_:2},1024)):_("",!0),s(x,{class:"neiron"},{default:n((()=>[s(x,null,{default:n((()=>[u(p(e.collectionName),1)])),_:2},1024),s(x,null,{default:n((()=>[s(x,null,{default:n((()=>[s(b,{src:e.writerAvatar},null,8,["src"]),s(x,null,{default:n((()=>[u(p(e.artistName),1)])),_:2},1024)])),_:2},1024),s(x,{class:v(7==e.state||0==e.numberRemaining||!e.sfgm||e.ismw?"":"yjxz")},{default:n((()=>[u(" ¥"+p(e.price),1)])),_:2},1032,["class"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),256))])),_:1})],64)}],["__scopeId","data-v-6ced613d"]]);export{x as default};