Browse Source

feat: 更新

zqf 5 months ago
parent
commit
3f1ca0836c
3 changed files with 10 additions and 3 deletions
  1. 3 0
      src/pages/home/comps/HotProjects.vue
  2. 7 3
      src/pages/travel/index.vue
  3. BIN
      src/static/empty.png

+ 3 - 0
src/pages/home/comps/HotProjects.vue

@@ -72,6 +72,9 @@ function handleToTravel(item) {
         color: #fff;
         font-size: 14px;
         font-weight: bold;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
       }
     }
   }

+ 7 - 3
src/pages/travel/index.vue

@@ -19,7 +19,7 @@
             v-for="item in rightData"
             :key="item"
             :to="`/travel/${item.id}?menuName=${item.menuName}`"
-            class="flex flex-1 flex-col w-83 aspect-1 space-y-8 art items-center"
+            class="flex flex-col w-83 aspect-1 space-y-8 art items-center"
           >
             <image
               :src="
@@ -27,8 +27,7 @@
                   ? item.hotPictureUrlsAfterConvert[0]
                   : ''
               "
-              mode="widthFix"
-              class="aspect-[84/63] h-62 w-full object-cover rounded-lg overflow-hidden"
+              class="empty-bc aspect-[84/63] h-62 w-full object-cover rounded-lg overflow-hidden"
             />
             <span class="text-sm text-black-3 truncate">{{
               item.menuName
@@ -68,4 +67,9 @@ onLoad((option) => {
 .h-screen-reduced {
   height: calc(100vh - 50px);
 }
+.empty-bc {
+  background-image: url('@/static/empty.png');
+  background-repeat: no-repeat;
+  background-size: 100% 100%;
+}
 </style>

BIN
src/static/empty.png