From ae3577a604988e84d22fc299ddd6dae25b5edf57 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期三, 15 五月 2024 02:14:17 +0800
Subject: [PATCH] 部分调整;标准库分页修改

---
 src/components/view/index-index.vue |   43 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 35 insertions(+), 8 deletions(-)

diff --git a/src/components/view/index-index.vue b/src/components/view/index-index.vue
index 8dc66d5..7c0fc28 100644
--- a/src/components/view/index-index.vue
+++ b/src/components/view/index-index.vue
@@ -241,15 +241,30 @@
 		text-align: left;
     margin-bottom: 10px;
 	}
-  >>>.is-selected .el-calendar-day{
-    background: #0166E2 !important;
-    color: #fff !important;
+  >>>.el-calendar-day span{
+    display: inline-block;
+    width: 30px;
+    height: 30px;
+    line-height: 30px;
+    text-align: center;
     border-radius: 4px;
   }
-  >>>.el-calendar-day:hover{
-    background: #0166E2 !important;
+  >>>.is-selected{
+    background: transparent !important;
+  }
+  >>>.is-selected .el-calendar-day{
+    background: transparent !important;
+  }
+  >>>.is-selected .el-calendar-day span{
+    background: #3A7BFA !important;
     color: #fff !important;
-    border-radius: 4px;
+  }
+  >>>.el-calendar-day:hover{
+    background: transparent;
+  }
+  >>>.el-calendar-day span:hover{
+    background: #3A7BFA !important;
+    color: #fff !important;
   }
 </style>
 
@@ -363,7 +378,7 @@
             <div class="tab-item" style="cursor: pointer;" :class="{active:currentIndex==5}" @click="currentIndex=5">閫氱煡閫氬憡</div>
           </div>
           <div class="right-3-list" v-loading="listLoading">
-            <scroll-pagination @load="getList" :finishLoding="finishLoding">
+            <scroll-pagination @load="getList" :finishLoding="finishLoding" :list="list">
               <div class="list3-item" v-for="(m,i) in list" :key="i">
               <div class="list3-item-title">
                 <img src="../../../static/img/index-tip.svg" alt="">
@@ -449,7 +464,8 @@
         total: null,
         listLoading: true, // 缁勪欢loading鐨勫睍绀�,榛樿涓簍rue
         finishLoding: false, // 鍔犺浇瀹屾垚锛屾樉绀哄凡缁忔病鏈夋洿澶氫簡
-        timer:null
+        timer:null,
+        keyMap:{},
 			}
 		},
     watch:{
@@ -457,6 +473,7 @@
         this.getScheduleByMe()
       },
       currentIndex(){
+        this.keyMap = {}
         this.currentPage = 1;
         this.list = [];
         this.getList();
@@ -471,6 +488,7 @@
       this.weekdays = this.getWeekdaysForNextWeek()
       this.init();
       this.currentPage = 1;
+      this.keyMap = {}
       this.list = [];
       this.getList();
       this.getScheduleByMe()
@@ -478,6 +496,7 @@
       this.timer = setInterval(() => {
         this.init();
         this.currentPage = 1;
+        this.keyMap = {}
         this.list = [];
         this.getList();
         this.getScheduleByMe()
@@ -485,6 +504,14 @@
 		},
 		methods: {
       getList(){
+        const key = `_${this.currentPage}`
+        const value = this.keyMap[key]
+        // 濡傛灉value瀛樺湪锛岃〃绀虹紦瀛樻湁鍊硷紝閭d箞闃绘璇锋眰
+        if(value) {
+          return
+        }
+        // value涓嶅瓨鍦紝琛ㄧず绗竴娆¤姹�,璁剧疆鍗犱綅
+        this.keyMap[key] = 'temp'
         if(this.currentPage==1){
           this.listLoading = true
         }

--
Gitblit v1.9.3