敏感词聊天记录
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scroll="scroll" v-if="list.length" :style="{height: scrollHeight+'px'}">
|
||||
<div class="conversation-list">
|
||||
<div class="conversation-list">
|
||||
<div v-for="(item, index) in list" :key="index">
|
||||
<div class="item" :class="item.userId == user.wxUserId ? 'item-right' : 'item-left'">
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
<div class="content">
|
||||
<span class="cir" v-if="item.msgType == 'text'"></span>
|
||||
<p class="content-text" v-if="item.msgType == 'text'" >{{item.content}}</p>
|
||||
<p class="content-text" v-if="item.msgType == 'text'">{{item.content}}</p>
|
||||
|
||||
<div class="img-list" v-if="item.msgType == 'image'">
|
||||
<img :src="item.sdkFileUrl" alt="" @click="previewImage(item.sdkFileUrl)">
|
||||
@@ -54,7 +54,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>
|
||||
@@ -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'}]">
|
||||
|
||||
<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>
|
||||
@@ -106,11 +106,11 @@
|
||||
</div>
|
||||
<img :src="item.userAvatar" alt="" class="user-img" v-if="item.userId == user.wxUserId">
|
||||
|
||||
<img src="./img/fail-icon.png" alt="" class="fail-img" v-if="item.userId != user.wxUserId && item.isKeyword == 1">
|
||||
<img src="./img/fail-icon.png" alt="" class="fail-img" v-if="item.userId != user.wxUserId && item.isKeyword == 1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</scroll-view>
|
||||
</scroll-view>
|
||||
<AiEmpty v-else/>
|
||||
<u-calendar v-model="isShowDate" @change="onDateChange" mode="range"></u-calendar>
|
||||
</div>
|
||||
@@ -352,19 +352,35 @@ 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()
|
||||
})
|
||||
},
|
||||
openLink(row) {
|
||||
window.open(row.linkUrl);
|
||||
},
|
||||
openApp(row) {
|
||||
openApp(row) {
|
||||
uni.navigateToMiniProgram({
|
||||
// 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: row.zoom, // 地图缩放级别,整形值,范围从1~28。默认为16
|
||||
});
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
|
||||
Reference in New Issue
Block a user