hookehuyr

refactor(article): 移除 ArticleCard 整体卡片点击跳转

- 移除卡片容器的点击事件,避免误触跳转
- 删除 handleCardClick 函数
- 保留"查看"按钮的跳转功能

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
<template>
<view class="flex flex-row bg-white rounded-[24rpx] p-[24rpx] shadow-sm border border-gray-100 article-card" @tap="handleCardClick">
<view class="flex flex-row bg-white rounded-[24rpx] p-[24rpx] shadow-sm border border-gray-100 article-card">
<!-- 左侧封面图 -->
<view v-if="showCover" class="w-[160rpx] h-[120rpx] mr-[24rpx] flex-shrink-0 rounded-[16rpx] overflow-hidden bg-gray-100 self-start">
<image
......@@ -150,21 +150,12 @@ const formattedDate = computed(() => {
const { toggleCollect } = useCollectOperation();
/**
* 处理卡片点击
*
* @description 跳转到文章详情页
*/
const handleCardClick = () => {
go('/pages/article-detail/index', { id: props.id });
};
/**
* 处理查看点击
*
* @description 跳转到文章详情页
*/
const handleView = () => {
handleCardClick();
go('/pages/article-detail/index', { id: props.id });
// 通知父组件查看完成
emit('viewed', { id: props.id });
};
......