qingyiay
2023-10-10 a25c7697644a40d3aa3a9746085a9a7618dd098a
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -124,8 +124,10 @@
         clearInterval(this.globalIntervalId);
         this.changeisconnect(false)
      },
      onLoad() {
      onShow() {
         this.init();
      },
      onLoad() {
         this.$store.dispatch('websocketInit')
         this.$store.commit('changeisLogin', true)
         console.log(this.globalisconnect, 'index的ws数据');
@@ -189,16 +191,20 @@
               }
            } else if (v.startsWith('wsg')) {
               let wsgObj = JSON.parse(v.slice(5));
               if (uni.getStorageInfoSync('carNo') === wsgObj.carNo) {
                  changewsgVisiable(true)
                  changewsgContent(wsgObj.content)
               if (uni.getStorageSync('carNo') === wsgObj.carNo && !wsgObj.peopleWeigh) {
                  this.changewsgVisiable(true)
                  this.changewsgContent(wsgObj.content)
               }
               if (uni.getStorageSync('carNo') === wsgObj.carNo && wsgObj.peopleWeigh === 2) {
                  this.changeconfirmWeighVisiable(true)
                  this.changeconfirmWeighContent(wsgObj.content)
               }
            }
         }
      },
      methods: {
         ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit',
            'changewsgVisiable', 'changewsgContent'
            'changewsgVisiable', 'changewsgContent', 'changeconfirmWeighVisiable', 'changeconfirmWeighContent'
         ]),
         messagePage() {
            uni.navigateTo({