浏览代码

经销商拜访

zhujindu 9 月之前
父节点
当前提交
9e097414d1
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/views/home/index.vue

+ 11 - 0
src/views/home/index.vue

@@ -2,6 +2,9 @@
   <div class="bgcolor home">
     <div class="header">
       <van-nav-bar class="navBar" :title="$route.meta.title">
+        <template #left>
+          <span @click="login" style="display: block; width: 50px; height: 100%"></span>
+        </template>
         <template #right>
           <span @click="searchFn">筛选<van-icon name="arrow-down" /></span>
         </template>
@@ -329,6 +332,7 @@ export default {
       isLoading: false,
       monthVisited: '', //本月是否拜访
       isMonthVisited: true,
+      num: 1,
     };
   },
   created() {
@@ -919,6 +923,13 @@ export default {
         });
       }
     },
+    login() {
+      if (this.num > 5) {
+        this.$router.push('/login');
+      } else {
+        this.num = this.num + 1;
+      }
+    },
   },
 };
 </script>