import{m as x}from"./management1.975d5736.js";import{p as B}from"./tangshi.fa0a913a.js";import{d as k,r as p,o as w,e as r,f as i,F as u,j as Q,n as U,g as t,u as m,t as g,R,S as f,_ as v}from"./index.0308b213.js";const Y="data:image/png;base64,[encoded data, 5364 characters]",d=l=>(R("data-v-91bf2cae"),l=l(),f(),l),C={id:"largeScreenOrder"},O={class:"content-container"},M={class:"scan-code-box"},y=["src"],J={class:"store-title"},S=d(()=>t("div",{class:"tip-box"},[t("img",{class:"scan-code",src:x,alt:""}),t("p",null,"\u626B\u63CF\u4E0A\u65B9\u4E8C\u7EF4\u7801\u70B9\u5355")],-1)),F=d(()=>t("img",{class:"payCode",src:Y,alt:""},null,-1)),G={class:"order-status"},L={class:"preparing"},b=d(()=>t("h3",{class:"preparing-title"},"\u51C6\u5907\u4E2D",-1)),W={class:"list-box"},X={class:"ready-to-collect"},q=d(()=>t("h3",{class:"ready-title"},"\u8BF7\u53D6\u9910",-1)),z={class:"list-box"},P=k({setup(l){let n=JSON.parse(sessionStorage.getItem("shangpu_pinia-store-admin-user")||"{}");n.store&&(n=n.store);const h=p([]),c=p([]),A=p([]);(()=>{B().then(e=>{console.log("res",e);let a=e.noReadyList,s=e.readyList;c.value=[],A.value=[],a.forEach(o=>{c.value.push(o.serial_sn)}),s.forEach(o=>{A.value.push(o.serial_sn)}),console.log("preparingList",c.value),console.log("readyList",A.value)})})();const E=e=>{for(let a=0;a<e;a++){const s=`${Math.random()*1+2}px`,o=`${Math.random()*1920}px`,D=`${Math.random()*1920}px`,I={style:{position:"absolute",borderRadius:"50%",backgroundColor:"white",width:s,height:s,top:D,left:o},speedX:(Math.random()-.5)*2,speedY:(Math.random()-.5)*2};h.value.push(I)}},H=()=>{h.value.forEach(e=>{let a=parseFloat(e.style.left)+e.speedX,s=parseFloat(e.style.top)+e.speedY;(a<0||a>window.innerWidth-parseFloat(e.style.width))&&(e.speedX=-e.speedX),(s<0||s>window.innerHeight-parseFloat(e.style.height))&&(e.speedY=-e.speedY),e.style.left=`${Math.min(Math.max(a,0),window.innerWidth-parseFloat(e.style.width))}px`,e.style.top=`${Math.min(Math.max(s,0),window.innerHeight-parseFloat(e.style.height))}px`})};return w(()=>{E(500),setInterval(H,20)}),(e,a)=>(r(),i("div",C,[(r(!0),i(u,null,Q(h.value,(s,o)=>(r(),i("div",{class:"dot",key:o,style:U(s.style)},null,4))),128)),t("div",O,[t("div",M,[t("img",{class:"logo",src:m(n).store_logo,alt:""},null,8,y),t("h3",J,g(m(n).store_title),1),S,F]),t("div",G,[t("div",L,[b,t("div",W,[(r(!0),i(u,null,Q(c.value,s=>(r(),i("p",{key:s},g(s),1))),128))])]),t("div",X,[q,t("div",z,[(r(!0),i(u,null,Q(A.value,s=>(r(),i("p",{key:s},g(s),1))),128))])])])])]))}});const K=v(P,[["__scopeId","data-v-91bf2cae"]]);export{K as default};
