|
|
@@ -315,6 +315,19 @@ export default function AwardDetailYfsScreen() {
|
|
|
products={data?.luckGoodsList || []}
|
|
|
poolId={getSafePoolId()}
|
|
|
box={currentBox}
|
|
|
+ onProductClick={(product) => {
|
|
|
+ const list = data?.luckGoodsList || [];
|
|
|
+ const getPId = (p: any) => String(p.id || p.spu?.id || p.spuId || '');
|
|
|
+ const targetId = getPId(product);
|
|
|
+ const index = list.findIndex((p: any) => getPId(p) === targetId);
|
|
|
+ console.log(`[DEBUG-NAV] Clicked ${targetId} (${product.name}). Found index: ${index}`);
|
|
|
+ if (index !== -1) {
|
|
|
+ router.push({
|
|
|
+ pathname: '/award-detail/swipe',
|
|
|
+ params: { poolId: getSafePoolId(), index }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }}
|
|
|
/>
|
|
|
|
|
|
{/* Floating Buttons */}
|