const tl_rtc_app_module_contact_content_group = { props: { groupData: { type: Object, default: { channelId: '', // 频道id channelName: '', // 频道名称 channelAvatar: '', // 频道头像 channelCompanyName: '', // 频道公司名称 createTime: '', // 创建时间 createTimeFormat: '', // 创建时间格式化 joinTime: '', // 加入时间 joinTimeFormat: '', // 加入时间格式化 status: '', // 状态, channelUserCount: 0, // 频道用户数 } }, isMobile: { type: Boolean, default: false }, leftModule: { type: String, default: '' }, rightModule: { type: String, default: '' } }, computed: { propsGroupData(){ return this.groupData; }, propsIsMobile(){ return this.isMobile; }, propsLeftModule() { return this.leftModule; }, propsRightModule() { return this.rightModule; }, }, data : function(){ return { } }, watch: { leftModule: function (val) { }, rightModule: function (val) { } }, methods: { /** * 事件触发,向上传递 * @param {*} event */ leftModuleChange: function(event){ this.$emit('left-module-change', event) }, /** * 事件触发,向上传递 * @param {*} event */ rightModuleChange: function(event){ this.$emit('right-module-change', event) }, /** * 回退 */ goBack: function(){ this.emitSubModuleEvent({ event: 'sub-module-core-change-module-show', data: { showRightModule: false, } }) }, /** * 发送信息 */ sendMessage: function(){ this.$emit('send-message', this.propsGroupData) }, /** * 发起视频 */ sendVideo: function(){ this.$emit('send-video', this.propsGroupData) }, /** * 发起语音 */ sendAudio: function(){ this.$emit('send-audio', this.propsGroupData) }, }, mounted() { }, template: `
群组信息
群号: {{ propsGroupData.channelId }}
群成员: {{ propsGroupData.channelUserCount }}(人)
当前状态: {{ propsGroupData.status }}
创建时间: {{ propsGroupData.createTimeFormat }}
加入时间: {{ propsGroupData.joinTimeFormat }}
发送信息
发起视频
发起语音
` } window.tl_rtc_app_module_contact_content_group = tl_rtc_app_module_contact_content_group