/** * ConversationItem 会话列表项(规范 §35) * * 不变量(AGENTS.md): * - 第 3 条:仅 Mutual Match 后才能聊天——canSendMessage=false 时显示"已停用"角标, * 点击进入后聊天页禁止输入。 * - 第 4 条:Block 后会话立即停用,relationStatus=blocked 时灰显。 */ Component({ options: { addGlobalClass: true }, properties: { conversation: { type: Object, value: null }, showAvatar: { type: Boolean, value: true }, }, methods: { onTap() { if (!this.data.conversation) return; this.triggerEvent('tap', { conversationId: this.data.conversation.conversationId, targetUserId: this.data.conversation.targetUserId, }); }, }, });