Commit a4b10b4cc366af2102e24bc9ba720c94685ddf99

Authored by boyang
1 parent c9efefea

fix: 修改期刊推荐,prod2.sh-31/32

components/ProductDetail.vue
... ... @@ -418,20 +418,34 @@
418 418 >
419 419 <v-tab value="one">Blog recommendation</v-tab>
420 420 </v-tabs>
421   - <!-- <v-list rounded>
422   - <v-list-item-group v-model="selectedItem" color="primary">
423   - <v-list-item
  421 +<!-- <v-list lines="three">-->
  422 +<!-- <v-list-item-->
  423 +<!-- v-for="item in info.journals"-->
  424 +<!-- :key="item.id"-->
  425 +<!-- :subtitle="item.title"-->
  426 +<!-- @click="navigateToUrl(item.link)"-->
  427 +<!-- lines="three"-->
  428 +<!-- style="font-size: 24px"-->
  429 +<!-- ></v-list-item>-->
  430 +<!-- </v-list>-->
  431 + <v-list>
  432 + <v-list-item
424 433 v-for="item in info.journals"
425 434 :key="item.id"
426 435 @click="navigateToUrl(item.link)"
427   - >
428   - <v-list-item-content>
429   - <v-list-item-title v-text="item.title"></v-list-item-title>
430   - </v-list-item-content>
431   - </v-list-item>
432   - </v-list-item-group>
433   - </v-list> -->
434   - <v-list rounded>
  436 + @mouseenter="hoveredItem = item.id"
  437 + @mouseleave="hoveredItem = null"
  438 + >
  439 + <v-list-item-title>
  440 + <span
  441 + :class="['title', { 'full-title': hoveredItem === item.id }]"
  442 + >
  443 + {{ item.title }}
  444 + </span>
  445 + </v-list-item-title>
  446 + </v-list-item>
  447 + </v-list>
  448 + <!-- <v-list rounded>
435 449 <v-list-item-group v-model="selectedItem" color="primary">
436 450 <v-list-item
437 451 v-for="item in info.journals"
... ... @@ -439,32 +453,44 @@
439 453 @click="navigateToUrl(item.link)"
440 454 >
441 455 <v-list-item-content>
442   - <v-hover v-slot:default="{ isHovering, props }">
443   - <div v-bind="props">
444   - <v-list-item-title
445   - v-if="!isHovering"
446   - v-text="item.title"
447   - style="
448   - overflow: hidden;
449   - text-overflow: ellipsis;
450   - white-space: nowrap;
451   - "
452   - ></v-list-item-title>
453   - <span v-if="isHovering" bottom style="color: #1e88e5">{{
454   - item.title
455   - }}</span>
456   - <!-- <v-tooltip v-if="isHovering" bottom>
457   - <template v-slot:activator="{ props: tooltipProps }">
458   - <span v-bind="tooltipProps">{{ item.title }}</span>
459   - </template>
460   - <span>{{ item.title }}</span>
461   - </v-tooltip> -->
462   - </div>
463   - </v-hover>
  456 + <v-list-item-title v-text="item.title"></v-list-item-title>
464 457 </v-list-item-content>
465 458 </v-list-item>
466 459 </v-list-item-group>
467   - </v-list>
  460 + </v-list> -->
  461 +<!-- <v-list rounded>-->
  462 +<!-- <v-list-item-group v-model="selectedItem" color="primary">-->
  463 +<!-- <v-list-item-->
  464 +<!-- v-for="item in info.journals"-->
  465 +<!-- :key="item.id"-->
  466 +<!-- @click="navigateToUrl(item.link)"-->
  467 +<!-- >-->
  468 +<!-- <v-list-item-content>-->
  469 +<!-- <v-hover v-slot:default="{ isHovering, props }">-->
  470 +<!-- <div v-bind="props">-->
  471 +<!-- <v-list-item-title-->
  472 +<!-- v-text="item.title"-->
  473 +<!-- style="-->
  474 +<!-- overflow: hidden;-->
  475 +<!-- text-overflow: ellipsis;-->
  476 +<!-- white-space: nowrap;-->
  477 +<!-- "-->
  478 +<!-- ></v-list-item-title>-->
  479 +<!-- <span v-if="isHovering" bottom style="color: #1e88e5">{{-->
  480 +<!-- item.title-->
  481 +<!-- }}</span>-->
  482 +<!-- <v-tooltip v-if="isHovering" bottom>-->
  483 +<!-- <template v-slot:activator="{ props: tooltipProps }">-->
  484 +<!-- <span v-bind="tooltipProps">{{ item.title }}</span>-->
  485 +<!-- </template>-->
  486 +<!-- <span>{{ item.title }}</span>-->
  487 +<!-- </v-tooltip>-->
  488 +<!-- </div>-->
  489 +<!-- </v-hover>-->
  490 +<!-- </v-list-item-content>-->
  491 +<!-- </v-list-item>-->
  492 +<!-- </v-list-item-group>-->
  493 +<!-- </v-list>-->
468 494 </div>
469 495 </div>
470 496 <div class="social-share-container">
... ... @@ -518,6 +544,7 @@ const dialogStore = useDialogStore();
518 544 const href1 = ref("/products");
519 545 const href2 = ref("/products");
520 546 const idHref = ref("/products");
  547 +const hoveredItem = ref(null);
521 548 const itemsss = [
522 549 {
523 550 name: "Item #1",
... ... @@ -843,4 +870,21 @@ button .recommendButton {
843 870 font-size: 1rem;
844 871 font-weight: bold;
845 872 }
  873 +
  874 +.title {
  875 + font-size: 15px; /* 设置字体大小为24px */
  876 + color: black; /* 设置字体颜色为黑色 */
  877 + display: -webkit-box; /* 使用盒模型显示多行文本 */
  878 + -webkit-line-clamp: 2; /* 限制为两行 */
  879 + -webkit-box-orient: vertical; /* 盒子方向为垂直 */
  880 + overflow: hidden; /* 超过部分隐藏 */
  881 + transition: max-height 0.3s ease; /* 过渡效果 */
  882 +}
  883 +
  884 +.full-title {
  885 + display: block; /* 当悬浮时显示为块级元素 */
  886 + color: #1e88e5;
  887 + white-space: normal; /* 允许换行 */
  888 + overflow: visible; /* 显示全部内容 */
  889 +}
846 890 </style>
... ...
deploy/prod2.sh
1 1 #!/bin/bash
2 2 # 变量定义
3   -LAST_TAG="1.0.30"
4   -TAG="1.0.31"
  3 +LAST_TAG="1.0.31"
  4 +TAG="1.0.32"
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"
... ...