| | |
| | | if (uni.getStorageSync('userId') === this.messageList.appUserId) { |
| | | this.messagePushShow = true; |
| | | } |
| | | } else {} |
| | | } else if (v.startsWith('wsg')) { |
| | | let wsgObj = JSON.parse(v.slice(5)); |
| | | if (uni.getStorageInfoSync('carNo') === wsgObj.carNo) { |
| | | changewsgVisiable(true) |
| | | changewsgContent(wsgObj.content) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | this.changeisconnect(true) |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit']), |
| | | ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit', |
| | | 'changewsgVisiable', 'changewsgContent' |
| | | ]), |
| | | messagePage() { |
| | | uni.navigateTo({ |
| | | url: '/pages/public-page/message/message' |