会话存档

This commit is contained in:
liuye
2023-06-20 11:26:02 +08:00
parent 839e6ae71c
commit e971a5bda0

View File

@@ -57,7 +57,7 @@
<div class="revoke-text" v-if="item.msgType == 'agree'">对方同意会话存档内容你可以继续提供服务</div>
<div class="card-info" v-if="item.msgType == 'card'">
<div class="card-info" v-if="item.msgType == 'card'" @click="openUser(item.type, item.cardUserId)">
<div class="top">
<div class="card-left">
<h3>{{item.cardCorpName}}</h3>
@@ -74,7 +74,7 @@
<img :src="item.sdkFileUrl" alt="" v-if="item.msgType == 'emotion'" :style="[{width: item.width/2+'px'}, {height: item.height/2+'px'}]">
<div class="map-info" v-if="item.msgType == 'location'">
<div class="map-info" v-if="item.msgType == 'location'" @click="openMap(item)">
<map style="width: 100%; height: 100%;" :latitude="item.lat" :longitude="item.lng" :scale="item.zoom"></map>
<div class="address-text">
<p>{{item.title}}</p>
@@ -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() {