From b273028fde3178d2643312c66d943b12f2c1bfad Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 21 三月 2024 09:26:06 +0800
Subject: [PATCH] 图书分类、图书列表、图书详情·页测试bug修改

---
 custom-tab-bar/index.wxml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml
index 90d22b6..6cfdf11 100644
--- a/custom-tab-bar/index.wxml
+++ b/custom-tab-bar/index.wxml
@@ -1,11 +1,11 @@
 <t-tab-bar value="{{active}}" bindchange="onChange" split="{{false}}">
-  <t-tab-bar-item wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index">
+  <t-tab-bar-item wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="{{item.id}}">
     <view class="custom-tab-bar-wrapper">
       <!-- <t-icon prefix="wr" name="{{item.icon}}" size="48rpx" />
       <view class="text">{{ item.text }}</view> -->
       <!-- <t-image wx:if="{{active !== index}}" class="tabImg" src="{{item.icon}}" mode="heightFix" width="22" height="22" />
       <t-image wx:else class="tabImg" src="{{item.activeIcon}}" mode="heightFix" width="22" height="22" /> -->
-      <t-image class="tabImg" src="{{active == index ? item.activeIcon : item.icon}}" width="22" height="22"></t-image>
+      <t-image class="tabImg" src="{{active == item.id ? item.activeIcon : item.icon}}" width="22" height="22"></t-image>
       <view class="text">{{ item.text }}</view>
     </view>
   </t-tab-bar-item>

--
Gitblit v1.9.1