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