Commit c182730692c913fa6af6bc27b36306850a902bf1

Authored by boyang
1 parent c8b1a969

fix: 热销样式,prod2-48/49

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
1 1 #!/bin/bash
2 2 # 变量定义
3   -LAST_TAG="1.0.47"
4   -TAG="1.0.48"
  3 +LAST_TAG="1.0.48"
  4 +TAG="1.0.49"
5 5 TARGET_PATH="/root/web/canrud-outside-nuxt-front"
6 6 DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front"
7 7 IMAGE_NAME="canrud-outside-front"
... ...