xialei 1 jaar geleden
bovenliggende
commit
c33daf9417
1 gewijzigde bestanden met toevoegingen van 117 en 18 verwijderingen
  1. 117 18
      src/views/accounts/gaikuang/index.vue

+ 117 - 18
src/views/accounts/gaikuang/index.vue

@@ -6,7 +6,7 @@
6
         <div class="clearfix" style="margin-top: 10px; margin-bottom: 10px;">
6
         <div class="clearfix" style="margin-top: 10px; margin-bottom: 10px;">
7
           <div class="title_label_box" >
7
           <div class="title_label_box" >
8
             <div class="title_label" style="margin-bottom: 10px; " >
8
             <div class="title_label" style="margin-bottom: 10px; " >
9
-              订单概况
9
+              订单概况 
10
               <el-tooltip placement="top">
10
               <el-tooltip placement="top">
11
                    <div slot="content" class="tips-content text-tips-content">
11
                    <div slot="content" class="tips-content text-tips-content">
12
                        <div class="rule-box">
12
                        <div class="rule-box">
@@ -64,8 +64,49 @@
64
 
64
 
65
           </div>
65
           </div>
66
 
66
 
67
-            <userCard-data :card-lists="userCountLists" class="orderCount-box" />
68
-            <redCards-data :card-lists="userCountLists1" class="orderCount-box" />
67
+            <userCard-data :card-lists="userCountListsOne" class="orderCount-box" />
68
+            <userCard-data :card-lists="userCountListsTow" class="orderCount-box" />
69
+            <!-- <redCards-data :card-lists="userCountLists1" class="orderCount-box" /> -->
70
+        </div>
71
+
72
+        <!-- 会员概况 -->
73
+        <div class="redPoint_box" style="margin-top: 10px; margin-bottom: 10px;">
74
+          <div class="title_label_box">
75
+            <div class="title_label" style="margin-bottom: 10px; " >
76
+                会员概况
77
+            </div>
78
+          </div>
79
+            <userCard-data :card-lists="memberCountLists" class="orderCount-box" />
80
+        </div>
81
+
82
+        <!-- PV概况 -->
83
+        <div class="redPoint_box" style="margin-top: 10px; margin-bottom: 10px;">
84
+          <div class="title_label_box">
85
+            <div class="title_label" style="margin-bottom: 10px; " >
86
+                PV概况
87
+            </div>
88
+          </div>
89
+            <userCard-data :card-lists="pvCountLists" class="orderCount-box" />
90
+        </div>
91
+
92
+        <!-- VR概况 -->
93
+        <div class="redPoint_box" style="margin-top: 10px; margin-bottom: 10px;">
94
+          <div class="title_label_box">
95
+            <div class="title_label" style="margin-bottom: 10px; " >
96
+                VR概况
97
+            </div>
98
+          </div>
99
+            <userCard-data :card-lists="vrCountLists" class="orderCount-box" />
100
+        </div>
101
+
102
+        <!-- 积分概况 -->
103
+        <div class="redPoint_box" style="margin-top: 10px; margin-bottom: 10px;">
104
+          <div class="title_label_box">
105
+            <div class="title_label" style="margin-bottom: 10px; " >
106
+                积分概况
107
+            </div>
108
+          </div>
109
+            <userCard-data :card-lists="jifenCountLists" class="orderCount-box" />
69
         </div>
110
         </div>
70
 
111
 
71
         <!-- 交易概况 -->
112
         <!-- 交易概况 -->
@@ -101,7 +142,12 @@
101
               @change="getTradeGaiKuang" :disabled="notUse3" />
142
               @change="getTradeGaiKuang" :disabled="notUse3" />
102
           </div>
143
           </div>
103
 
144
 
104
-          <tongjiCards-data :card-lists="cardLists" class="tradeCount-box" />
145
+          <tongjiCards-data :card-lists="cardListsOne" class="tradeCount-box" />
146
+
147
+          <tongjiCards-data :card-lists="cardListsTow" class="tradeCount-box" />
148
+
149
+          <redCards-data :card-lists="cardLists1" class="orderCount-box" />
150
+
105
           <!-- 系统支出概况 -->
151
           <!-- 系统支出概况 -->
106
           <!-- <div class="title_label_box">
152
           <!-- <div class="title_label_box">
107
             <div class="title_label" style="margin-bottom: 10px; " >
153
             <div class="title_label" style="margin-bottom: 10px; " >
@@ -146,8 +192,19 @@ import {
146
   getOrderGaiKuangApi,
192
   getOrderGaiKuangApi,
147
   getRedPointGaiKuangApi,
193
   getRedPointGaiKuangApi,
148
   getTradeGaiKuangApi,
194
   getTradeGaiKuangApi,
149
-  getUserGaiKuangApi
150
-
195
+  getUserGaiKuangApi,
196
+  getMemberGaiKuangApi,
197
+  getJifenGaiKuangApi,
198
+  getPvGaiKuangApi,
199
+  getVrGaiKuangApi,
200
+  getPointCountApi,
201
+  getJingdouCountApi,
202
+  getHongbaoCountApi,
203
+  getFugouCountApi,
204
+  getFenrunApi,
205
+  getPvCountApi,
206
+  getVrCountApi,
207
+  getMemberCountApi,
151
 } from "@/api/accounts";
208
 } from "@/api/accounts";
152
 import fileList from "@/components/exportFile/fileList";
209
 import fileList from "@/components/exportFile/fileList";
153
 import tongjiCardsData from "@/components/cards/tongjiCard";
210
 import tongjiCardsData from "@/components/cards/tongjiCard";
@@ -246,7 +303,8 @@ export default {
246
             LogLoading: false,
303
             LogLoading: false,
247
             dialogVisible: false,
304
             dialogVisible: false,
248
             fileVisible: false,
305
             fileVisible: false,
249
-            cardLists: [],
306
+            cardListsOne: [],
307
+            cardListsTow: [],
250
             cardLists1: [],
308
             cardLists1: [],
251
             orderDatalist: null,
309
             orderDatalist: null,
252
             headeNum: [],
310
             headeNum: [],
@@ -257,9 +315,14 @@ export default {
257
               remark:'',
315
               remark:'',
258
             },
316
             },
259
             otherCardsList: [],
317
             otherCardsList: [],
260
-            userCountLists: [],
318
+            userCountListsOne: [],
319
+            userCountListsTow: [],
261
             otherCardsLists:[],
320
             otherCardsLists:[],
262
-            userCountLists1: []
321
+            userCountLists1: [],
322
+            memberCountLists: [],
323
+            pvCountLists: [],
324
+            vrCountLists: [],
325
+            jifenCountLists: [],
263
         };
326
         };
264
     },
327
     },
265
     mounted() {
328
     mounted() {
@@ -270,6 +333,10 @@ export default {
270
 
333
 
271
         this.getOrderGaiKuang();
334
         this.getOrderGaiKuang();
272
         this.getUserGaiKuang();
335
         this.getUserGaiKuang();
336
+        this.getMemberGaiKuang();
337
+        this.getPvGaiKuang();
338
+        this.getVrGaiKuang();
339
+        this.getJifenGaiKuang();
273
         this.getTradeGaiKuang();
340
         this.getTradeGaiKuang();
274
 
341
 
275
     },
342
     },
@@ -334,23 +401,55 @@ export default {
334
       getUserGaiKuang() {
401
       getUserGaiKuang() {
335
         getUserGaiKuangApi(this.paramsData2).then(res => {
402
         getUserGaiKuangApi(this.paramsData2).then(res => {
336
               console.log(res)
403
               console.log(res)
337
-              this.userCountLists = res.data.left[0]
338
-              this.userCountLists1 = res.data.right
339
-
340
-
341
-              // this.userCountLists = res.data
342
-              // this.userCountLists1 = res.data.right
343
-
404
+              this.userCountListsOne = res.data.left.one
405
+              this.userCountListsTow = res.data.left.tow
344
             }).catch((res) => {
406
             }).catch((res) => {
345
               this.$message.error(res.message);
407
               this.$message.error(res.message);
346
             });
408
             });
347
       },
409
       },
348
 
410
 
411
+      getMemberGaiKuang() {
412
+        getMemberGaiKuangApi({}).then(res => {
413
+            console.log(res)
414
+            this.memberCountLists = res.data.left[0]
415
+        }).catch((res) => {
416
+            this.$message.error(res.message);
417
+        });
418
+      },
419
+
420
+      getPvGaiKuang() {
421
+        getPvGaiKuangApi({}).then(res => {
422
+            console.log(res)
423
+            this.pvCountLists = res.data.left[0]
424
+        }).catch((res) => {
425
+            this.$message.error(res.message);
426
+        });
427
+      },
428
+
429
+      getVrGaiKuang() {
430
+        getVrGaiKuangApi({}).then(res => {
431
+            console.log(res)
432
+            this.vrCountLists = res.data.left[0]
433
+        }).catch((res) => {
434
+            this.$message.error(res.message);
435
+        });
436
+      },
437
+
438
+      getJifenGaiKuang() {
439
+        getJifenGaiKuangApi({}).then(res => {
440
+            console.log(res)
441
+            this.jifenCountLists = res.data.left[0]
442
+        }).catch((res) => {
443
+            this.$message.error(res.message);
444
+        });
445
+      },
446
+
349
       getTradeGaiKuang() {
447
       getTradeGaiKuang() {
350
         getTradeGaiKuangApi(this.paramsData3).then(res => {
448
         getTradeGaiKuangApi(this.paramsData3).then(res => {
351
               console.log(res)
449
               console.log(res)
352
-              this.cardLists = res.data;
353
-              // this.cardLists1 = res.data.lower;
450
+              this.cardListsOne = res.data.left.one;
451
+              this.cardListsTow = res.data.left.tow;
452
+              this.cardLists1 = res.data.right;
354
             }).catch((res) => {
453
             }).catch((res) => {
355
               this.$message.error(res.message);
454
               this.$message.error(res.message);
356
             });
455
             });