import{d as a,r as s,H as o,e as n,f as e,m as l,j as t,w as i,h as r,k as p,i as c,C as u,u as m,E as d,N as h,O as v,F as x,n as w,l as f,t as b,S as g,v as _,x as k}from"./index.864757b1.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(x,null,[t(j,{class:"fix_rb",style:d({bottom:a.bottom})},{default:i((()=>[a.showNav?(e(),r(g,{key:0,width:"48px",class:"btn mg-b-px-10",src:"/static/img/rb_nav.png",onClick:C})):p("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(x,null,w(m(y).nav.list,((a,s)=>(e(),l(x,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((()=>[f(b(a.name),1)])),_:2},1024)])),_:2},1032,["onClick"]),s%3==2?(e(),l("br",{key:0})):p("v-if",!0)],64)))),256))])),_:1},512),[[v,m(y).nav.show]])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-6e54bf03"]]);export{T as t};
