Files
hnxdcount-uniapp/unpackage/dist/build/mp-weixin/components/tabbar/tabbar.js
PC-202306242200\Administrator dac42e3b0c first commit
2026-03-28 23:09:02 +08:00

2 lines
793 B
JavaScript

"use strict";const t=require("../../common/vendor.js"),e={__name:"tabbar",props:{path:{type:String,default:""}},setup(e){const a=e;let n=t.ref([{pagePath:"/pages/index/index",text:"首页",icon_select:"/static/tabbar/home.png",icon:"/static/tabbar/homes.png",type:0},{pagePath:"/pages/market/market",text:"公告",icon_select:"/static/tabbar/market.png",icon:"/static/tabbar/markets.png",type:0},{pagePath:"/pages/mine/mine",text:"我的",icon_select:"/static/tabbar/mine.png",icon:"/static/tabbar/mines.png",type:0}]);return(i,p)=>({a:t.f(t.unref(n),((n,i,p)=>({a:e.path==n.pagePath?n.icon:n.icon_select,b:t.t(n.text),c:e.path==n.pagePath?"#4874E5":"",d:i,e:t.o((e=>(e=>{if(t.index.vibrateShort(),a.path==e)return!0;t.index.switchTab({url:e})})(n.pagePath)),i)})))})}};wx.createComponent(e);