From 546c0df2c7d278cb2a3e6fa6fc2ff730d410fdbd Mon Sep 17 00:00:00 2001
From: 明梦爽 <2972214568@qq.com>
Date: 星期二, 25 一月 2022 16:54:48 +0800
Subject: [PATCH] more

---
 src/components/page/zhengce.vue |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/components/page/zhengce.vue b/src/components/page/zhengce.vue
index c7d547f..475dddc 100644
--- a/src/components/page/zhengce.vue
+++ b/src/components/page/zhengce.vue
@@ -13,13 +13,16 @@
         </ul>
       </el-col>
       <el-card class="box-card">
-        <el-col :span="18">
+        <p class="name">{{this.cont}}</p>
+        <hr class="namehr">
+        <el-col :span="24">
           <div>
             <el-row class="marb10" :key="index" v-for="(item, index) in newsList">
               <div class="flex-v flex-between marb5 cursor" @click="show(item)">
                 <div>{{ item.title }}</div>
                 <div>{{ item.releaseTime }}</div>
               </div>
+              <el-divider class="hr"></el-divider>
             </el-row>
           </div>
           <!-- 鍒嗛〉 -->
@@ -49,10 +52,10 @@
   },
   data() {
     return {
-      cont: '',
+      cont: '', //灏忔爣棰樺彉鑹�
       menuList: [],
       newsList:[],
-      pageSize:2,
+      pageSize:5,
       currentPage:1,
       total:0,
       item:{},
@@ -66,14 +69,11 @@
   watch: {
     menuList(n,o){
       this.cont =  this.menuList[0].name;
+      this.item = this.menuList[0];
       this.getnews(this.menuList[0]);
     }
   },
   methods: {
-    handleCurrentChange(val) {
-      console.log(`褰撳墠椤�: ${val}`);
-      this.getnews(this.item);
-    },
     getTitle(){
       const data = Number(this.$route.query.id);
       getMinTitle(data).then(res => {
@@ -107,6 +107,11 @@
         console.log(error);
       })
     },
+    handleCurrentChange(val) {
+      console.log(`褰撳墠椤�: ${val}`);
+      // this.currentPage = val
+      this.getnews(this.item);
+    },
     // 璺宠浆鍒版柊闂诲睍绀洪〉闈�
     show(item){
       // console.log(item.id);
@@ -118,7 +123,7 @@
 
 <style lang="less" scoped>
 ul {
-  width: 200px;
+  // width: 200px;
   li {
     background-color: rgb(242, 243, 245);
     height: 50px;
@@ -133,11 +138,11 @@
   color: #000;
 }
 .box-card{
-  height: 600px;
+  height: 500px;
   position: relative;
   .fenye{
     position: absolute;
-    bottom: 2px;
+    bottom: 10px;
   }
 } 
 </style>
\ No newline at end of file

--
Gitblit v1.8.0