|
|
@@ -16,10 +16,16 @@ const tabBarItems: TabBarItem[] = [
|
|
|
selectedIconClass: 'i-heroicons-home-20-solid',
|
|
|
},
|
|
|
{
|
|
|
- key: 'explore',
|
|
|
- title: '发现',
|
|
|
- iconClass: 'i-heroicons-magnifying-glass-20-solid',
|
|
|
- selectedIconClass: 'i-heroicons-magnifying-glass-20-solid',
|
|
|
+ key: 'goods-list',
|
|
|
+ title: '商品',
|
|
|
+ iconClass: 'i-heroicons-squares-2x2-20-solid',
|
|
|
+ selectedIconClass: 'i-heroicons-squares-2x2-20-solid',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'cart',
|
|
|
+ title: '购物车',
|
|
|
+ iconClass: 'i-heroicons-shopping-cart-20-solid',
|
|
|
+ selectedIconClass: 'i-heroicons-shopping-cart-20-solid',
|
|
|
},
|
|
|
{
|
|
|
key: 'profile',
|
|
|
@@ -36,8 +42,11 @@ export const TabBarLayout: React.FC<TabBarLayoutProps> = ({ children, activeKey
|
|
|
case 'home':
|
|
|
Taro.switchTab({ url: '/pages/index/index' })
|
|
|
break
|
|
|
- case 'explore':
|
|
|
- Taro.switchTab({ url: '/pages/explore/index' })
|
|
|
+ case 'goods-list':
|
|
|
+ Taro.switchTab({ url: '/pages/goods-list/index' })
|
|
|
+ break
|
|
|
+ case 'cart':
|
|
|
+ Taro.switchTab({ url: '/pages/cart/index' })
|
|
|
break
|
|
|
case 'profile':
|
|
|
Taro.switchTab({ url: '/pages/profile/index' })
|