37 lines
1006 B
Vue
37 lines
1006 B
Vue
<template>
|
|
<view class="">
|
|
<show-location v-if="message.content.objectName == 'RC:LBSMsg'" :message="message" :isGroup="isGroup" />
|
|
<show-video v-else-if="message.content.objectName == 'RC:VideoMsg'" :message="message" :isGroup="isGroup" />
|
|
<show-audio v-else-if="message.content.objectName == 'RC:AudioMsg'" :message="message" :isGroup="isGroup" />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import showLocation from './showLocation'
|
|
import showAudio from './showAudio'
|
|
import showVideo from './showVideo'
|
|
|
|
export default {
|
|
props: {
|
|
message: {
|
|
type: Object,
|
|
default: () => {
|
|
return {}
|
|
}
|
|
},
|
|
isGroup: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
components: {
|
|
showLocation,
|
|
showAudio,
|
|
showVideo
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|