Sfoglia il codice sorgente

Merge branch 'szq-fixBug'

shizhongqi 4 anni fa
parent
commit
f2a54a5912

+ 4 - 3
ghsApp/src/admin/home/member.vue

@@ -141,9 +141,10 @@ export default {
           if (this.$util.isEmpty(res.data)){
             return false;
           }
-          this.tabs[0].value = res.data.totalUser || 0;
-          this.tabs[1].value = res.data.totalUser || 0;
-          this.tabs[2].value = res.data.mayGatheringNum || 0;
+          this.tabs[this.tabIndex].value = res.data.totalNum || 0;
+          // this.tabs[0].value = res.data.totalUser || 0;
+          // this.tabs[1].value = res.data.totalUser || 0;
+          // this.tabs[2].value = res.data.mayGatheringNum || 0;
         });
     },
     change(e) {

+ 1 - 5
ghsApp/src/admin/home/newOrderList.vue

@@ -186,12 +186,8 @@ export default {
         if (this.$util.isEmpty(res.data)){
           return false
         }
-        
-        this.tabs[0].value = '';
-        this.tabs[1].value = '';
-        this.tabs[2].value = '';
 
-        this.tabs[res.data.type - 1].value = res.data.totalNum == 0 ? '' : res.data.totalNum;
+        this.tabs[res.data.type - 1].value = res.data.totalNum;
       });
     },
     change(e) {

+ 2 - 5
ghsApp/src/admin/home/order.vue

@@ -204,11 +204,8 @@ export default {
         if (this.$util.isEmpty(res.data)){
           return false
         }
-        this.tabs[0].value = res.data.totalNum || 0;
-        this.tabs[1].value = res.data.shop.unPayOrder || 0;
-        this.tabs[2].value = res.data.shop.unSendOrder || 0;
-        this.tabs[3].value = res.data.shop.sendingOrder || 0;
-        this.tabs[4].value = res.data.shop.finishOrder || 0;
+
+        this.tabs[this.tabIndex].value = res.data.totalNum;
       });
     },
     change(e) {