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.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() {