qingyiay
2023-10-16 546863eae7d337d47260d63a4b3733f7313ce52d
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -174,7 +174,8 @@
               if (this.globalweighHouseCode && nowWeighObj.eqCode == this.globalweighHouseCode) {
                  this.changeWeigh(nowWeighObj.weigh);
                  this.changeinfraredStatus(!!nowWeighObj.eqInfraredStatus);
                  console.log(!!nowWeighObj.eqInfraredStatus, '红外状态');
                  let warningState = nowWeighObj.warning == 1
                  this.changeWarning(warningState)
               }
            } else if (v.startsWith('msg')) {
               function removeTags(str) {
@@ -191,16 +192,21 @@
               }
            } 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',
            'changeWarning'
         ]),
         messagePage() {
            uni.navigateTo({