From e971a5bda0635ab2429205caad312d01c5ad0f13 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 20 Jun 2023 11:26:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E5=AD=98=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppConversation/conversationDetail.vue | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/project/pidu/AppConversation/conversationDetail.vue b/src/project/pidu/AppConversation/conversationDetail.vue index a48d7cdb..51777982 100644 --- a/src/project/pidu/AppConversation/conversationDetail.vue +++ b/src/project/pidu/AppConversation/conversationDetail.vue @@ -57,7 +57,7 @@
对方同意会话存档内容,你可以继续提供服务
-
+

{{item.cardCorpName}}

@@ -74,7 +74,7 @@ -
+

{{item.title}}

@@ -233,8 +233,8 @@ export default { params: { current: this.current, size: 10, - msgType: this.tabList[this.currentTabs].value, - // msgType: 'file', + // msgType: this.tabList[this.currentTabs].value, + msgType: 'location', toUserId: this.toUserId, roomId: this.roomId, type: this.type, @@ -281,8 +281,9 @@ export default { }, ...mapActions(['previewFile']), prevFile(file) { + var fileInfo = {url: file.sdkFileUrl, name: file.sdkFileName, size: file.fileSizeStr} this.$loading() - this.previewFile({ ...file }).then(()=>{ + this.previewFile({ ...fileInfo }).then(()=>{ this.$hideLoading() }) }, @@ -294,6 +295,21 @@ export default { // appId: row.goodsJdAppid, // path: row.goodsJdUrl }) + }, + openUser(type, userid) { //缺少名片人员区分内部还是外部 + console.log(row) + // userid && this.injectJWeixin('openUserProfile').then(() => { + // this.wxInvoke(['openUserProfile', {type, userid}, () => 0]) + // }) + }, + openMap(row) { + wx.openLocation({ + latitude: row.lat, // 纬度,浮点数,范围为90 ~ -90 + longitude: row.lng, // 经度,浮点数,范围为180 ~ -180。 + name: row.title, // 位置名 + address: row.address, // 地址详情说明 + scale: 1, // 地图缩放级别,整形值,范围从1~28。默认为16 + }); } }, onReachBottom() {