5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1
|
<template>
|
6ec1ef37
李宇
最新
|
2
|
<el-dialog :visible.sync="visibleSync" title="会员画像" :width="'1500px'" append-to-body top="8vh"
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
3
4
|
custom-class="member-portrait-dialog" :close-on-click-modal="false" @closed="handleClosed">
<div v-loading="loading" class="portrait-wrapper">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
5
|
<!-- 顶部:会员核心信息卡片 -->
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
6
|
<div class="portrait-header">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
7
8
9
10
11
|
<div class="header-avatar">
<div class="avatar-circle">
<i class="el-icon-user-solid"></i>
</div>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
12
|
<div class="header-main">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
13
14
15
16
17
18
|
<div class="member-name-row">
<h2 class="member-name">{{ baseInfo.MemberName || '—' }}</h2>
<el-tag v-if="baseInfo.ConsumeLevel !== undefined" :type="getConsumeLevelTagType(baseInfo.ConsumeLevel)" size="small" class="level-tag">
{{ getConsumeLevelText(baseInfo.ConsumeLevel) }}
</el-tag>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
19
|
<div class="member-meta">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
20
|
<div class="meta-item">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
21
|
<i class="el-icon-phone"></i>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
22
23
24
|
<span>{{ baseInfo.Mobile || '—' }}</span>
</div>
<div class="meta-item">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
25
|
<i class="el-icon-office-building"></i>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
26
27
28
|
<span>{{ baseInfo.StoreName || '—' }}</span>
</div>
<div class="meta-item" v-if="baseInfo.Channel">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
29
|
<i class="el-icon-connection"></i>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
30
31
32
33
34
35
|
<span>{{ baseInfo.Channel }}</span>
</div>
<div class="meta-item" v-if="baseInfo.MemberCode">
<i class="el-icon-tickets"></i>
<span>编码:{{ baseInfo.MemberCode }}</span>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
36
37
|
</div>
</div>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<div class="header-right">
<div class="header-stats">
<div class="stat-card stat-primary">
<el-tag type="primary" size="small" class="stat-label-tag">剩余权益</el-tag>
<span class="stat-value">¥{{ formatMoney(behaviorSummary.RemainingRightsAmount) }}</span>
</div>
<div class="stat-card stat-success">
<el-tag type="success" size="small" class="stat-label-tag">累计开单</el-tag>
<span class="stat-value">¥{{ formatMoney(behaviorSummary.TotalBillingAmount) }}</span>
</div>
<div class="stat-card stat-info">
<el-tag type="info" size="small" class="stat-label-tag">累计消耗</el-tag>
<span class="stat-value">¥{{ formatMoney(behaviorSummary.TotalConsumeAmount) }}</span>
</div>
<div class="stat-card" :class="baseInfo.SleepDays > 30 ? 'stat-warning' : 'stat-default'">
<el-tag :type="baseInfo.SleepDays > 30 ? 'warning' : 'info'" size="small" class="stat-label-tag">沉睡天数</el-tag>
<span class="stat-value">{{ baseInfo.SleepDays || 0 }} 天</span>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
55
56
|
</div>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
57
|
<!-- 会员类型 -->
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
58
59
60
61
62
|
<div class="member-types-section" v-if="baseInfo.MemberTypes && baseInfo.MemberTypes.length > 0">
<div class="member-types-list">
<div v-for="type in baseInfo.MemberTypes" :key="type.TypeName" class="member-type-badge">
<el-tag :type="getMemberTypeTagType(type.TypeName)" size="small" class="member-type-tag">
{{ type.TypeName }}会员
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
63
64
|
</el-tag>
<span class="member-type-date" v-if="type.BecomeTime">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
65
|
<i class="el-icon-calendar"></i>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
66
67
68
|
{{ formatDate(type.BecomeTime) }}
</span>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
69
70
71
72
73
74
75
76
77
78
79
|
</div>
</div>
</div>
</div>
<!-- 选项卡内容 -->
<el-tabs v-model="activeTab" class="portrait-tabs">
<!-- 概览 -->
<el-tab-pane label="概览" name="overview">
<div class="tab-content">
<!-- 消费行为 -->
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
80
81
|
<div class="content-card">
<div class="card-header">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
82
|
<i class="el-icon-shopping-cart-full"></i>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
83
|
<span class="card-title">消费行为</span>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
84
|
</div>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
<div class="card-body">
<div class="behavior-grid">
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-document"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">开单次数</div>
<div class="behavior-value">{{ behaviorSummary.BillingCount || 0 }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-goods"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">消耗次数</div>
<div class="behavior-value">{{ behaviorSummary.ConsumeCount || 0 }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-refresh-left"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">退卡次数</div>
<div class="behavior-value">{{ behaviorSummary.RefundCount || 0 }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-coin"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">平均开单金额</div>
<div class="behavior-value">¥{{ formatMoney(behaviorSummary.AvgBillingAmount) }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-coin"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">平均消耗金额</div>
<div class="behavior-value">¥{{ formatMoney(behaviorSummary.AvgConsumeAmount) }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-time"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">最近开单</div>
<div class="behavior-value">{{ formatDateTime(behaviorSummary.LastBillingTime) }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-time"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">最近消耗</div>
<div class="behavior-value">{{ formatDateTime(behaviorSummary.LastConsumeTime) }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-calendar"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">首次开单</div>
<div class="behavior-value">{{ formatDateTime(behaviorSummary.FirstBillingTime) }}</div>
</div>
</div>
<div class="behavior-item">
<div class="behavior-icon">
<i class="el-icon-calendar"></i>
</div>
<div class="behavior-content">
<div class="behavior-label">首次消耗</div>
<div class="behavior-value">{{ formatDateTime(behaviorSummary.FirstConsumeTime) }}</div>
</div>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
168
169
170
171
172
|
</div>
</div>
</div>
<!-- 近12个月趋势图 -->
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
173
174
|
<div class="content-card">
<div class="card-header">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
175
|
<i class="el-icon-data-line"></i>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
176
177
178
179
|
<span class="card-title">近12个月消费趋势</span>
</div>
<div class="card-body">
<div ref="trendChart" class="trend-chart"></div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
180
|
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
181
182
183
|
</div>
<!-- 消费分析 -->
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
184
185
|
<div v-if="consumptionAnalysis" class="content-card">
<div class="card-header">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
186
|
<i class="el-icon-data-analysis"></i>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
187
|
<span class="card-title">消费分析</span>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
188
|
</div>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
<div class="card-body">
<div class="analysis-layout">
<div class="analysis-item">
<div class="analysis-icon">
<i class="el-icon-timer"></i>
</div>
<div class="analysis-content">
<div class="analysis-label">消费频率</div>
<div class="analysis-value">{{ formatMoney(consumptionAnalysis.ConsumeFrequency) }} 次/月</div>
</div>
</div>
<div class="analysis-item">
<div class="analysis-icon">
<i class="el-icon-timer"></i>
</div>
<div class="analysis-content">
<div class="analysis-label">开单频率</div>
<div class="analysis-value">{{ formatMoney(consumptionAnalysis.BillingFrequency) }} 次/月</div>
</div>
</div>
<div class="analysis-item">
<div class="analysis-icon">
<i class="el-icon-success"></i>
</div>
<div class="analysis-content">
<div class="analysis-label">消费活跃度</div>
<div class="analysis-value">
<el-tag :type="consumptionAnalysis.IsActive ? 'success' : 'info'" size="small">
{{ consumptionAnalysis.IsActive ? '活跃' : '不活跃' }}
</el-tag>
</div>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
221
222
223
224
225
226
227
228
229
230
|
</div>
</div>
</div>
</div>
</div>
</el-tab-pane>
<!-- 权益明细 -->
<el-tab-pane label="权益明细" name="assets">
<div class="tab-content">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
231
232
|
<div class="content-card">
<div class="card-header">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
233
|
<i class="el-icon-wallet"></i>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
|
<span class="card-title">权益明细</span>
</div>
<div class="card-body">
<el-table :data="remainingItems" size="small" border stripe>
<el-table-column prop="ItemName" label="品项名称" min-width="140" />
<el-table-column prop="SourceType" label="来源类型" width="90" />
<el-table-column prop="UnitPrice" label="单价" width="90">
<template slot-scope="scope">¥{{ formatMoney(scope.row.UnitPrice) }}</template>
</el-table-column>
<el-table-column prop="TotalQuantity" label="总数量" width="80" />
<el-table-column prop="ConsumedQuantity" label="已消费" width="80" />
<el-table-column prop="RefundedQuantity" label="已退款" width="80" />
<el-table-column prop="DeductedQuantity" label="已扣除" width="80" />
<el-table-column prop="RemainingQuantity" label="剩余" width="80" />
<el-table-column prop="RemainingValue" label="剩余价值" width="120">
<template slot-scope="scope">¥{{ formatMoney(scope.row.RemainingValue) }}</template>
</el-table-column>
</el-table>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
252
|
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
253
254
255
256
257
258
259
|
</div>
</div>
</el-tab-pane>
<!-- 开单列表 -->
<el-tab-pane label="开单列表" name="billing">
<div class="tab-content">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
|
<div class="content-card">
<div class="card-header">
<i class="el-icon-document"></i>
<span class="card-title">开单列表</span>
</div>
<div class="card-body">
<el-table v-loading="billingLoading" :data="billingList" size="small" border stripe>
<el-table-column prop="BillingDate" label="开单日期" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.BillingDate) }}</template>
</el-table-column>
<el-table-column prop="StoreName" label="门店" width="150" />
<el-table-column prop="Amount" label="实付金额" width="120">
<template slot-scope="scope">¥{{ formatMoney(scope.row.Amount) }}</template>
</el-table-column>
<el-table-column prop="DebtAmount" label="欠款金额" width="120">
<template slot-scope="scope">¥{{ formatMoney(scope.row.DebtAmount) }}</template>
</el-table-column>
<el-table-column prop="ActivityName" label="活动名称" min-width="150" />
</el-table>
<div class="pagination-bar">
<el-pagination layout="total, sizes, prev, pager, next" :page-sizes="[10, 20, 50]"
:total="billingPagination.total" :current-page="billingPagination.pageIndex"
:page-size="billingPagination.pageSize" @size-change="handleBillingSizeChange"
@current-change="handleBillingPageChange" />
</div>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
286
287
288
289
290
291
292
|
</div>
</div>
</el-tab-pane>
<!-- 消耗列表 -->
<el-tab-pane label="消耗列表" name="consume">
<div class="tab-content">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
293
294
295
296
297
298
299
|
<div class="content-card">
<div class="card-header">
<i class="el-icon-goods"></i>
<span class="card-title">消耗列表</span>
</div>
<div class="card-body">
<el-table v-loading="consumeLoading" :data="consumeList" size="small" border stripe>
|
6ec1ef37
李宇
最新
|
300
|
<el-table-column prop="ConsumeDate" label="消耗日期">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
301
302
|
<template slot-scope="scope">{{ formatDateTime(scope.row.ConsumeDate) }}</template>
</el-table-column>
|
6ec1ef37
李宇
最新
|
303
304
|
<el-table-column prop="StoreName" label="门店" />
<el-table-column prop="Amount" label="消耗金额" >
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
305
306
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.Amount) }}</template>
</el-table-column>
|
6ec1ef37
李宇
最新
|
307
|
<el-table-column prop="LaborCost" label="手工费" >
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
308
309
310
311
312
313
314
315
316
317
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.LaborCost) }}</template>
</el-table-column>
</el-table>
<div class="pagination-bar">
<el-pagination layout="total, sizes, prev, pager, next" :page-sizes="[10, 20, 50]"
:total="consumePagination.total" :current-page="consumePagination.pageIndex"
:page-size="consumePagination.pageSize" @size-change="handleConsumeSizeChange"
@current-change="handleConsumePageChange" />
</div>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
318
319
320
321
322
323
324
|
</div>
</div>
</el-tab-pane>
<!-- 退卡列表 -->
<el-tab-pane label="退卡列表" name="refund">
<div class="tab-content">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
325
326
327
328
329
330
331
332
333
334
|
<div class="content-card">
<div class="card-header">
<i class="el-icon-refresh-left"></i>
<span class="card-title">退卡列表</span>
</div>
<div class="card-body">
<el-table v-loading="refundLoading" :data="refundList" size="small" border stripe>
<el-table-column prop="RefundDate" label="退卡日期" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.RefundDate) }}</template>
</el-table-column>
|
6ec1ef37
李宇
最新
|
335
336
|
<el-table-column prop="StoreName" label="门店" />
<el-table-column prop="RefundAmount" label="退卡金额" >
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
337
338
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.RefundAmount) }}</template>
</el-table-column>
|
6ec1ef37
李宇
最新
|
339
|
<el-table-column prop="ActualRefundAmount" label="实际退款" >
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
340
341
342
343
344
345
346
347
348
349
350
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.ActualRefundAmount) }}</template>
</el-table-column>
<el-table-column prop="RefundReason" label="退卡原因" min-width="150" />
</el-table>
<div class="pagination-bar">
<el-pagination layout="total, sizes, prev, pager, next" :page-sizes="[10, 20, 50]"
:total="refundPagination.total" :current-page="refundPagination.pageIndex"
:page-size="refundPagination.pageSize" @size-change="handleRefundSizeChange"
@current-change="handleRefundPageChange" />
</div>
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
|
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import * as echarts from 'echarts'
export default {
name: 'MemberPortraitDialog',
props: {
visible: { type: Boolean, default: false },
memberId: { type: String, default: '' }
},
data() {
return {
visibleSync: false,
loading: false,
activeTab: 'overview',
baseInfo: {},
behaviorSummary: {},
remainingItems: [],
monthlyTrend: [],
consumptionAnalysis: null,
trendChart: null,
// 开单列表
billingList: [],
billingLoading: false,
billingPagination: {
pageIndex: 1,
pageSize: 10,
total: 0
},
// 消耗列表
consumeList: [],
consumeLoading: false,
consumePagination: {
pageIndex: 1,
pageSize: 10,
total: 0
},
// 退卡列表
refundList: [],
refundLoading: false,
refundPagination: {
pageIndex: 1,
pageSize: 10,
total: 0
}
}
},
watch: {
visible: {
immediate: true,
handler(v) {
this.visibleSync = v
if (v && this.memberId) {
this.fetchData()
}
}
},
memberId: {
handler(newVal) {
if (newVal && this.visibleSync) {
this.fetchData()
}
}
},
activeTab(newVal) {
if (newVal === 'billing' && this.billingList.length === 0) {
this.fetchBillingList()
} else if (newVal === 'consume' && this.consumeList.length === 0) {
this.fetchConsumeList()
} else if (newVal === 'refund' && this.refundList.length === 0) {
this.fetchRefundList()
}
}
},
methods: {
async fetchData() {
if (!this.memberId) {
this.$message.warning('会员ID不能为空')
return
}
this.loading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/overview',
method: 'GET',
params: { memberId: this.memberId }
})
if (res.code === 200 && res.data) {
this.baseInfo = res.data.BaseInfo || {}
this.behaviorSummary = res.data.BehaviorSummary || {}
this.remainingItems = (res.data.Assets && res.data.Assets.RemainingItems) || []
this.monthlyTrend = res.data.MonthlyTrend || []
this.consumptionAnalysis = res.data.ConsumptionAnalysis || null
this.$nextTick(() => {
this.renderTrendChart()
})
} else {
this.$message.error(res.msg || '获取会员画像数据失败')
}
} catch (error) {
console.error('获取会员画像数据失败:', error)
this.$message.error('获取会员画像数据失败: ' + (error.message || '未知错误'))
} finally {
this.loading = false
}
},
async fetchBillingList() {
if (!this.memberId) return
this.billingLoading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/billing-list',
method: 'GET',
params: {
memberId: this.memberId,
pageIndex: this.billingPagination.pageIndex,
pageSize: this.billingPagination.pageSize
}
})
if (res.code === 200 && res.data) {
this.billingList = res.data.List || []
this.billingPagination.total = res.data.Total || 0
} else {
this.$message.error(res.msg || '获取开单列表失败')
}
} catch (error) {
console.error('获取开单列表失败:', error)
this.$message.error('获取开单列表失败: ' + (error.message || '未知错误'))
} finally {
this.billingLoading = false
}
},
async fetchConsumeList() {
if (!this.memberId) return
this.consumeLoading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/consume-list',
method: 'GET',
params: {
memberId: this.memberId,
pageIndex: this.consumePagination.pageIndex,
pageSize: this.consumePagination.pageSize
}
})
if (res.code === 200 && res.data) {
this.consumeList = res.data.List || []
this.consumePagination.total = res.data.Total || 0
} else {
this.$message.error(res.msg || '获取消耗列表失败')
}
} catch (error) {
console.error('获取消耗列表失败:', error)
this.$message.error('获取消耗列表失败: ' + (error.message || '未知错误'))
} finally {
this.consumeLoading = false
}
},
async fetchRefundList() {
if (!this.memberId) return
this.refundLoading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/refund-list',
method: 'GET',
params: {
memberId: this.memberId,
pageIndex: this.refundPagination.pageIndex,
pageSize: this.refundPagination.pageSize
}
})
if (res.code === 200 && res.data) {
this.refundList = res.data.List || []
this.refundPagination.total = res.data.Total || 0
} else {
this.$message.error(res.msg || '获取退卡列表失败')
}
} catch (error) {
console.error('获取退卡列表失败:', error)
this.$message.error('获取退卡列表失败: ' + (error.message || '未知错误'))
} finally {
this.refundLoading = false
}
},
handleBillingPageChange(page) {
this.billingPagination.pageIndex = page
this.fetchBillingList()
},
handleBillingSizeChange(size) {
this.billingPagination.pageSize = size
this.billingPagination.pageIndex = 1
this.fetchBillingList()
},
handleConsumePageChange(page) {
this.consumePagination.pageIndex = page
this.fetchConsumeList()
},
handleConsumeSizeChange(size) {
this.consumePagination.pageSize = size
this.consumePagination.pageIndex = 1
this.fetchConsumeList()
},
handleRefundPageChange(page) {
this.refundPagination.pageIndex = page
this.fetchRefundList()
},
handleRefundSizeChange(size) {
this.refundPagination.pageSize = size
this.refundPagination.pageIndex = 1
this.fetchRefundList()
},
renderTrendChart() {
if (!this.$refs.trendChart) return
if (this.trendChart) {
this.trendChart.dispose()
}
this.trendChart = echarts.init(this.$refs.trendChart)
const months = this.monthlyTrend.map(item => item.Month)
const billingData = this.monthlyTrend.map(item => item.BillingAmount || 0)
const consumeData = this.monthlyTrend.map(item => item.ConsumeAmount || 0)
const refundData = this.monthlyTrend.map(item => item.RefundAmount || 0)
const option = {
tooltip: {
trigger: 'axis',
axisPointer: { type: 'cross' }
},
legend: {
data: ['开单金额', '消耗金额', '退卡金额'],
bottom: 0
},
grid: {
left: '3%',
right: '4%',
bottom: '15%',
containLabel: true
},
xAxis: {
type: 'category',
data: months,
axisLabel: {
rotate: 45
}
},
yAxis: {
type: 'value',
axisLabel: {
formatter: value => '¥' + this.formatMoney(value)
}
},
series: [
{
name: '开单金额',
type: 'line',
data: billingData,
itemStyle: { color: '#409EFF' }
},
{
name: '消耗金额',
type: 'line',
data: consumeData,
itemStyle: { color: '#67C23A' }
},
{
name: '退卡金额',
type: 'line',
data: refundData,
itemStyle: { color: '#F56C6C' }
}
]
}
this.trendChart.setOption(option)
// 响应式调整
window.addEventListener('resize', this.handleChartResize)
},
handleChartResize() {
if (this.trendChart) {
this.trendChart.resize()
}
},
formatMoney(amount) {
if (amount === null || amount === undefined || amount === '') return '0.00'
return Number(amount).toFixed(2)
},
formatDateTime(timestamp) {
if (!timestamp) return '无'
if (typeof timestamp === 'number') {
const date = new Date(timestamp)
return date.toLocaleString('zh-CN', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit'
})
}
return timestamp
},
formatDate(timestamp) {
if (!timestamp) return ''
if (typeof timestamp === 'number') {
const date = new Date(timestamp)
return date.toLocaleDateString('zh-CN', {
year: 'numeric',
month: '2-digit',
day: '2-digit'
})
}
return timestamp
},
getConsumeLevelText(level) {
const levelMap = {
0: '普通',
1: '银卡',
2: '金卡',
3: '钻石',
4: 'VIP'
}
return levelMap[level] || '普通'
},
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
693
694
695
696
697
698
699
700
701
702
|
getConsumeLevelTagType(level) {
const typeMap = {
0: 'info',
1: '',
2: 'warning',
3: 'success',
4: 'danger'
}
return typeMap[level] || 'info'
},
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
|
getMemberTypeTagType(typeName) {
const typeMap = {
'生美': 'success',
'医美': 'warning',
'科技部': 'primary',
'教育部': 'info'
}
return typeMap[typeName] || 'info'
},
handleClosed() {
if (this.trendChart) {
window.removeEventListener('resize', this.handleChartResize)
this.trendChart.dispose()
this.trendChart = null
}
this.$emit('update:visible', false)
this.$emit('closed')
}
},
beforeDestroy() {
if (this.trendChart) {
window.removeEventListener('resize', this.handleChartResize)
this.trendChart.dispose()
}
}
}
</script>
<style lang="scss" scoped>
|
6ec1ef37
李宇
最新
|
732
733
734
|
::v-deep .el-dialog {
border-radius: 14px;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
735
736
|
.member-portrait-dialog {
.el-dialog {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
737
|
border-radius: 16px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
738
739
740
741
|
overflow: hidden;
}
.el-dialog__header {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
|
padding: 20px 24px;
border-bottom: 1px solid #e4e7ed;
background: #409EFF;
color: #fff;
.el-dialog__title {
color: #fff;
font-size: 18px;
font-weight: 600;
}
.el-dialog__close {
color: #fff;
font-size: 20px;
&:hover {
color: rgba(255, 255, 255, 0.8);
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
761
762
763
|
}
.el-dialog__body {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
764
|
padding: 24px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
765
766
767
|
background: #f5f7fa;
color: #303133;
overflow-y: auto;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
768
|
max-height: calc(90vh - 120px);
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
769
770
771
772
|
}
}
.portrait-wrapper {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
773
|
// 顶部会员信息卡片
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
774
775
|
.portrait-header {
background: #fff;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
776
777
778
|
border-radius: 12px;
padding: 24px;
margin-bottom: 20px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
779
|
display: flex;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
|
align-items: flex-start;
gap: 24px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
border: 1px solid #e4e7ed;
.header-avatar {
flex-shrink: 0;
.avatar-circle {
width: 80px;
height: 80px;
border-radius: 50%;
background: #409EFF;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 36px;
box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
801
802
803
|
.header-main {
flex: 1;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
804
|
min-width: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
805
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
|
.member-name-row {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
.member-name {
font-size: 24px;
font-weight: 700;
color: #303133;
margin: 0;
line-height: 1.2;
}
.level-tag {
font-weight: 600;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
823
824
825
826
|
}
.member-meta {
display: flex;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
827
|
flex-wrap: wrap;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
828
|
gap: 20px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
829
830
|
.meta-item {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
831
|
font-size: 14px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
832
833
834
|
color: #606266;
display: flex;
align-items: center;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
835
|
gap: 8px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
836
837
838
|
i {
color: #909399;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
839
840
841
842
843
|
font-size: 16px;
}
span {
line-height: 1.5;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
844
845
846
847
848
|
}
}
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
849
|
.header-right {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
850
|
display: flex;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
851
852
853
854
|
flex-direction: column;
align-items: flex-end;
gap: 16px;
flex-shrink: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
855
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
856
857
858
859
|
.header-stats {
display: flex;
gap: 16px;
flex-shrink: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
860
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
861
862
863
864
865
866
867
868
869
|
.stat-card {
min-width: 100px;
padding: 6px 12px;
border-radius: 6px;
border: 1px solid #e4e7ed;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
870
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
871
872
873
874
|
&:hover {
opacity: 0.9;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
875
876
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
877
878
879
880
881
882
|
.stat-label-tag {
font-weight: 600;
font-size: 12px;
padding: 2px 10px;
margin: 0;
flex-shrink: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
883
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
884
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
885
886
887
888
889
890
891
892
893
|
.stat-value {
font-size: 13px;
font-weight: 600;
color: #303133;
white-space: nowrap;
line-height: 1.2;
flex: 1;
min-width: 0;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
894
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
895
896
|
&.stat-primary {
background: #409EFF;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
897
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
898
899
900
901
|
.stat-value {
color: #fff;
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
902
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
903
904
|
&.stat-success {
background: #67C23A;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
905
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
906
907
|
.stat-value {
color: #fff;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
908
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
909
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
910
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
911
912
913
914
915
|
&.stat-info {
background: #909399;
.stat-value {
color: #fff;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
916
917
|
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
918
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
919
920
|
&.stat-warning {
background: #E6A23C;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
921
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
922
923
|
.stat-value {
color: #fff;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
924
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
925
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
926
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
927
928
929
930
931
|
&.stat-default {
background: #606266;
.stat-value {
color: #fff;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
932
933
934
935
|
}
}
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
936
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
|
.member-types-section {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
.member-types-label {
font-size: 13px;
color: #909399;
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
i {
color: #409EFF;
font-size: 14px;
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
956
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
957
|
.member-types-list {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
958
|
display: flex;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
959
|
flex-wrap: wrap;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
960
|
gap: 12px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
961
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
962
963
964
965
966
|
.member-type-badge {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
967
968
|
background: #f8f9fa;
border-radius: 6px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
969
970
|
border: 1px solid #e4e7ed;
transition: all 0.2s ease;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
971
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
972
973
974
975
976
977
978
|
&:hover {
background: #f0f2f5;
border-color: #409EFF;
}
.member-type-tag {
font-weight: 600;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
979
|
font-size: 12px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
980
|
padding: 2px 10px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
981
982
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
983
984
985
986
987
988
989
990
991
992
|
.member-type-date {
font-size: 12px;
color: #909399;
display: flex;
align-items: center;
gap: 4px;
i {
font-size: 12px;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
993
994
995
996
997
998
999
|
}
}
}
}
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1000
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
|
// 选项卡样式
.portrait-tabs {
::v-deep .el-tabs__header {
margin-bottom: 20px;
background: #fff;
padding: 0 20px;
border-radius: 12px;
border: 1px solid #e4e7ed;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
::v-deep .el-tabs__nav-wrap::after {
display: none;
}
::v-deep .el-tabs__item {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1017
|
font-size: 14px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1018
1019
1020
1021
|
font-weight: 500;
padding: 0 24px;
height: 50px;
line-height: 50px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1022
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1023
|
&.is-active {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1024
|
color: #409EFF;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
|
font-weight: 600;
}
}
::v-deep .el-tabs__active-bar {
background-color: #409EFF;
height: 3px;
}
.tab-content {
|
6ec1ef37
李宇
最新
|
1035
1036
|
height: 40vh;
overflow-y: scroll;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
|
.content-card {
background: #fff;
border-radius: 12px;
border: 1px solid #e4e7ed;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
margin-bottom: 20px;
overflow: hidden;
.card-header {
padding: 18px 20px;
background: #f8f9fa;
border-bottom: 1px solid #e4e7ed;
display: flex;
align-items: center;
gap: 8px;
i {
font-size: 18px;
color: #409EFF;
}
.card-title {
font-size: 15px;
font-weight: 600;
color: #303133;
}
}
.card-body {
padding: 20px;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1068
1069
1070
1071
|
}
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1072
|
// 消费行为网格
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1073
1074
1075
|
.behavior-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1076
|
gap: 16px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1077
1078
1079
|
.behavior-item {
background: #f8f9fa;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1080
1081
1082
1083
1084
1085
1086
|
border-radius: 10px;
border: 1px solid #e4e7ed;
padding: 16px;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.3s ease;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1087
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1088
1089
1090
1091
|
&:hover {
background: #fff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1092
1093
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
|
.behavior-icon {
width: 40px;
height: 40px;
border-radius: 8px;
background: #409EFF;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 18px;
flex-shrink: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1105
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1106
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1107
1108
1109
|
.behavior-content {
flex: 1;
min-width: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1110
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1111
1112
1113
1114
1115
|
.behavior-label {
font-size: 12px;
color: #909399;
margin-bottom: 6px;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1116
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1117
1118
1119
1120
1121
1122
1123
1124
|
.behavior-value {
font-size: 15px;
color: #303133;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1125
1126
1127
1128
|
}
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
|
// 消费分析布局
.analysis-layout {
display: flex;
gap: 20px;
flex-wrap: wrap;
.analysis-item {
flex: 1;
min-width: 200px;
background: #f8f9fa;
border-radius: 10px;
border: 1px solid #e4e7ed;
padding: 16px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1142
|
display: flex;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1143
1144
1145
|
align-items: center;
gap: 12px;
transition: all 0.3s ease;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1146
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1147
1148
1149
1150
|
&:hover {
background: #fff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1151
1152
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
|
.analysis-icon {
width: 40px;
height: 40px;
border-radius: 8px;
background: #67C23A;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 18px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1163
1164
1165
|
flex-shrink: 0;
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1166
|
.analysis-content {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1167
|
flex: 1;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
|
min-width: 0;
.analysis-label {
font-size: 12px;
color: #909399;
margin-bottom: 6px;
}
.analysis-value {
font-size: 15px;
color: #303133;
font-weight: 600;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1181
1182
1183
1184
|
}
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1185
|
// 趋势图
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1186
1187
|
.trend-chart {
width: 100%;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1188
|
height: 400px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1189
1190
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1191
|
// 分页
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1192
1193
1194
|
.pagination-bar {
display: flex;
justify-content: flex-end;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1195
1196
1197
|
padding: 16px 0 0 0;
margin-top: 16px;
border-top: 1px solid #e4e7ed;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1198
1199
1200
1201
1202
1203
1204
1205
|
}
.text-muted {
color: #909399;
font-size: 13px;
}
}
</style>
|