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 {