朱桂飞
2023-04-03 458962a2e4a4f6af0caa5fcb3867f2e42125fd40
App.vue
@@ -32,11 +32,11 @@
         console.log('App Launch')
      },
      onShow: function() {
         console.log('App Show')
         //console.log('App Show')
      },
      onHide: function() {
         console.log('App Hide')
         //console.log('App Hide')
      },
      methods:{
       
@@ -44,18 +44,18 @@
      },
      mounted() {
         var i = 0;
         setInterval(function() {
            i++
            if (i % 2 == 0) {
               uni.showTabBarRedDot({
                  index: 1
               })
            } else {
               uni.hideTabBarRedDot({
                  index: 1
               })
            }
         }, 3000)
         // setInterval(function() {
         //    i++
         //    if (i % 2 == 0) {
         //       uni.showTabBarRedDot({
         //          index: 1
         //       })
         //    } else {
         //       uni.hideTabBarRedDot({
         //          index: 1
         //       })
         //    }
         // }, 3000)