基本成型

This commit is contained in:
JACKYMYPERSON
2025-09-27 17:24:52 +08:00
parent 578d49826b
commit eae49c76bd
502 changed files with 15238 additions and 708 deletions

View File

@@ -4,7 +4,8 @@
"t-tab-bar": "tdesign-miniprogram/tab-bar/tab-bar",
"t-tab-bar-item": "tdesign-miniprogram/tab-bar-item/tab-bar-item",
"home-component":"/pages/home/home",
"chat-component":"/pages/chat/chat",
"user-component":"/pages/user/user"
"publish-component":"/pages/publish/publish",
"user-component":"/pages/user/user",
"shop-component":"/pages/shop/shop"
}
}

View File

@@ -9,7 +9,7 @@ Component({
label_value: 'label_1',
list: [
{ label_value: 'label_1', icon: 'home', ariaLabel: '首页' },
{ label_value: 'label_2', icon: 'add', ariaLabel: '聊天' },
{ label_value: 'label_2', icon: 'add', ariaLabel: '发布' },
{ label_value: 'label_3', icon: 'shop', ariaLabel: '商城' },
{ label_value: 'label_4', icon: 'user', ariaLabel: '我的' },

View File

@@ -1,9 +1,9 @@
<!--index.wxml-->
<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_2'}}"><publish-component></publish-component></view>
<view hidden="{{label_value !== 'label_3'}}">
<a></a>
<shop-component></shop-component>
</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}}">