wangxy 3 years ago
parent
commit
ff69dc48e8
2 changed files with 7 additions and 4 deletions
  1. 6 3
      components/common/newsComp.vue
  2. 1 1
      pages/index.vue

+ 6 - 3
components/common/newsComp.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <!-- 新闻资讯 PC-->
-   <!-- <div class="client-news-information mta-hidden-xs">
+    <div class="client-news-information mta-hidden-xs">
       <h4 class="client-title">新闻资讯</h4>
       <div class="client-container">
         <div class="industry-information-box">
@@ -26,7 +26,7 @@
       </div>
     </div>
 
-    &lt;!&ndash; 新闻资讯 手机&ndash;&gt;
+    <!-- 新闻资讯 手机-->
 
       <div class="client-newsInfo-phone mta-hidden-sm">
         <div class="client-container">
@@ -44,7 +44,7 @@
         </el-carousel>
 
       </div>
-    </div>-->
+    </div>
   </div>
 
 </template>
@@ -110,6 +110,9 @@ export default {
       width: 605px;
       height: 180px;
     }
+    h4:hover {
+      color: #00b96b;
+    }
   }
 }
 </style>

+ 1 - 1
pages/index.vue

@@ -157,7 +157,7 @@ export default {
   },
   async asyncData({$axios, store}) {
     let [res1, res2] = await Promise.all([
-      await $axios.$post(`/home/news/carousel`, {newsClassifyId: classifys.shouye.classify}).then(res => {
+      await $axios.$post(`/home/news/carousel`, {newsClassifyId: classifys.shouye.classify, 'keyword': classifys.kaoshixitong.keyword}).then(res => {
         return res;
       }),
       await $axios.$post(`/home/banner/list`, {code: BannerImgs.shouye}).then(res => {