index.f22177df.js 3.3 KB

1
  1. import{p as v,N as S,L as y,a as T,T as E,H as L,b as C,l as D,c as b,d as H,_ as N}from"./background.b15a3032.js";import{r as A,u as B,c as k,a as x,o as I,t as M,_ as V,b as c,d as t,e as n,f as g,g as s,h as l,p as $,i as F}from"./index.e31bc5a1.js";const j={components:{pageHead:v,NowData:S,LastMonthData:y,airSwitchVer:T,TemChart:E,HorFloorSpace:L,LastAllEnergy:C,lastEnergyChart:D,airSwitchHor:b,LastSaveEnergy:H},setup(){const o=A(),a=B();var r=k(()=>(console.log("lastAllEnergy",a.lastAllEnergy.energyTotal),a.lastAllEnergy.energyTotal===void 0&&a.lastAllEnergy.energyCompare===void 0?2:3));const e=x({nowPage:1,timeoutsign:null,toplay(){e.nowPage==2?o.value&&o.value.toplay():e.timePageShow(500)},tostop(){e.nowPage==2&&o.value&&o.value.tostop(),clearTimeout(e.timeoutsign)},nextpage(){if(clearTimeout(e.timeoutsign),e.nowPage==3){e.nowPage=1,!a.stopSign&&e.timePageShow(7e3);return}if(e.nowPage==1){e.nowPage=2;return}e.nowPage==2&&(r.value==3?e.nowPage=3:r.value==2&&(e.nowPage=1),!a.stopSign&&e.timePageShow(7e3))},lastpage(){if(clearTimeout(e.timeoutsign),e.nowPage==3){e.nowPage=2;return}if(e.nowPage==2){e.nowPage=1,!a.stopSign&&e.timePageShow(7e3);return}e.nowPage==1&&(r.value==3?(e.nowPage=3,!a.stopSign&&e.timePageShow(7e3)):r.value==2&&(e.nowPage=2))},doneTowPage(){a.stopSign||e.timePageShow(500)},timePageShow(i){e.timeoutsign=setTimeout(()=>{if(!a.stopSign){if(e.nowPage==3){e.nowPage=1,e.timePageShow(7e3);return}if(e.nowPage==1){e.nowPage=2,console.log("allData.nowPage1",e.nowPage,i);return}e.nowPage==2&&(r.value==3?e.nowPage=3:r.value==2&&(e.nowPage=1),console.log("allData.nowPage2",e.nowPage,i),e.timePageShow(7e3))}},i)}});return I(()=>{e.timePageShow(7e3)}),{...M(e),floorSpace:o}}},z="/sgdaping/assets/background_up.45ba7fa6.png";const R=o=>($("data-v-88f566d2"),o=o(),F(),o),U={class:"horizontalScreen"},q=R(()=>t("div",{class:"bg"},[t("img",{class:"bgUp",src:z}),t("img",{class:"bgBuild",src:N})],-1)),G={class:"container"},J={class:"hor-head"},K={key:0,class:"hor-content firstScreen flexBetween"},O={class:"content-left"},Q={class:"content-left-cont horizontalClass flexBetween"},W={class:"bottom-left"},X={class:"bottom-right"},Y={class:"content-right"},Z={key:1,class:"hor-content"},ee={key:2,class:"hor-content threeScreen"},oe={class:"topCont flexBetween"},te={class:"threeLeft"},ae={class:"threeRight"},ne={class:"bottomCont"};function se(o,a,r,e,i,re){const p=s("pageHead"),_=s("NowData"),d=s("airSwitchHor"),h=s("TemChart"),w=s("LastMonthData"),u=s("HorFloorSpace"),m=s("LastAllEnergy"),P=s("LastSaveEnergy"),f=s("lastEnergyChart");return l(),c("div",U,[q,t("div",G,[t("div",J,[n(p,{onToplay:o.toplay,onTostop:o.tostop,onNextpage:o.nextpage,onLastpage:o.lastpage},null,8,["onToplay","onTostop","onNextpage","onLastpage"])]),o.nowPage==1?(l(),c("div",K,[t("div",O,[n(_,{screenType:"hor"}),t("div",Q,[t("div",W,[n(d)]),t("div",X,[n(h,{screenType:"hor"})])])]),t("div",Y,[n(w,{screenType:"hor"})])])):g("",!0),o.nowPage==2?(l(),c("div",Z,[n(u,{screenType:"hor",showPing:o.nowPage,onDonetowpage:o.doneTowPage,ref:"floorSpace"},null,8,["showPing","onDonetowpage"])])):g("",!0),o.nowPage==3?(l(),c("div",ee,[t("div",oe,[t("div",te,[n(m,{screenType:"hor"})]),t("div",ae,[n(P,{screenType:"hor"})])]),t("div",ne,[n(f,{screenType:"hor"})])])):g("",!0)])])}const le=V(j,[["render",se],["__scopeId","data-v-88f566d2"]]);export{le as default};