From 00a8343589acc5a40f774944586eee4152dd5e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 19 Apr 2024 13:46:32 +0800 Subject: [PATCH] xg --- pages/message/message.vue | 13 ++++++------- pages/myinformation/myinformation.vue | 1 + 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/message/message.vue b/pages/message/message.vue index 594b31f..eabe9bd 100644 --- a/pages/message/message.vue +++ b/pages/message/message.vue @@ -63,7 +63,7 @@ {{Number(item.messageType)==1?item.content?item.content:'':''}} {{Number(item.messageType)==2?'[图片]':''}} - + {{item.unreadCount}} @@ -89,10 +89,10 @@ }; }, onShow() { + this.info(); if (uni.getStorageSync('patientId') && !this.$store.state.socketOpen) { this.scoket(); } - this.info(); if (uni.getStorageSync('patientId')) { this.messagescoket(); } @@ -130,6 +130,10 @@ }) }, info() { + this.listthree = [] + this.listone = null + this.listtwo = null + this.listfour = null detail(uni.getStorageSync('userinfo').cardNo).then(res => { if (res.code == 200 && res.data && res.data.crowdsNo) { var obj = { @@ -139,10 +143,6 @@ senderId: uni.getStorageSync('patientId'), } getMegVoList(obj).then(res => { - this.listthree = [] - this.listone = null - this.listtwo = null - this.listfour = null res.data.forEach(e => { e.readStatus = Number(e.readStatus) e.messageType = Number(e.messageType) @@ -171,7 +171,6 @@ setTimeout(function() { uni.stopPullDownRefresh(); }, 1000); - }, } diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 63c3b39..1d0e884 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -231,6 +231,7 @@ familyList: null, //切换列表 region: '', //城市 infotitle: null, + checkSign: null, }; }, onShow() {