Commit c182730692c913fa6af6bc27b36306850a902bf1
1 parent
c8b1a969
fix: 热销样式,prod2-48/49
Showing
2 changed files
with
3 additions
and
32 deletions
components/CategoryList.vue
... | ... | @@ -466,38 +466,9 @@ onMounted(() => { |
466 | 466 | startTimer(); |
467 | 467 | }); |
468 | 468 | |
469 | -const toggleRowMobile = (value: number) => { | |
470 | - currentIndexMobile.value = value; | |
471 | -}; | |
472 | 469 | const { width } = useDisplay(); |
473 | 470 | const firstHotIndex = ref(true); |
474 | 471 | |
475 | -// // 监听屏幕宽度变化 | |
476 | -// watch(width, async (newWidth) => { | |
477 | -// console.log(newWidth, "5656widthvalue"); | |
478 | -// if (firstHotIndex.value) { | |
479 | -// if (newWidth > 600) { | |
480 | -// await loadHotProducts(); | |
481 | -// } else { | |
482 | -// await loadHotProductsMobile(); | |
483 | -// } | |
484 | -// } | |
485 | -// }); | |
486 | - | |
487 | -// // 监听路由变化 | |
488 | -// watch( | |
489 | -// () => route.fullPath, | |
490 | -// async () => { | |
491 | -// if (firstHotIndex.value) { | |
492 | -// if (width.value > 600) { | |
493 | -// await loadHotProducts(); | |
494 | -// } else { | |
495 | -// await loadHotProductsMobile(); | |
496 | -// } | |
497 | -// } | |
498 | -// } | |
499 | -// ); | |
500 | - | |
501 | 472 | watch(currentIndex, (newIndex) => { |
502 | 473 | loadHotProducts(); // Call loadHotProducts when currentIndex changes |
503 | 474 | }); |
... | ... | @@ -616,7 +587,7 @@ const hotLength = computed(() => |
616 | 587 | justify-content: center; |
617 | 588 | height: 320px; |
618 | 589 | margin: 10px auto 50px; |
619 | - width: 100%; | |
590 | + width: 75%; | |
620 | 591 | } |
621 | 592 | } |
622 | 593 | @media screen and (max-width: 1536px) and (min-width: 1281px) { | ... | ... |
deploy/prod2.sh