From c192e381734b9caf173c90bb9141dff0326785ee Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期四, 17 七月 2025 14:20:11 +0800 Subject: [PATCH] 京师智教小程序的专题活动模块 不做点击进入页面提示复制链接 点击时直接提示“请移步PC端查看” --- custom-tab-bar/index.wxml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index 22debee..f96ce3b 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -10,9 +10,11 @@ <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"> - <t-image wx:if="{{selected !== index}}" class="tabImg" src="{{item.icon}}" mode="aspectFill" width="22" height="22" /> - <t-image wx:else class="tabImg" src="{{item.activeIcon}}" mode="aspectFill" width="22" height="22" /> - <view class="text {{selected == index ? 'activeText' : ''}}">{{ item.text }}</view> + <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