111
k94314517
2023-10-16 ca73a173f008c8d7a9d700bad897ca24fe2d2203
minipro_standard/components/myTabber.vue
@@ -2,13 +2,14 @@
   <view>
      <u-tabbar
         :value="index"
         :customStyle="{paddingTop: '5px',paddingBottom: '5px',}"
         @change="change"
         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"> 
@@ -31,11 +32,14 @@
               <image src="@/static/nav_wode@2x.png" class="icon-style" mode=""></image>
            </view>
         </u-tabbar-item>
      </u-tabbar>
   </view>
</template>
<script>
   import { mapState } from 'vuex'
   export default {
      name:"myTabbar",
      props: {
@@ -45,6 +49,9 @@
         return {
            value: 0
         };
      },
      computed: {
         ...mapState(['upcomingNum'])
      },
      methods: {
         click(index) {
@@ -71,7 +78,7 @@
               this.value = index
            })
            
            console.log(this.value);
            console.log(index);
            if (index==0) {
               // console.log('index');
               uni.switchTab({
@@ -91,6 +98,9 @@
         }
      },
   }
   /**
    *
    * */
</script>
<style lang="scss" scope>