Przeglądaj źródła

用户详细更改

xialei 1 rok temu
rodzic
commit
2dbbddf5d2

+ 9 - 0
src/views/accounts/caiwutongji/contribute/index.vue

@@ -113,6 +113,12 @@ import cardsData from "@/components/cards/index";
113 113
 import {getZeroPointApi, getContributeCountApi} from "@/api/accounts";
114 114
 import {roterPre} from "@/settings";
115 115
 export default {
116
+    props: {
117
+      phone: {
118
+        type: Number,
119
+        default: null
120
+      }
121
+    },
116 122
     components: {
117 123
         cardsData,
118 124
         fileList
@@ -179,6 +185,9 @@ export default {
179 185
         };
180 186
     },
181 187
     mounted() {
188
+        if (this.phone) {
189
+          this.tableFrom.phone = this.phone
190
+        }
182 191
         this.getList(1);
183 192
 
184 193
         performanceDivvyLstApi({'page':1,'limit':100,'state':1}).then(res => {

+ 9 - 0
src/views/accounts/caiwutongji/fugou/index.vue

@@ -162,6 +162,12 @@ import cardsData from "@/components/cards/index";
162 162
 import {getZeroPointApi, getFugouCountApi} from "@/api/accounts";
163 163
 import {roterPre} from "@/settings";
164 164
 export default {
165
+    props: {
166
+      phone: {
167
+        type: Number,
168
+        default: null
169
+      }
170
+    },
165 171
     components: {
166 172
         cardsData,
167 173
         fileList
@@ -229,6 +235,9 @@ export default {
229 235
         };
230 236
     },
231 237
     mounted() {
238
+        if (this.phone) {
239
+          this.tableFrom.phone = this.phone
240
+        }
232 241
         this.getList(1);
233 242
 
234 243
         performanceDivvyLstApi({'page':1,'limit':100,'state':1}).then(res => {

+ 9 - 0
src/views/accounts/caiwutongji/hongbao/index.vue

@@ -115,6 +115,12 @@ import cardsData from "@/components/cards/index";
115 115
 import {getZeroPointApi, getHongbaoCountApi} from "@/api/accounts";
116 116
 import {roterPre} from "@/settings";
117 117
 export default {
118
+    props: {
119
+      phone: {
120
+        type: Number,
121
+        default: null
122
+      }
123
+    },
118 124
     components: {
119 125
         cardsData,
120 126
         fileList
@@ -181,6 +187,9 @@ export default {
181 187
         };
182 188
     },
183 189
     mounted() {
190
+        if (this.phone) {
191
+          this.tableFrom.phone = this.phone
192
+        }
184 193
         this.getList(1);
185 194
 
186 195
         performanceDivvyLstApi({'page':1,'limit':100,'state':1}).then(res => {

+ 9 - 0
src/views/accounts/caiwutongji/jingdou/index.vue

@@ -116,6 +116,12 @@ import cardsData from "@/components/cards/index";
116 116
 import {getZeroPointApi, getJingdouCountApi} from "@/api/accounts";
117 117
 import {roterPre} from "@/settings";
118 118
 export default {
119
+    props: {
120
+      phone: {
121
+        type: Number,
122
+        default: null
123
+      }
124
+    },
119 125
     components: {
120 126
         cardsData,
121 127
         fileList
@@ -182,6 +188,9 @@ export default {
182 188
         };
183 189
     },
184 190
     mounted() {
191
+        if (this.phone) {
192
+          this.tableFrom.phone = this.phone
193
+        }
185 194
         this.getList(1);
186 195
 
187 196
         performanceDivvyLstApi({'page':1,'limit':100,'state':1}).then(res => {

+ 9 - 0
src/views/accounts/caiwutongji/vr/index.vue

@@ -113,6 +113,12 @@ import cardsData from "@/components/cards/index";
113 113
 import {getZeroPointApi, getVrCountApi} from "@/api/accounts";
114 114
 import {roterPre} from "@/settings";
115 115
 export default {
116
+    props: {
117
+      phone: {
118
+        type: Number,
119
+        default: null
120
+      }
121
+    },
116 122
     components: {
117 123
         cardsData,
118 124
         fileList
@@ -179,6 +185,9 @@ export default {
179 185
         };
180 186
     },
181 187
     mounted() {
188
+        if (this.phone) {
189
+          this.tableFrom.phone = this.phone
190
+        }
182 191
         this.getList(1);
183 192
 
184 193
         performanceDivvyLstApi({'page':1,'limit':100,'state':1}).then(res => {

+ 21 - 8
src/views/user/list/userDetails.vue

@@ -6,7 +6,18 @@
6 6
         <p class="dashboard-workplace-header-tip-title" v-text="psInfo.nickname || '-'" />
7 7
         <p class="dashboard-workplace-header-tip-title" v-text="psInfo.phone || '-'" />
8 8
         <div class="dashboard-workplace-header-tip-desc">
9
-          <span class="dashboard-workplace-header-tip-desc-sp">收益余额: {{ psInfo.now_money }}</span>
9
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">养老金总额: {{ psInfo.annuity }}</span>
10
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">佣金余额: {{ psInfo.brokerage_price }}</span>
11
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">复购金余额: {{ psInfo.fugou }}</span>
12
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">红包余额: {{ psInfo.hongbao }}</span>
13
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">贡献值: {{ psInfo.contribute }}</span>
14
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">京豆: {{ psInfo.jingdou }}</span>
15
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">VR总额: {{ psInfo.vr }}</span>
16
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">积分余额: {{ psInfo.score }}</span>
17
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">订单总数: {{ psInfo.pay_count }}</span>
18
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">订单总额: {{ psInfo.pay_price }}</span>
19
+
20
+          <!-- <span class="dashboard-workplace-header-tip-desc-sp">收益余额: {{ psInfo.now_money }}</span>
10 21
           <span class="dashboard-workplace-header-tip-desc-sp">总计订单: {{ psInfo.pay_count }}</span>
11 22
           <span class="dashboard-workplace-header-tip-desc-sp">总消费金额: {{ psInfo.pay_price }}</span>
12 23
           <span class="dashboard-workplace-header-tip-desc-sp">本月订单: {{ psInfo.total_pay_count }}</span>
@@ -14,7 +25,7 @@
14 25
           <span class="dashboard-workplace-header-tip-desc-sp margin-top">当前可支取: {{ pension.annuity }}</span>
15 26
           <span class="dashboard-workplace-header-tip-desc-sp margin-top">养老金总额: {{ pension.annuity_frozen }}</span>
16 27
           <span class="dashboard-workplace-header-tip-desc-sp margin-top">加入时间: {{ pension.create_time }}</span>
17
-          <span class="dashboard-workplace-header-tip-desc-sp margin-top">法定提取时间: {{ pension.birthday60 }}</span>
28
+          <span class="dashboard-workplace-header-tip-desc-sp margin-top">法定提取时间: {{ pension.birthday60 }}</span> -->
18 29
         </div>
19 30
       </div>
20 31
     </div>
@@ -59,23 +70,23 @@
59 70
       </el-col>
60 71
 
61 72
       <el-col :span="20" v-if="type == '6'">
62
-        <vrIndexInfo />
73
+        <vrIndexInfo :phone="psInfo.phone"/>
63 74
       </el-col>
64 75
 
65 76
       <el-col :span="20" v-if="type == '7'">
66
-        <jingdouIndexInfo />
77
+        <jingdouIndexInfo :phone="psInfo.phone" />
67 78
       </el-col>
68 79
 
69 80
       <el-col :span="20" v-if="type == '8'">
70
-        <contributeIndexInfo />
81
+        <contributeIndexInfo :phone="psInfo.phone" />
71 82
       </el-col>
72 83
 
73 84
       <el-col :span="20" v-if="type == '9'">
74
-        <hongbaoIndexInfo />
85
+        <hongbaoIndexInfo :phone="psInfo.phone" />
75 86
       </el-col>
76 87
 
77 88
       <el-col :span="20" v-if="type == '10'">
78
-        <fugouIndexInfo />
89
+        <fugouIndexInfo :phone="psInfo.phone"/>
79 90
       </el-col>
80 91
 
81 92
     </el-row>
@@ -391,6 +402,8 @@ export default {
391 402
     getHeader() {
392 403
       userDetailApi(this.uid).then(res => {
393 404
         this.psInfo = res.data
405
+        console.log(res);
406
+        
394 407
       })
395 408
       // 养老金信息
396 409
       userPensionApi(this.uid).then(res => {
@@ -436,7 +449,7 @@ export default {
436 449
 
437 450
         &-desc {
438 451
           &-sp {
439
-            width: 19%;
452
+            width: 15%;
440 453
             color: #17233D;
441 454
             font-size: 13px;
442 455
             display: inline-block;