123456789101112131415161718 |
- <van-tabbar active="{{ active }}" placeholder active-color='#3874F6' bindchange="onChange">
- <van-tabbar-item wx:if="{{per.query(Permission,item.text)}}" info="{{item.fcount}}" name="{{item.name}}" wx:for="{{tabbarList}}" wx:key="index">
- <text slot='icon' class="{{'iconfont '+item.icon}}" style="font-size: 44rpx; color: #999999;" />
- <text slot='icon-active' class="{{'iconfont '+item.icon}}" style="font-size: 44rpx; color: #3874F6;" />
- {{item.text}}
- </van-tabbar-item>
- </van-tabbar>
- <wxs module="per">
- function query(list, name) {
- // console.log(list.includes(name))
- return a1 = list.some(function (v) {
- return v == name
- });
- };
- module.exports.query = query
- </wxs>
|