jiangping
2023-09-14 aeab73facdc02b13474e671215bec79c8e64008a
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>