From aeab73facdc02b13474e671215bec79c8e64008a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 14 九月 2023 18:01:37 +0800
Subject: [PATCH] 组织bug
---
minipro_standard/components/myTabber.vue | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/minipro_standard/components/myTabber.vue b/minipro_standard/components/myTabber.vue
index bee9097..b29f6ec 100644
--- a/minipro_standard/components/myTabber.vue
+++ b/minipro_standard/components/myTabber.vue
@@ -6,9 +6,9 @@
fixed
activeColor="#222"
inactiveColor="#666"
- >
- <u-tabbar-item text="寰呭姙">
- <view class="" slot="active-icon">
+ :safeAreaInsetBottom="true">
+ <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: {
@@ -45,6 +47,9 @@
return {
value: 0
};
+ },
+ computed: {
+ ...mapState(['upcomingNum'])
},
methods: {
click(index) {
@@ -71,7 +76,7 @@
this.value = index
})
- console.log(this.value);
+ console.log(index);
if (index==0) {
// console.log('index');
uni.switchTab({
@@ -91,6 +96,9 @@
}
},
}
+ /**
+ *
+ * */
</script>
<style lang="scss" scope>
--
Gitblit v1.9.3