| 1 |
- import{d as b,f as v,u as m,g as k,r as x,o as w,c as S,a as s,b as y,w as I,i as N,h as u,t as c,F as C,_ as F}from"./index-1a997549.js";const h={class:"foot"},V=["id"],O=["id"],$=["id"],B=["id"],J=b({__name:"FootView",props:{index:{type:Number,default:4}},setup(f){const p=f;localStorage.botInfo=typeof localStorage.botInfo<"u"&&localStorage.botInfo?localStorage.botInfo:JSON.stringify({});const n=v(JSON.parse(localStorage.botInfo)),a=v(!1),i=m(),_=()=>{i.push("/user/message"),a.value=!1},d=t=>{n.value.state=="4"?n.value.trc_url?i.push(t):a.value=!0:!n.value.fsdz||!n.value.trc_url?a.value=!0:i.push(t)},r=t=>{switch(o.value=t,t){case 1:d("/energy");break;case 2:d("/exchange");break;case 3:d("/machine");break;case 4:i.push("/user");break}},o=v(4);return k(()=>{o.value=p.index,n.value=JSON.parse(localStorage.botInfo)}),(t,e)=>{const g=x("a-modal");return w(),S(C,null,[s("div",h,[s("div",{id:o.value==1?"foot-icon-1":"",onClick:e[0]||(e[0]=l=>r(1))},null,8,V),s("div",{id:o.value==2?"foot-icon-2":"",onClick:e[1]||(e[1]=l=>r(2))},null,8,O),s("div",{id:o.value==3?"foot-icon-3":"",onClick:e[2]||(e[2]=l=>r(3))},null,8,$),s("div",{id:o.value==4?"foot-icon-4":"",onClick:e[3]||(e[3]=l=>r(4))},null,8,B)]),y(g,{visible:a.value,"onUpdate:visible":e[4]||(e[4]=l=>a.value=l),title:u(c)("系统提示"),onOk:_,"ok-text":u(c)("确定"),"cancel-text":u(c)("取消")},{default:I(()=>[s("p",null,N(u(c)("请先前往完善信息")),1)]),_:1},8,["visible","title","ok-text","cancel-text"])],64)}}});const T=F(J,[["__scopeId","data-v-70903866"],["__file","/usr/local/develop/php/www/waibao/NN2023091101/PY2023092801/TronenergyWeb/src/components/footer/FootView.vue"]]);export{T as F};
|