qingyiay
2023-10-23 5c2decc75ac02ba4409375efc4f793b02c505296
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,17 +192,21 @@
               }
            } else if (v.startsWith('wsg')) {
               let wsgObj = JSON.parse(v.slice(5));
               console.log(uni.getStorageSync('carNo'), wsgObj.carNo);
               if (uni.getStorageSync('carNo') === wsgObj.carNo) {
               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({