const tl_rtc_app_module_contact_content_search_user = { props: { searchUserData: { type: Object, default: { channelId: '', // 频道id userId: '', // 用户id username: '', // 用户账号 userAvatar: '', // 用户头像 userMobile: '', // 用户手机号 userEmail: '', // 用户邮箱 userCompanyName: '', // 用户所属企业名称 createTime: '', // 创建时间 createTimeFormat: '', // 创建时间格式化 isFriend: '', // 是否是好友 isSelf: '', // 是否是自己 remark: '', // 申请消息 friendType: '', // 好友类型 } }, isMobile: { type: Boolean, default: false }, leftModule: { type: String, default: '' }, rightModule: { type: String, default: '' } }, computed: { propsSearchUserData(){ return this.searchUserData; }, 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) }, /** * 添加好友 */ addUserFriend: function(){ this.$emit('add-user-friend') }, /** * 发送信息 */ sendMessage: function(){ this.$emit('send-message', this.propsSearchUserData) }, /** * 发起视频 */ sendVideo: function(){ this.$emit('send-video', this.propsSearchUserData) }, /** * 发起语音 */ sendAudio: function(){ this.$emit('send-audio', this.propsSearchUserData) }, /** * 鼠标移入 * @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: `