You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2 lines
4.9 KiB

"use strict";(self["webpackChunkvue_cli_ts"]=self["webpackChunkvue_cli_ts"]||[]).push([[685],{6036:function(t,e,a){a.d(e,{SH:function(){return o},fV:function(){return s}});var l=a(3537);a(2201);const s=t=>(0,l.WY)({url:`${(0,l.sZ)().interfaceUrl}/data/v1/thirdPartyService/suBinGetCarLocInfo?plateNo=${t}`}),o=t=>(0,l.WY)({url:"/guidance/v1/web/thirdTraffic",params:{projectCode:t},method:"get"})},5124:function(t,e,a){a.r(e),a.d(e,{default:function(){return T}});var l=a(3396),s=a(4870),o=a(7139),i=a.p+"img/traffic.7f4bf02b.png",r=a(6036),n=a(7110),c=a(2201);const w=t=>((0,l.dD)("data-v-6f87204d"),t=t(),(0,l.Cn)(),t),d=w((()=>(0,l._)("div",{class:"member-ben"},[(0,l._)("img",{class:"bg",src:i,alt:""})],-1))),u={key:0},h={class:"road1"},v={width:672,height:14,viewBox:"0 0 336 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g=["fill"],f={class:"road2"},m={width:14,height:358,viewBox:"0 0 7 179",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_=["fill"],x={class:"road3"},D={width:672,height:14,viewBox:"0 0 336 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E=["fill"],b={class:"road4"},p={width:16,height:358,viewBox:"0 0 8 179",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k=["fill"],C={key:1},B={class:"road1"},y={width:"336",height:"7",viewBox:"0 0 336 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F=["fill"],N={class:"road2"},S={width:"7",height:"179",viewBox:"0 0 7 179",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=["fill"],Y={class:"road3"},K={width:"336",height:"7",viewBox:"0 0 336 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j=["fill"],Z={class:"road4"},z={width:"8",height:"179",viewBox:"0 0 8 179",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A=["fill"],I={class:"list"};var J=(0,l.aZ)({__name:"Traffic",setup(t){const e=(0,n.Y)(),{device:a,is4K:i}=(0,s.BK)(e),w=[{name:"畅通",nameEn:"Clear",color:"#76E37D"},{name:"缓行",nameEn:"Slow",color:"#FFC552"},{name:"拥堵",nameEn:"Jam",color:"#FA997B"},{name:"非常拥堵",nameEn:"Congested",color:"#FE7168"}],J=(0,s.iH)([{roadName:"瓯江路",direction:"西向东",color:"#76E37D",status:"畅通",statusEn:"Clear"},{roadName:"华光路",direction:"北向南",color:"#76E37D",status:"畅通",statusEn:"Clear"},{roadName:"江滨东路",direction:"东向西",color:"#76E37D",status:"畅通",statusEn:"Clear"},{roadName:"上涂路",direction:"南向北",color:"#76E37D",status:"畅通",statusEn:"Clear"}]);function L(t,e){switch(t){case"畅通":e.status="畅通",e.statusEn="Clear",e.color="#76E37D";break;case"缓行":e.status="缓行",e.statusEn="Slow",e.color="#FFC552";break;case"拥堵":e.status="拥堵",e.statusEn="Jam",e.color="#FA997B";break;case"严重拥堵":e.status="非常拥堵",e.statusEn="Congested",e.color="#FE7168";break;default:break}}return(0,r.SH)(a.value.projectCode).then((t=>{t.code===c.sz.ERR_OK&&t.data.forEach((t=>{switch(t.roadName){case"瓯江路":"西向东"===t.sectionDesc&&L(t.status,J.value[0]);break;case"华光路":"北向南"===t.sectionDesc&&L(t.status,J.value[1]);break;case"江滨东路":"东向西"===t.sectionDesc&&L(t.status,J.value[2]);break;case"上涂路":"南向北"===t.sectionDesc&&L(t.status,J.value[3]);break;default:break}}))})),(t,e)=>((0,l.wg)(),(0,l.iD)(l.HY,null,[d,(0,s.SU)(i)?((0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",h,[((0,l.wg)(),(0,l.iD)("svg",v,[(0,l._)("rect",{x:"336",width:"7.00001",height:"336",transform:"rotate(90 336 0)",fill:J.value[0].color},null,8,g)]))]),(0,l._)("div",f,[((0,l.wg)(),(0,l.iD)("svg",m,[(0,l._)("rect",{x:"7",y:"179",width:"7.00002",height:"179",transform:"rotate(-180 7 179)",fill:J.value[1].color},null,8,_)]))]),(0,l._)("div",x,[((0,l.wg)(),(0,l.iD)("svg",D,[(0,l._)("rect",{x:"336",width:"7.00001",height:"336",transform:"rotate(90 336 0)",fill:J.value[2].color},null,8,E)]))]),(0,l._)("div",b,[((0,l.wg)(),(0,l.iD)("svg",p,[(0,l._)("rect",{x:"8",y:"179",width:"8.00002",height:"179",transform:"rotate(-180 8 179)",fill:J.value[3].color},null,8,k)]))])])):((0,l.wg)(),(0,l.iD)("div",C,[(0,l._)("div",B,[((0,l.wg)(),(0,l.iD)("svg",y,[(0,l._)("rect",{x:"336",width:"7.00001",height:"336",transform:"rotate(90 336 0)",fill:J.value[0].color},null,8,F)]))]),(0,l._)("div",N,[((0,l.wg)(),(0,l.iD)("svg",S,[(0,l._)("rect",{x:"7",y:"179",width:"7.00002",height:"179",transform:"rotate(-180 7 179)",fill:J.value[1].color},null,8,H)]))]),(0,l._)("div",Y,[((0,l.wg)(),(0,l.iD)("svg",K,[(0,l._)("rect",{x:"336",width:"7.00001",height:"336",transform:"rotate(90 336 0)",fill:J.value[2].color},null,8,j)]))]),(0,l._)("div",Z,[((0,l.wg)(),(0,l.iD)("svg",z,[(0,l._)("rect",{x:"8",y:"179",width:"8.00002",height:"179",transform:"rotate(-180 8 179)",fill:J.value[3].color},null,8,A)]))])])),(0,l._)("div",I,[((0,l.wg)(),(0,l.iD)(l.HY,null,(0,l.Ko)(w,(e=>(0,l._)("div",{key:e.name,class:"item"},[(0,l._)("div",{class:"color",style:(0,o.j5)("background:"+e.color)},null,4),(0,l._)("div",null,(0,o.zw)(t.switchLanguage(e,"name")),1)]))),64))])],64))}}),L=a(89);const R=(0,L.Z)(J,[["__scopeId","data-v-6f87204d"]]);var T=R}}]);
//# sourceMappingURL=685.067ca875.js.map