Browse Source

fix: change news

DESKTOP-USV654P\pc 5 days ago
parent
commit
a7ec759343

+ 1 - 1
Makefile

@@ -12,7 +12,7 @@ build:
 
 commit:
 	git add . && \
-	git commit --no-verify -m "fix: change sending"
+	git commit --no-verify -m "fix: change news"
 
 checkPre:
 	git checkout pre

+ 3 - 3
src/views/sys/door/components/news/index.vue

@@ -58,7 +58,7 @@
 <template>
   <div>
     <div class="door-home-banner">
-      <img style="width: 100%; height: 100%;" src="../../../../../assets/images/banner.webp" />
+      <img style="width: 100%; height: 100%" src="../../../../../assets/images/banner.webp" />
     </div>
     <div class="mt-4">
       <Breadcrumb separator=">">
@@ -85,8 +85,8 @@
                 >
                   <div class="news-list-item-header">
                     <img
-                      :src="item.cover"
-                      style="width: 100%; height: 117px; object-fit: contain;"
+                      :src="item.coverUrl || 'https://zhxy.cqtlzjzx.com/minio/static/defnew.png'"
+                      style="width: 100%; height: 117px; object-fit: contain"
                     />
                   </div>
                   <div class="news-list-item-body">

+ 5 - 2
src/views/sys/door/components/news/top.vue

@@ -41,7 +41,7 @@
     <template #extra>
       <div
         class="flex items-center cursor-pointer"
-        style="font-size: 12px;"
+        style="font-size: 12px"
         @click="handleGotoNewsPage"
       >
         查看更多
@@ -57,7 +57,10 @@
           @click="handleGotoNewsView(item)"
         >
           <div class="flex">
-            <img :src="item.cover" style="width: 86px; height: 48px;" />
+            <img
+              :src="item.coverUrl || 'https://zhxy.cqtlzjzx.com/minio/static/defnew.png'"
+              style="width: 86px; height: 48px"
+            />
             <div class="flex-1 ml-4 flex flex-col">
               <div class="flex-1 truncate c6 f6">{{ item.fullHead }}</div>
               <div class="flex c8">