修改tab样式

This commit is contained in:
@fawn-nine
2024-07-29 15:33:50 +08:00
parent 79f0b7461d
commit e4c17df0f9
4 changed files with 5 additions and 4 deletions

View File

@@ -19,9 +19,9 @@
:src="'/' + item.iconPath"
mode="aspectFit"
></image>
<text
<text
class="footer_nav_item_text"
:class="[item.pagePath == path ? 'footer_item_text_active' : '']"
:class="[item.pagePath == path ? 'footer_item_text_active' : '',index == 2 && item.pagePath == path ? 'redText' :'']"
>{{ item.text }}</text
>
</view>
@@ -216,6 +216,7 @@ export default {
color: #7b7b7b;
margin-top: 6rpx;
}
.footer_nav_item_text.redText{color: red;}
.footer_nav_item_text_active {
color: #f9a633;