添加商城标签

This commit is contained in:
JACKYMYPERSON
2025-09-24 21:37:23 +08:00
9 changed files with 51 additions and 176 deletions

View File

@@ -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: {

View File

@@ -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}}"