聊天记录
This commit is contained in:
@@ -61,6 +61,10 @@
|
||||
console.log("首页获取到url参数")
|
||||
console.log(options)
|
||||
console.log(location.href)
|
||||
|
||||
// // 监听接收聊天信息
|
||||
uni.$on('onP2PMessage', this.onMessage)
|
||||
|
||||
if (options.imUserSign) {
|
||||
uni.showLoading({
|
||||
title: "数据加载中...",
|
||||
@@ -185,6 +189,7 @@
|
||||
},
|
||||
onShow() {
|
||||
var i=0
|
||||
this.$store.dispatch('queryConversationList');
|
||||
this.$store.dispatch('tabBarpull');
|
||||
this.timer = setInterval(() => {
|
||||
i=i+1;
|
||||
@@ -204,6 +209,11 @@
|
||||
console.log('beforeUnmount');
|
||||
},
|
||||
methods: {
|
||||
onMessage(){
|
||||
setTimeout(() => {
|
||||
this.$store.dispatch('queryConversationList')
|
||||
}, 1000)
|
||||
},
|
||||
longpressItem(e, i, v) {
|
||||
// console.log(e,i,v)
|
||||
this.longTapItemKey = i;
|
||||
|
||||
Reference in New Issue
Block a user