guhongwei 4 years ago
parent
commit
b9c676eaf0
1 changed files with 9 additions and 5 deletions
  1. 9 5
      src/views/news/index.vue

+ 9 - 5
src/views/news/index.vue

@@ -5,27 +5,27 @@
         <div class="w_1200">
         <div class="w_1200">
           <el-col :span="24" class="common one">
           <el-col :span="24" class="common one">
             <el-col :span="12" class="left">
             <el-col :span="12" class="left">
-              <top topText="政务动态"></top>
+              <top topText="政务动态" @more="more('0')"></top>
               <list type="1" :list="oneList"></list>
               <list type="1" :list="oneList"></list>
             </el-col>
             </el-col>
             <el-col :span="12" class="left">
             <el-col :span="12" class="left">
-              <top topText="通知通告"></top>
+              <top topText="通知通告" @more="more('1')"></top>
               <list type="2" :list="twoList"></list>
               <list type="2" :list="twoList"></list>
             </el-col>
             </el-col>
           </el-col>
           </el-col>
           <el-col :span="24" class="common two">
           <el-col :span="24" class="common two">
             <el-col :span="12" class="left">
             <el-col :span="12" class="left">
-              <top topText="科技新闻"></top>
+              <top topText="科技新闻" @more="more('2')"></top>
               <list type="3" :list="thrList"></list>
               <list type="3" :list="thrList"></list>
             </el-col>
             </el-col>
             <el-col :span="12" class="left">
             <el-col :span="12" class="left">
-              <top topText="媒体聚焦"></top>
+              <top topText="媒体聚焦" @more="more('3')"></top>
               <list type="4" :list="fourList"></list>
               <list type="4" :list="fourList"></list>
             </el-col>
             </el-col>
           </el-col>
           </el-col>
           <el-col :span="24" class="common thr">
           <el-col :span="24" class="common thr">
             <el-col :span="24" class="left">
             <el-col :span="24" class="left">
-              <top topText="信息公开"></top>
+              <top topText="信息公开" @more="more('4')"></top>
               <list type="5" :list="fiveList"></list>
               <list type="5" :list="fiveList"></list>
             </el-col>
             </el-col>
           </el-col>
           </el-col>
@@ -85,6 +85,10 @@ export default {
         }
         }
       }
       }
     },
     },
+    // 更多
+    more(index) {
+      console.log(index);
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),