tabbar禁用

main
limingtao 10 months ago
parent c3728d4be7
commit 2726652d67
  1. 5
      components/tabbar.vue

@ -1,7 +1,7 @@
<template>
<view>
<u-tabbar activeColor="#2294E6" :value="name" :fixed="true" :placeholder="false" :safeAreaInsetBottom="false">
<u-tabbar-item :text="item.text" :name='item.text' @click="to(item)" v-for="(item,index) in list">
<u-tabbar-item :text="item.text" :name='item.text' @click="to(item)" v-for="(item,index) in list" :style="{ 'opacity':item.text=='治理'? '0.4':1}">
<image class="u-page__item__slot-icon" slot="active-icon" :src="item.selectedIconPath"></image>
<image class="u-page__item__slot-icon" slot="inactive-icon" :src="item.iconPath"></image>
</u-tabbar-item>
@ -78,9 +78,12 @@
to(item, index) {
this.value = index
this.$.setData('pageType', 1)
if(item.pagePath!='/pages/governance/index'){
uni.switchTab({
url: item.pagePath
})
}
},
initVal() {
for (let i in this.list) {

Loading…
Cancel
Save