Ver código fonte

新闻轮播点击跳转新闻详情

gcz 2 anos atrás
pai
commit
cc9082feea
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      src/views/Home/HomeIndex.vue

+ 3 - 2
src/views/Home/HomeIndex.vue

@@ -3,7 +3,7 @@
  * @Author: 空白格
  * @Date: 2022-08-10 11:26:40
  * @LastEditors: gcz
- * @LastEditTime: 2022-08-23 10:05:08
+ * @LastEditTime: 2022-08-23 10:22:07
  * @FilePath: \veterans_client_web\src\views\Home\HomeIndex.vue
  * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
 -->
@@ -33,6 +33,7 @@
                     :key="index"
                   >
                     <el-image
+                    @click="jumpPage('newsdetails',{ id: item.artId,type:'news' })"
                       class="image"
                       :src="
                         item.artImage ||
@@ -51,7 +52,7 @@
                         ></el-image>
                       </div>
                     </el-image>
-                    <div class="title">
+                    <div class="title" @click="jumpPage('newsdetails',{ id: item.artId,type:'news' })">
                       {{ item.artTitle || "" }}
                     </div>
                   </el-carousel-item>