From 57513aa6aa3374271212c022219b9104321c21ad Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期四, 14 九月 2023 10:16:13 +0800
Subject: [PATCH] 小程序
---
minipro_standard/components/myTabber.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/minipro_standard/components/myTabber.vue b/minipro_standard/components/myTabber.vue
index b8b5250..b29f6ec 100644
--- a/minipro_standard/components/myTabber.vue
+++ b/minipro_standard/components/myTabber.vue
@@ -7,8 +7,8 @@
activeColor="#222"
inactiveColor="#666"
:safeAreaInsetBottom="true">
- <u-tabbar-item text="寰呭姙">
- <view class="" slot="active-icon">
+ <u-tabbar-item text="寰呭姙" :badge="upcomingNum.d">
+ <view class="" slot="active-icon">
<image src="@/static/nav_daiban_sel@2x.png" class="icon-style" mode=""></image>
</view>
<view class="" slot="inactive-icon">
@@ -36,6 +36,8 @@
</template>
<script>
+ import { mapState } from 'vuex'
+
export default {
name:"myTabbar",
props: {
@@ -46,6 +48,9 @@
value: 0
};
},
+ computed: {
+ ...mapState(['upcomingNum'])
+ },
methods: {
click(index) {
// console.log('click', index);
--
Gitblit v1.9.3