import{d as a,r as s,G as o,e as n,f as e,m as l,j as t,w as i,h as p,k as r,i as c,C as u,u as m,R as d,M as h,N as x,F as f,n as v,l as w,t as b,S as g,p as _,x as k}from"./index.ef18fbfd.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";var T=y(a({props:{showNav:{type:Boolean,default:!1},bottom:{default:"75px"}},setup(a){const y=s({showToTop:!1,nav:{show:!1,list:[{name:"首页",icon:"wap-home-o",url:"/"},{name:"分类",icon:"apps-o",url:"/?index=1"},{name:"搜索",icon:"search",url:"/pages/topSearch/index"},{name:"购物车",icon:"shopping-cart-o",url:"/?index=2"},{name:"我的",icon:"manager-o",url:"/?index=3"},{name:"收藏夹",icon:"like-o",url:"/pages/my/fav"}]}});function T(){g({scrollTop:0})}function C(){y.nav.show=!0}return o((a=>{y.showToTop=a.scrollTop>100})),(s,o)=>{const g=n("van-image"),j=k,N=n("van-icon"),z=n("van-overlay");return e(),l(f,null,[t(j,{class:"fix_rb",style:d({bottom:a.bottom})},{default:i((()=>[a.showNav?(e(),p(g,{key:0,width:"48px",class:"btn mg-b-px-10",src:"/static/img/rb_nav.png",onClick:C})):r("v-if",!0),c("br"),t(g,{width:"48px",class:u(["btn toTop",{show:m(y).showToTop}]),src:"/static/img/rb_top.png",onClick:T},null,8,["class"])])),_:1},8,["style"]),t(z,{style:{"z-index":"7"},show:m(y).nav.show,onClick:o[0]||(o[0]=a=>m(y).nav.show=!1)},{default:i((()=>[h(t(j,{class:"fix_rb bg-white ra-20 pd-h-px-20 pd-v-px-5 mg-r-px-10-m"},{default:i((()=>[(e(!0),l(f,null,v(m(y).nav.list,((a,s)=>(e(),l(f,null,[t(j,{class:"inline-block text-center pd-px-5",style:{width:"45px"},onClick:s=>{var o;(o=a.url)&&_({url:o})}},{default:i((()=>[t(N,{size:"24",name:a.icon},null,8,["name"]),t(j,{class:"text-ss"},{default:i((()=>[w(b(a.name),1)])),_:2},1024)])),_:2},1032,["onClick"]),s%3==2?(e(),l("br",{key:0})):r("v-if",!0)],64)))),256))])),_:1},512),[[x,m(y).nav.show]])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-6e54bf03"]]);export{T as t};
