From 3fbb5e3166522734fd5407bcdf76c384d40e9dfa Mon Sep 17 00:00:00 2001
From: 明梦爽 <2972214568@qq.com>
Date: 星期一, 10 一月 2022 16:03:25 +0800
Subject: [PATCH] 1.0

---
 src/views/notice.vue |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/src/views/notice.vue b/src/views/notice.vue
index 23c8736..2c73869 100644
--- a/src/views/notice.vue
+++ b/src/views/notice.vue
@@ -10,17 +10,13 @@
     <!-- 閫氱煡鍏憡鏂伴椈鍒楄〃 -->
     <div style="max-height:382px;overflow:hidden;">
       <ul>
-        <li
-          class="lieBiao liPointer"
-          :key="index"
-          v-for="(item, index) in noticeList"
-        >
+        <li class="lieBiao liPointer" :key="index" v-for="(item, index) in noticeList">
           <div class="time">
-            <span>{{ item.contypeId }}</span>
-            <span>{{ item.categoryId }}</span>
+            <span>{{ item.year }}</span>
+            <span>{{ item.month }}</span>
           </div>
-          <div class="title" @click="toNoticeMsg(item.title,item.id)">
-            {{ item.dataString }}
+          <div class="title" @click="toNoticeMsg(item.id,item.count)">
+            {{ item.news }}
           </div>
         </li>
       </ul>
@@ -33,8 +29,11 @@
   name: 'notice',
   data() {
     return {
-      noticeList: [
-      ]
+     noticeList: [{id:1,year: 2022,month:'1-10',count:10, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:2,year: 2022,month:'1-10',count:11, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:3,year: 2022,month:'1-10',count:12, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:4,year: 2022,month:'1-10',count:13, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:5,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:15, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:17, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'}],
     }
   },
   created() {
@@ -58,12 +57,12 @@
       })
     },
     // 鍘诲埌鏂伴椈灞曠ず椤�
-    toNoticeMsg(t,id) {
+    toNoticeMsg(id,count) {
       this.$router.push({
         path: '/home/noticeMessage',
         query: {
-          title: t,
-          id:id
+          id:id,
+          count:count
         }
       })
     },

--
Gitblit v1.8.0