Commit 136e211487272f5a8ab59413a695198d85c7cd12
1 parent
9b5ac1ca
分销功能的显示,自定义模板的时候,分销关闭了,分销按钮也要不显示
Showing
1 changed file
with
2 additions
and
2 deletions
custom-tab-bar/index.wxml
1 | 1 | <!-- 如果是自定义的话 --> |
2 | 2 | <view class="main_bar {{is_custum?'custom':''}}" style=" background: {{backgroundColor}}; font-size: 22rpx;"> |
3 | 3 | <block wx:for="{{list}}" wx:for-index="idx"> |
4 | - <block wx:if="{{item.nav_name !== '分销' || is_custum}}"> | |
4 | + <block wx:if="{{item.nav_name !== '分销' && item.weappurl!= '/pages/distribution/distribution'}}"> | |
5 | 5 | <view data-url="{{item.weappurl}}" bindtap="nav_goto" class="tabbar_item" data-act="{{active==idx?1:0}}" |
6 | 6 | style="color: {{active==idx?fontcolor_sele:fontcolor}};"> |
7 | 7 | <!-- <view data-url="{{item.weappurl}}" bindtap="nav_goto" class="tabbar_item" data-act="{{active==idx?1:0}}" |
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | </view> |
16 | 16 | </block> |
17 | 17 | <!-- 是分销商且没有关闭,可以显示 --> |
18 | - <block wx:if="{{((item.nav_name === '分销') && (item.weappurl === '/pages/distribution/distribution')) && (is_no_distri == 0)}}"> | |
18 | + <block wx:if="{{(item.nav_name === '分销' || item.weappurl === '/pages/distribution/distribution') && !is_no_distri}}"> | |
19 | 19 | <view data-url="{{item.weappurl}}" bindtap="nav_goto" class="tabbar_item" data-act="{{active==idx?1:0}}" |
20 | 20 | style="color: {{active==idx?fontcolor_sele:fontcolor}};"> |
21 | 21 | <!-- <view data-url="{{item.weappurl}}" bindtap="nav_goto" class="tabbar_item" data-act="{{active==idx?1:0}}" | ... | ... |