会话存档
This commit is contained in:
@@ -57,7 +57,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>
|
||||||
@@ -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'}]">
|
<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>
|
||||||
@@ -233,8 +233,8 @@ export default {
|
|||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10,
|
size: 10,
|
||||||
msgType: this.tabList[this.currentTabs].value,
|
// msgType: this.tabList[this.currentTabs].value,
|
||||||
// msgType: 'file',
|
msgType: 'location',
|
||||||
toUserId: this.toUserId,
|
toUserId: this.toUserId,
|
||||||
roomId: this.roomId,
|
roomId: this.roomId,
|
||||||
type: this.type,
|
type: this.type,
|
||||||
@@ -281,8 +281,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()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -294,6 +295,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: 1, // 地图缩放级别,整形值,范围从1~28。默认为16
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
|
|||||||
Reference in New Issue
Block a user