Browse Source

no message

zhujindu 2 weeks ago
parent
commit
bf86ba6634
2 changed files with 9 additions and 3 deletions
  1. 0 1
      src/views/home/ABtarget.vue
  2. 9 2
      src/views/home/index.vue

+ 0 - 1
src/views/home/ABtarget.vue

@@ -656,7 +656,6 @@ export default {
   },
   methods: {
     initData() {
-      debugger;
       console.log(this.tabVal);
       this.getReportInfo();
       this.userTodayPlanNum();

+ 9 - 2
src/views/home/index.vue

@@ -126,8 +126,15 @@ export default {
             this.isGZorJZ = 'true';
           }
         } else {
-          localStorage.setItem('isGZorJZ', 'false');
-          this.isGZorJZ = 'false';
+          this.onlyShowHomeTarget = false;
+          // postType:人员类型,JZ(家装)、GZ(公装)、YF(应服)、DIY(DIY)
+          if (postType == 'JZ') {
+            localStorage.setItem('isGZorJZ', 'true');
+            this.isGZorJZ = 'true';
+          } else {
+            localStorage.setItem('isGZorJZ', 'false');
+            this.isGZorJZ = 'false';
+          }
         }
       }
       // 家装或工装不显示提示类tab