敏感词聊天记录

This commit is contained in:
liuye
2023-06-20 14:30:06 +08:00
parent 3677ae6ae4
commit 9aa23af4ed

View File

@@ -54,7 +54,7 @@
<div class="revoke-text" v-if="item.msgType == 'agree'">对方同意会话存档内容你可以继续提供服务</div> <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="top">
<div class="card-left"> <div class="card-left">
<h3>{{item.cardCorpName}}</h3> <h3>{{item.cardCorpName}}</h3>
@@ -71,7 +71,7 @@
<img :src="item.sdkFileUrl" alt="" v-if="item.msgType == 'emotion'" :style="[{width: item.width/2+'px'}, {height: item.height/2+'px'}]"> <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> <map style="width: 100%; height: 100%;" :latitude="item.lat" :longitude="item.lng" :scale="item.zoom"></map>
<div class="address-text"> <div class="address-text">
<p>{{item.title}}</p> <p>{{item.title}}</p>
@@ -352,8 +352,9 @@ export default {
}, },
...mapActions(['previewFile']), ...mapActions(['previewFile']),
prevFile(file) { prevFile(file) {
var fileInfo = {url: file.sdkFileUrl, name: file.sdkFileName, size: file.fileSizeStr}
this.$loading() this.$loading()
this.previewFile({ ...file }).then(()=>{ this.previewFile({ ...fileInfo }).then(()=>{
this.$hideLoading() this.$hideLoading()
}) })
}, },
@@ -365,6 +366,21 @@ export default {
// appId: row.goodsJdAppid, // appId: row.goodsJdAppid,
// path: row.goodsJdUrl // 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: row.zoom, // 地图缩放级别,整形值,范围从1~28。默认为16
});
} }
}, },
onReachBottom() { onReachBottom() {