From aff8d054df4a638f399dc8f15d98c19b9c9aa785 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 29 四月 2025 10:11:25 +0800
Subject: [PATCH] 扫码视频播放

---
 custom-tab-bar/index.wxml |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml
index 384fd2f..f96ce3b 100644
--- a/custom-tab-bar/index.wxml
+++ b/custom-tab-bar/index.wxml
@@ -1,18 +1,20 @@
-<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"
-	>
-		<view class="custom-tab-bar-wrapper">
-			<t-icon prefix="wr" name="{{item.icon}}" size="48rpx" />
-			<view class="text">{{ item.text }}</view>
-		</view>
-	</t-tab-bar-item>
-</t-tab-bar>
+<!-- <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="id">
+    <view class="custom-tab-bar-wrapper">
+      <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>
+</t-tab-bar> -->
 
+<view class="tabBarBox">
+  <view class="tabItem" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index" bindtap="changeTab" data-num="{{index}}">
+    <view class="custom-tab-bar-wrapper">
+      <view class="tab-images">
+        <image wx:if="{{active !== index}}" class="tabImg" src="{{item.icon}}" mode="aspectFit" />
+        <image wx:else class="tabImg" src="{{item.activeIcon}}" mode="aspectFit" />
+      </view>
+      <view class="text {{active == index ? 'activeText' : ''}}">{{ item.text }}</view>
+    </view>
+  </view>
+</view>
\ No newline at end of file

--
Gitblit v1.9.1