添加商城标签
This commit is contained in:
@@ -6,8 +6,10 @@ Component({
|
||||
label_value: 'label_1',
|
||||
list: [
|
||||
{ label_value: 'label_1', icon: 'home', ariaLabel: '首页' },
|
||||
{ label_value: 'label_2', icon: 'chat', ariaLabel: '聊天' },
|
||||
{ label_value: 'label_3', icon: 'user', ariaLabel: '我的' },
|
||||
{ label_value: 'label_2', icon: 'add', ariaLabel: '聊天' },
|
||||
{ label_value: 'label_3', icon: 'shop', ariaLabel: '商城' },
|
||||
{ label_value: 'label_4', icon: 'user', ariaLabel: '我的' },
|
||||
|
||||
],
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
<scroll-view class="scrollarea" scroll-y type="list">
|
||||
<view hidden="{{label_value !== 'label_1'}}"><home-component></home-component></view>
|
||||
<view hidden="{{label_value !== 'label_2'}}"><chat-component></chat-component></view>
|
||||
<view hidden="{{label_value !== 'label_3'}}"><user-component id="userComp"></user-component></view>
|
||||
<view hidden="{{label_value !== 'label_3'}}">
|
||||
<a></a>
|
||||
</view>
|
||||
<view hidden="{{label_value !== 'label_4'}}"><user-component id="userComp"></user-component></view>
|
||||
<t-tab-bar t-class="t-tab-bar" value="{{label_value}}" bindchange="onChange" shape="round" theme="tag" split="{{false}}">
|
||||
<t-tab-bar-item
|
||||
wx:for="{{list}}"
|
||||
|
||||
Reference in New Issue
Block a user