| 1 |
- "use strict";const e=require("../../common/vendor.js"),a=require("../../store/message.js"),t={__name:"custom-tabbar",props:{activeIndex:{type:Number,default:0}},setup(t){const s=t,n=e.ref("#999999"),c=e.ref("#1F6CFF"),o=e.computed((()=>a.messageStore.unreadCount)),g=e.ref([{pagePath:"/pages/jobs/jobs",iconPath:"/static/tabbar/jobs_n.png",selectedIconPath:"/static/tabbar/jobs_a.png",text:"岗位"},{pagePath:"/pages/assessment/assessment",iconPath:"/static/tabbar/assess_n.png",selectedIconPath:"/static/tabbar/assess_a.png",text:"测评"},{pagePath:"/pages/message/message",iconPath:"/static/tabbar/msg_n.png",selectedIconPath:"/static/tabbar/msg_a.png",text:"消息"},{pagePath:"/pages/my/my",iconPath:"/static/tabbar/my_n.png",selectedIconPath:"/static/tabbar/my_a.png",text:"我的"}]);return e.onMounted((()=>{e.index.hideTabBar({animation:!1})})),(a,p)=>({a:e.f(g.value,((a,g,p)=>e.e({a:"/pages/message/message"===a.pagePath&&o.value>0},"/pages/message/message"===a.pagePath&&o.value>0?{b:e.t(o.value)}:{},{c:t.activeIndex===g?a.selectedIconPath:a.iconPath,d:e.t(a.text),e:t.activeIndex===g?c.value:n.value,f:g,g:e.o((t=>((a,t)=>{s.activeIndex!==t&&e.index.switchTab({url:a})})(a.pagePath,g)),g)})))})}},s=e._export_sfc(t,[["__scopeId","data-v-3335b5b8"]]);wx.createComponent(s);
|