瀏覽代碼

历史拜访展示提示数量优化

sunny 2 月之前
父節點
當前提交
2d65e735bf

+ 6 - 3
src/views/historicalVisit/historAllVisit.vue

@@ -264,8 +264,9 @@ export default {
     };
     };
   },
   },
   activated() {
   activated() {
-    if(this.latestUpdateTime!=null){ 
-       this.getListTotalFn();
+    let type = this.$route.query.type;  
+    if(this.latestUpdateTime!=null && type == 1){ 
+      this.getListTotalFn();
     }
     }
     // setTimeout(() => {
     // setTimeout(() => {
     //   this.onSearch();
     //   this.onSearch();
@@ -396,7 +397,9 @@ export default {
       this.onSearch();
       this.onSearch();
     },
     },
     onClickLeft() {
     onClickLeft() {
-      this.$router.go(-1);
+      this.$router.push({
+          path: '/My/index',
+      });
     },
     },
     onSearch() {
     onSearch() {
       this.refreshTotal = 0;
       this.refreshTotal = 0;

+ 6 - 1
src/views/historicalVisit/historicalDetails.vue

@@ -434,7 +434,12 @@ export default {
           path: '/historicalVisit',
           path: '/historicalVisit',
         });
         });
       } else {
       } else {
-        this.$router.go(-1);
+         this.$router.push({
+            path: '/historAllVisit',
+            query: {
+              type: 1,
+            },
+          });
       }
       }
     },
     },
   },
   },

+ 1 - 1
src/views/week/index.vue

@@ -47,7 +47,7 @@
               <van-icon :name="storeselect" class="zicon" />
               <van-icon :name="storeselect" class="zicon" />
             </template>
             </template>
           </van-cell>
           </van-cell>
-          <van-cell title="历史拜访" is-link to="/historAllVisit">
+          <van-cell title="历史拜访" is-link to="/historAllVisit?type=0">
             <template #icon>
             <template #icon>
               <van-icon :name="history" class="zicon" />
               <van-icon :name="history" class="zicon" />
             </template>
             </template>