xg
This commit is contained in:
parent
00380b5dc1
commit
00a8343589
@ -63,7 +63,7 @@
|
||||
{{Number(item.messageType)==1?item.content?item.content:'':''}}
|
||||
{{Number(item.messageType)==2?'[图片]':''}}
|
||||
</view>
|
||||
<view class="nostatus" v-if="item.unreadCount>0">
|
||||
<view class="nostatus" v-if="Number(item.unreadCount)>0">
|
||||
{{item.unreadCount}}
|
||||
</view>
|
||||
</view>
|
||||
@ -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);
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -231,6 +231,7 @@
|
||||
familyList: null, //切换列表
|
||||
region: '', //城市
|
||||
infotitle: null,
|
||||
checkSign: null,
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user