适配小程序代码结构

This commit is contained in:
zhonghua1
2026-01-20 08:46:36 +08:00
parent 3b169467ac
commit 9c00db8ff5
615 changed files with 62726 additions and 8 deletions

13
custom-tab-bar/index.wxml Normal file
View File

@@ -0,0 +1,13 @@
<view class="tabbar">
<view
wx:for="{{visibleTabs}}"
wx:key="key"
class="tabbar-item {{currentPath === item.pagePath ? 'active' : ''}}"
data-item="{{item}}"
bindtap="switchTab"
>
<image class="tabbar-icon" src="{{currentPath === item.pagePath ? item.selectedIconPath : item.iconPath}}" />
<text class="tabbar-text">{{item.text}}</text>
</view>
</view>