From 942955cfae17d2d55895c065e61e68430679be6c Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 7 Feb 2022 16:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B=E5=8C=BA=E5=88=86=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/im/index.vue | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pages/im/index.vue b/pages/im/index.vue index 3871944..3eeabfb 100644 --- a/pages/im/index.vue +++ b/pages/im/index.vue @@ -43,7 +43,18 @@ {{ friend(item.targetId).name || '未知用户' }} {{ item.sentTime|timeCustomCN }} - {{ item.latestMessage.content || '' }} + + {{ item.latestMessage.content || '' }} + + + [语音] + + + [图片] + + + [文件] + @@ -130,7 +141,7 @@ } } }, - methods: { + methods: { // 隐藏功能菜单 hidePop() { this.showPop = false @@ -138,7 +149,7 @@ setTimeout(() => { this.showShade = false }, 250) - }, + }, // 点击会话功能菜单 pickerMenu(e) { const index = Number(e.currentTarget.dataset.index) @@ -152,7 +163,7 @@ im.setNotifyBadge() this.getConversationList() this.hidePop() - }, + }, // 长按会话,展示功能菜单 onLongPress(e) { let [touches, style, item] = [e.touches[0], "", e.currentTarget.dataset.item] @@ -191,6 +202,7 @@ const timestamp = 0 RongIMLib.getConversationList([RongIMLib.ConversationType.PRIVATE], count, timestamp, (res) => { if (res.code === 0) { + console.log(res.conversations); this.conversations = res.conversations } }) @@ -220,7 +232,7 @@ params }) } - }, + }, // 调起扫码 scanQrCode() { uni.scanCode({