This commit is contained in:
zoujiandong
2025-08-29 09:46:07 +08:00
parent cc0ddd0bc9
commit da6e4ae551
10 changed files with 1121 additions and 624 deletions
+11 -15
View File
@@ -9,23 +9,19 @@
>
<!-- 图标容器 -->
<view class="icon-container">
<!-- <uni-icons
:type="currentTab === index ? item.activeIcon : item.icon"
:size="currentTab === index ? 28 : 24"
:color="currentTab === index ? item.activeColor : item.color"
></uni-icons> -->
<image class="img" :src="currentTab === index ? item.activeIcon : item.icon" alt="" />
<!-- 徽章 -->
<view class="badge" v-if="item.badge && item.badge > 0">
<!-- <view class="badge" v-if="item.badge && item.badge > 0">
<uni-badge
:text="item.badge > 99 ? '99+' : item.badge.toString()"
type="error"
size="small"
></uni-badge>
</view>
</view> -->
<!-- 红点 -->
<view class="red-dot" v-if="item.showRedDot"></view>
<!-- <view class="red-dot" v-if="item.showRedDot"></view> -->
</view>
<!-- 文字 -->
@@ -82,9 +78,9 @@
text: '患教学堂',
color: '#999999',
activeColor: '#007aff',
badge: 5,
badge:0,
showRedDot: false,
pagePath: '/pages/education/education'
pagePath: '/pages/patientClass/patientClass'
},
{
icon: live,
@@ -93,8 +89,8 @@
color: '#999999',
activeColor: '#007aff',
badge: 0,
showRedDot: true,
pagePath: '/pages/meeting/meeting'
showRedDot: false,
pagePath: '/pages/live/live'
},
{
icon: education,
@@ -102,9 +98,9 @@
text: '继续教育',
color: '#999999',
activeColor: '#007aff',
badge: 12,
badge: 0,
showRedDot: false,
pagePath: '/pages/education/continuing'
pagePath: '/pages/education/education'
},
{
icon: my,
@@ -114,7 +110,7 @@
activeColor: '#007aff',
badge: 0,
showRedDot: false,
pagePath: '/pages/profile/profile'
pagePath: '/pages/my/my'
}
]);