From 59654c6f03dbd417506aae9e7e9f87ca53938917 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 9 Jun 2023 14:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pidu/AppConversation/AppConversation.vue | 2 +- .../AppConversation/conversationDetail.vue | 43 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/src/project/pidu/AppConversation/AppConversation.vue b/src/project/pidu/AppConversation/AppConversation.vue index d46c3891..ad8633df 100644 --- a/src/project/pidu/AppConversation/AppConversation.vue +++ b/src/project/pidu/AppConversation/AppConversation.vue @@ -6,7 +6,7 @@ @@ -202,6 +213,20 @@ export default { // item.amr = amr; //将初始化好的amr赋值到当前消息对象data中 // } // }) + res.data.records.map((item) => { + if(item.msgType == 'location') { + item.covers = [{ + latitude: item.lat, + longitude: item.lng, + label: { + content: item.address + }, + callout: { + content: item.title + } + }] + } + }) this.list = this.current > 1 ? [ ...res.data.records, ...this.list]: res.data.records this.pages = res.data.pages } @@ -437,6 +462,24 @@ export default { border-top: 1px solid #eee; } } + .map-info { + width: 560px; + height: 400px; + .address-text { + position: absolute; + bottom: 0; + left: 0; + width: 560px; + background-color: rgba(0, 0, 0, .7); + p { + color: #fff; + line-height: 44px; + font-size: 24px; + padding-left: 32px; + word-break: break-all; + } + } + } } .item-left { .content {