点击头像进入个人信息

This commit is contained in:
砂糖
2025-07-14 11:39:26 +08:00
parent af7ef14ba2
commit 47bccb29d3

View File

@@ -10,6 +10,7 @@
size="42" size="42"
:desc="source.senderNickname" :desc="source.senderNickname"
:src="source.senderFaceUrl" :src="source.senderFaceUrl"
@click="goToUserCard"
/> />
<view class="message_container"> <view class="message_container">
<view <view
@@ -324,6 +325,12 @@ export default {
console.error('撤回消息失败:', error); console.error('撤回消息失败:', error);
} }
}, },
goToUserCard() {
// 跳转到用户信息页面,传递 userID
uni.navigateTo({
url: `/pages/common/userCard/index?sourceID=${this.source.sendID}&`
});
},
}, },
}; };
</script> </script>