const tl_rtc_app_module_contact_content_friend = { props: { friendUserData: { type: Object, default: { id: '', // 好友记录id userId: '', // 用户id username: '', // 用户账号 userAvatar: '', // 用户头像 userMobile: '', // 用户手机号 userEmail: '', // 用户邮箱 userCompanyName: '', // 用户所属企业名称 origin: '', // 来源 createTime: '', // 创建时间 createTimeFormat: '', // 创建时间格式化 channelId: '', // 好友频道id remark: '', // 申请消息 friendType: '', // 好友类型 } }, isMobile: { type: Boolean, default: false }, leftModule: { type: String, default: '' }, rightModule: { type: String, default: '' } }, computed: { propsFriendUserData(){ return this.friendUserData; }, 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) }, /** * 发送信息 */ sendMessage: function(){ this.$emit('send-message', this.propsFriendUserData) }, /** * 发起视频 */ sendVideo: function(){ this.$emit('send-video', this.propsFriendUserData) }, /** * 发起语音 */ sendAudio: function(){ this.$emit('send-audio', this.propsFriendUserData) }, /** * 回退 */ goBack: function(){ this.emitSubModuleEvent({ event: 'sub-module-core-change-module-show', data: { showRightModule: false, } }) }, /** * 鼠标移入 * @param {*} event * @returns */ mouseEnter: function(event, title){ if(this.propsIsMobile){ return } tl_rtc_app_comm.mouseEnterTips({ id: event.target.id, text: title, position: 'top' }); }, mouseLeave: function(){ if(this.propsIsMobile){ return } tl_rtc_app_comm.mouseLeaveTips(); } }, mounted() { }, template: `
通讯好友信息
手机: {{ propsFriendUserData.userMobile || '-' }}
邮箱: {{ propsFriendUserData.userEmail || '-' }}
来源: {{ propsFriendUserData.origin || '-' }}
验证消息: {{ propsFriendUserData.remark || '-' }}
添加时间: {{ propsFriendUserData.createTimeFormat || '-' }}
发送信息
发起视频
发起语音
` } window.tl_rtc_app_module_contact_content_friend = tl_rtc_app_module_contact_content_friend