diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 124eb40..a0f4145 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -33,13 +33,12 @@ async function handleInfinite(event: InfiniteScrollCustomEvent) { }, 500); } -function handleProductClick(product: any) { +function handleProductClick(product: Product) { console.log("查看产品:", product.name); // TODO: 跳转到产品详情 } -function handleSubscribe(product: any, event: Event) { - event.stopPropagation(); +function handleSubscribe(product: Product) { console.log("申购产品:", product.name); // TODO: 实现申购功能 } @@ -124,7 +123,7 @@ onMounted(() => { 我要申购