From 18d5c7c4cdfe4dc7da592d02d2bfdf909aa10b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Wed, 26 Jan 2022 14:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 28 ++++++-- pages/im/friends/mine.vue | 142 ++++++++++++++++++++++++++++++++++--- pages/im/private/index.vue | 20 +++--- scss/globa.scss | 2 +- 4 files changed, 163 insertions(+), 29 deletions(-) diff --git a/manifest.json b/manifest.json index 52e871e..fe85297 100644 --- a/manifest.json +++ b/manifest.json @@ -112,17 +112,31 @@ } }, "nativePlugins" : { + "RongCloud-Call" : { + "__plugin_info__" : { + "name" : "RCUniCall", + "description" : "融云实时音视频 SDK uni 原生插件", + "platforms" : "Android,iOS", + "url" : "https://ext.dcloud.net.cn/plugin?id=6372", + "android_package_name" : "io.zhhealth.app", + "ios_bundle_id" : "io.zhhealth.app", + "isCloud" : true, + "bought" : 1, + "pid" : "6372", + "parameters" : {} + } + }, "RongCloud-IM" : { "__plugin_info__" : { "name" : "RCUniIM", - "description" : "融云 uni 原生插件", + "description" : "融云即时通讯 SDK uni 原生插件", "platforms" : "Android,iOS", - "url" : "", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : false, - "bought" : -1, - "pid" : "", + "url" : "https://ext.dcloud.net.cn/plugin?id=6120", + "android_package_name" : "io.zhhealth.app", + "ios_bundle_id" : "io.zhhealth.app", + "isCloud" : true, + "bought" : 1, + "pid" : "6120", "parameters" : {} } } diff --git a/pages/im/friends/mine.vue b/pages/im/friends/mine.vue index 2de033d..43dfdf3 100644 --- a/pages/im/friends/mine.vue +++ b/pages/im/friends/mine.vue @@ -1,8 +1,45 @@ diff --git a/pages/im/private/index.vue b/pages/im/private/index.vue index a457798..430e60c 100644 --- a/pages/im/private/index.vue +++ b/pages/im/private/index.vue @@ -17,10 +17,10 @@ {{ item.sentStatus == 50 ? '已读': '未读'}} - - - + v-if="item.messageDirection == 1">{{targetId}}{{ item.sentStatus == 50 ? '已读': '未读'}} + + + @@ -253,14 +253,10 @@ this.inputTxt = '' }) }, - showFriend(targetId) { - uni.navigateTo({ - url: '/pages/im/friends/info?targetId=' + targetId - }) - }, - showMine() { - uni.navigateTo({ - url: '/pages/im/friends/mine' + showFriend(targetId, type) { + this.$Router.push({ + name: type === 1 ? 'imFriendsMine' : 'imFriendsInfo', + params: {targetId} }) }, scrollBottom() { diff --git a/scss/globa.scss b/scss/globa.scss index dccdb6a..7dd07fc 100644 --- a/scss/globa.scss +++ b/scss/globa.scss @@ -13,7 +13,7 @@ $text-price: #e6576b; $main-color: #34CE98; // 边框颜色 -$border-color: #ddd; +$border-color: #f5f5f5; // 全局窗口色 $window-color: #F3F6FB;