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">
|
747ab6fb
“wangming”
feat: update memb...
|
5
6
7
8
|
<!-- 中部:左右分栏(参考个人档案排版) -->
<div class="portrait-main-panel">
<!-- 左侧:头像 + 姓名 + 关键信息 + 操作 -->
<div class="panel-left">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
9
10
11
|
<div class="avatar-circle">
<i class="el-icon-user-solid"></i>
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
12
13
14
15
16
17
18
|
<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 class="left-meta">
<div class="meta-row">档案号:{{ baseInfo.MemberCode || '无' }}</div>
<div class="meta-row phone">手机号:{{ baseInfo.Mobile || '无' }}</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
19
|
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
20
21
22
|
<el-button type="primary" size="small" icon="el-icon-edit" class="btn-edit" @click="handleEdit">
修改资料
</el-button>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
23
|
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<!-- 右侧:3 列属性网格 -->
<div class="panel-right">
<div class="attr-grid">
<div class="attr-item"><span class="attr-label">性别:</span><span class="attr-value">{{ baseInfo.Gender || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">年龄:</span><span class="attr-value">{{ getDisplayAge() }}</span></div>
<div class="attr-item"><span class="attr-label">客户类型:</span><span class="attr-value">{{ baseInfo.CustomerTypeName || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">归属门店:</span><span class="attr-value">{{ baseInfo.StoreName || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">进店渠道:</span><span class="attr-value">{{ baseInfo.Channel || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">注册时间:</span><span class="attr-value">{{ formatDate(baseInfo.RegisterTime) || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">生日:</span><span class="attr-value">{{ formatBirthdayDisplay() }}</span></div>
<div class="attr-item"><span class="attr-label">沉睡天数:</span>
<el-tag :type="baseInfo.SleepDays > 30 ? 'warning' : 'info'" size="mini">{{ baseInfo.SleepDays || 0 }} 天</el-tag>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
37
|
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
38
39
40
41
42
43
44
45
46
47
48
|
<div class="attr-item"><span class="attr-label">剩余权益:</span><span class="attr-value highlight primary">¥{{ formatMoney(behaviorSummary.RemainingRightsAmount) }}</span></div>
<div class="attr-item"><span class="attr-label">累计开单:</span><span class="attr-value highlight">¥{{ formatMoney(behaviorSummary.TotalBillingAmount) }}</span></div>
<div class="attr-item"><span class="attr-label">累计消耗:</span><span class="attr-value highlight">¥{{ formatMoney(behaviorSummary.TotalConsumeAmount) }}</span></div>
<div class="attr-item"><span class="attr-label">推荐人:</span><span class="attr-value">{{ baseInfo.ReferrerName || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">拓客人员:</span><span class="attr-value">{{ baseInfo.ExpandUserName || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">主健康师:</span><span class="attr-value">{{ baseInfo.MainHealthUserName || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">负责顾问:</span><span class="attr-value">{{ baseInfo.SubHealthUserName || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">首次到店:</span><span class="attr-value">{{ formatDateTime(baseInfo.FirstVisitTime) || '无' }}</span></div>
<div class="attr-item"><span class="attr-label">最后到店:</span><span class="attr-value">{{ formatDateTime(baseInfo.LastVisitTime) || '无' }}</span></div>
<div class="attr-item attr-item-full"><span class="attr-label">联系地址:</span><span class="attr-value">{{ baseInfo.Address || '无' }}</span></div>
<div class="attr-item attr-item-full"><span class="attr-label">备注:</span><span class="attr-value">{{ baseInfo.Remark || '无' }}</span></div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
49
|
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
50
51
52
53
54
55
|
<!-- 会员类型标签 -->
<div v-if="baseInfo.MemberTypes && baseInfo.MemberTypes.length > 0" class="member-types-row">
<span v-for="type in baseInfo.MemberTypes" :key="type.TypeName" class="member-type-wrap">
<el-tag :type="getMemberTypeTagType(type.TypeName)" size="small">{{ type.TypeName }}会员</el-tag>
<span v-if="type.BecomeTime" class="type-date">{{ formatDate(type.BecomeTime) }}</span>
</span>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
56
57
58
59
60
61
|
</div>
</div>
</div>
<!-- 选项卡内容 -->
<el-tabs v-model="activeTab" class="portrait-tabs">
|
747ab6fb
“wangming”
feat: update memb...
|
62
|
<!-- 概览:消费行为、趋势、分析(个人档案已在顶部面板展示) -->
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
63
|
<el-tab-pane label="概览" name="overview">
|
747ab6fb
“wangming”
feat: update memb...
|
64
|
<div class="tab-content profile-layout">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
65
|
<!-- 消费行为 -->
|
747ab6fb
“wangming”
feat: update memb...
|
66
67
|
<div class="detail-section">
<div class="section-title">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
68
|
<i class="el-icon-shopping-cart-full"></i>
|
747ab6fb
“wangming”
feat: update memb...
|
69
|
<span>消费行为</span>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
70
|
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
71
|
<div class="section-content">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
72
73
74
75
76
77
78
79
80
81
82
83
84
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
|
<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: 完善会员画像功能,优化...
|
154
155
156
157
|
</div>
</div>
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
158
159
160
|
<!-- 近12个月消费趋势 -->
<div class="detail-section">
<div class="section-title">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
161
|
<i class="el-icon-data-line"></i>
|
747ab6fb
“wangming”
feat: update memb...
|
162
|
<span>近12个月消费趋势</span>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
163
|
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
164
|
<div class="section-content">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
165
|
<div ref="trendChart" class="trend-chart"></div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
166
|
</div>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
167
168
169
|
</div>
<!-- 消费分析 -->
|
747ab6fb
“wangming”
feat: update memb...
|
170
171
|
<div v-if="consumptionAnalysis" class="detail-section">
<div class="section-title">
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
172
|
<i class="el-icon-data-analysis"></i>
|
747ab6fb
“wangming”
feat: update memb...
|
173
|
<span>消费分析</span>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
174
|
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
175
|
<div class="section-content">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
<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: 完善会员画像功能,优化...
|
207
208
209
210
211
212
213
214
215
|
</div>
</div>
</div>
</div>
</div>
</el-tab-pane>
<!-- 权益明细 -->
<el-tab-pane label="权益明细" name="assets">
|
747ab6fb
“wangming”
feat: update memb...
|
216
217
218
219
220
|
<div class="tab-content tab-content-direct">
<el-table :data="remainingItems" size="small" border stripe :default-sort="{ prop: 'RemainingValue', order: 'descending' }">
<el-table-column prop="ItemName" label="品项名称" min-width="140" sortable />
<el-table-column prop="SourceType" label="来源类型" width="90" sortable />
<el-table-column prop="UnitPrice" label="单价" width="90" sortable :sort-method="sortNumber('UnitPrice')">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
221
222
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.UnitPrice) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
223
224
225
226
227
228
|
<el-table-column prop="TotalQuantity" label="总数量" width="80" sortable :sort-method="sortNumber('TotalQuantity')" />
<el-table-column prop="ConsumedQuantity" label="已消费" width="80" sortable :sort-method="sortNumber('ConsumedQuantity')" />
<el-table-column prop="RefundedQuantity" label="已退款" width="80" sortable :sort-method="sortNumber('RefundedQuantity')" />
<el-table-column prop="DeductedQuantity" label="已扣除" width="80" sortable :sort-method="sortNumber('DeductedQuantity')" />
<el-table-column prop="RemainingQuantity" label="剩余" width="80" sortable :sort-method="sortNumber('RemainingQuantity')" />
<el-table-column prop="RemainingValue" label="剩余价值" width="120" sortable :sort-method="sortNumber('RemainingValue')">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
229
230
231
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.RemainingValue) }}</template>
</el-table-column>
</el-table>
|
747ab6fb
“wangming”
feat: update memb...
|
232
233
234
|
</div>
</el-tab-pane>
|
7606a6ad
“wangming”
fix: update produ...
|
235
236
|
<!-- 沟通记录 -->
<el-tab-pane label="沟通记录" name="invite">
|
747ab6fb
“wangming”
feat: update memb...
|
237
238
|
<div class="tab-content tab-content-direct">
<el-table v-loading="inviteLoading" :data="inviteList" size="small" border stripe>
|
7606a6ad
“wangming”
fix: update produ...
|
239
|
<el-table-column prop="InviteDate" label="沟通时间" width="160">
|
747ab6fb
“wangming”
feat: update memb...
|
240
241
242
|
<template slot-scope="scope">{{ formatDateTime(scope.row.InviteDate) }}</template>
</el-table-column>
<el-table-column prop="StoreName" label="门店" width="120" />
|
7606a6ad
“wangming”
fix: update produ...
|
243
|
<el-table-column prop="InviterName" label="沟通人" width="100" />
|
747ab6fb
“wangming”
feat: update memb...
|
244
245
246
247
248
249
250
251
252
253
254
|
<el-table-column prop="ContactTime" label="联系时间" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.ContactTime) }}</template>
</el-table-column>
<el-table-column prop="ContactRecord" label="联系记录" min-width="200" show-overflow-tooltip />
<el-table-column prop="PhoneValid" label="电话有效" width="90" />
</el-table>
<div class="pagination-bar">
<el-pagination layout="total, sizes, prev, pager, next" :page-sizes="[10, 20, 50]"
:total="invitePagination.total" :current-page="invitePagination.pageIndex"
:page-size="invitePagination.pageSize" @size-change="handleInviteSizeChange"
@current-change="handleInvitePageChange" />
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
255
256
257
258
|
</div>
</div>
</el-tab-pane>
|
747ab6fb
“wangming”
feat: update memb...
|
259
260
261
262
263
264
265
266
|
<!-- 预约记录 -->
<el-tab-pane label="预约记录" name="appointment">
<div class="tab-content tab-content-direct">
<el-table v-loading="appointmentLoading" :data="appointmentList" size="small" border stripe>
<el-table-column prop="AppointmentDate" label="预约时间" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.AppointmentDate) }}</template>
</el-table-column>
<el-table-column prop="StoreName" label="门店" width="120" />
|
7606a6ad
“wangming”
fix: update produ...
|
267
|
<el-table-column prop="InviterName" label="沟通人" width="100" />
|
747ab6fb
“wangming”
feat: update memb...
|
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
|
<el-table-column prop="HealthCoachName" label="预约健康师" width="100" />
<el-table-column prop="ExperienceItem" label="体验项目" min-width="120" show-overflow-tooltip />
<el-table-column prop="Status" label="状态" width="80" />
<el-table-column prop="NoDealRemark" label="未成交说明" min-width="150" show-overflow-tooltip />
</el-table>
<div class="pagination-bar">
<el-pagination layout="total, sizes, prev, pager, next" :page-sizes="[10, 20, 50]"
:total="appointmentPagination.total" :current-page="appointmentPagination.pageIndex"
:page-size="appointmentPagination.pageSize" @size-change="handleAppointmentSizeChange"
@current-change="handleAppointmentPageChange" />
</div>
</div>
</el-tab-pane>
<!-- 开单记录 -->
<el-tab-pane label="开单记录" name="billing">
<div class="tab-content tab-content-direct">
<el-table v-loading="billingLoading" :data="billingList" size="small" border stripe>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
286
287
288
|
<el-table-column prop="BillingDate" label="开单日期" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.BillingDate) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
289
290
291
292
293
294
|
<el-table-column prop="StoreName" label="门店" width="100" />
<el-table-column prop="CreatorName" label="开单人员" width="90" show-overflow-tooltip />
<el-table-column prop="HealthCoachNames" label="健康师" width="100" show-overflow-tooltip />
<el-table-column prop="TechTeacherNames" label="科技老师" width="100" show-overflow-tooltip />
<el-table-column prop="Items" label="开单品项" min-width="180" show-overflow-tooltip />
<el-table-column prop="Amount" label="实付金额" width="90">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
295
296
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.Amount) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
297
|
<el-table-column prop="DebtAmount" label="欠款金额" width="90">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
298
299
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.DebtAmount) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
300
|
<el-table-column prop="ActivityName" label="活动名称" width="100" show-overflow-tooltip />
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
301
|
</el-table>
|
747ab6fb
“wangming”
feat: update memb...
|
302
303
304
305
306
|
<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" />
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
307
308
309
310
|
</div>
</div>
</el-tab-pane>
|
747ab6fb
“wangming”
feat: update memb...
|
311
312
313
314
315
|
<!-- 消耗记录 -->
<el-tab-pane label="消耗记录" name="consume">
<div class="tab-content tab-content-direct">
<el-table v-loading="consumeLoading" :data="consumeList" size="small" border stripe>
<el-table-column prop="ConsumeDate" label="消耗日期" width="160">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
316
317
|
<template slot-scope="scope">{{ formatDateTime(scope.row.ConsumeDate) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
318
319
320
321
322
323
|
<el-table-column prop="StoreName" label="门店" width="100" />
<el-table-column prop="OperatorName" label="操作人员" width="90" show-overflow-tooltip />
<el-table-column prop="HealthCoachNames" label="健康师" width="100" show-overflow-tooltip />
<el-table-column prop="TechTeacherNames" label="科技老师" width="100" show-overflow-tooltip />
<el-table-column prop="Items" label="消耗品项" min-width="180" show-overflow-tooltip />
<el-table-column prop="Amount" label="消耗金额" width="90">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
324
325
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.Amount) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
326
|
<el-table-column prop="LaborCost" label="手工费" width="90">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
327
328
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.LaborCost) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
329
330
331
332
333
334
335
336
337
|
<el-table-column label="操作" width="100" align="left" fixed="right">
<template slot-scope="scope">
<el-button v-if="scope.row.HasServiceLog" type="text" size="small" icon="el-icon-document"
@click="showConsumeServiceLog(scope.row.Id)">
查看日志
</el-button>
<span v-else class="text-muted">—</span>
</template>
</el-table-column>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
338
|
</el-table>
|
747ab6fb
“wangming”
feat: update memb...
|
339
340
341
342
343
344
345
346
347
348
349
350
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
|
<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>
</el-tab-pane>
<!-- 服务日志 -->
<el-tab-pane label="服务日志" name="serviceLog">
<div class="tab-content tab-content-direct">
<el-table v-loading="serviceLogLoading" :data="serviceLogList" size="small" border stripe>
<el-table-column prop="CreateTime" label="记录时间" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.CreateTime) }}</template>
</el-table-column>
<el-table-column prop="CreatorName" label="添加人" width="100" />
<el-table-column prop="Remark" label="备注" min-width="200" show-overflow-tooltip />
<el-table-column prop="KjbRemark" label="科技部备注" min-width="120" show-overflow-tooltip />
<el-table-column label="操作" width="100" align="left">
<template slot-scope="scope">
<el-button v-if="hasServiceLogImages(scope.row)" type="text" size="small" icon="el-icon-picture-outline" @click="showServiceLogImages(scope.row)">
查看图片
</el-button>
<span v-else class="text-muted">—</span>
</template>
</el-table-column>
</el-table>
<div class="pagination-bar">
<el-pagination layout="total, sizes, prev, pager, next" :page-sizes="[10, 20, 50]"
:total="serviceLogPagination.total" :current-page="serviceLogPagination.pageIndex"
:page-size="serviceLogPagination.pageSize" @size-change="handleServiceLogSizeChange"
@current-change="handleServiceLogPageChange" />
</div>
</div>
</el-tab-pane>
<!-- 旧日志(历史开单记录) -->
<el-tab-pane label="旧日志" name="oldLog">
<div class="tab-content tab-content-direct">
<el-table v-loading="oldLogLoading" :data="oldLogList" size="small" border stripe>
<el-table-column label="记录时间" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.createTime || scope.row.CreateTime) }}</template>
</el-table-column>
<el-table-column label="开单号" width="140" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.orderNo || scope.row.OrderNo || '无' }}</template>
</el-table-column>
<el-table-column label="会员名称" width="100" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.memberName || scope.row.MemberName || '无' }}</template>
</el-table-column>
<el-table-column label="备注" min-width="280" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.remarks || scope.row.Remarks || '无' }}</template>
</el-table-column>
<el-table-column label="操作" width="100" align="left">
<template slot-scope="scope">
<el-button v-if="hasOldLogImage(scope.row)" type="text" size="small" icon="el-icon-picture-outline" @click="showOldLogImages(scope.row)">
查看图片
</el-button>
<span v-else class="text-muted">—</span>
</template>
</el-table-column>
</el-table>
<div class="pagination-bar">
<el-pagination layout="total, sizes, prev, pager, next" :page-sizes="[10, 20, 50]"
:total="oldLogPagination.total" :current-page="oldLogPagination.pageIndex"
:page-size="oldLogPagination.pageSize" @size-change="handleOldLogSizeChange"
@current-change="handleOldLogPageChange" />
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
406
407
408
409
410
411
|
</div>
</div>
</el-tab-pane>
<!-- 退卡列表 -->
<el-tab-pane label="退卡列表" name="refund">
|
747ab6fb
“wangming”
feat: update memb...
|
412
413
|
<div class="tab-content tab-content-direct">
<el-table v-loading="refundLoading" :data="refundList" size="small" border stripe>
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
414
415
416
|
<el-table-column prop="RefundDate" label="退卡日期" width="160">
<template slot-scope="scope">{{ formatDateTime(scope.row.RefundDate) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
417
418
|
<el-table-column prop="StoreName" label="门店" width="120" />
<el-table-column prop="RefundAmount" label="退卡金额" width="100">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
419
420
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.RefundAmount) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
421
|
<el-table-column prop="ActualRefundAmount" label="实际退款" width="100">
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
422
423
|
<template slot-scope="scope">¥{{ formatMoney(scope.row.ActualRefundAmount) }}</template>
</el-table-column>
|
747ab6fb
“wangming”
feat: update memb...
|
424
|
<el-table-column prop="RefundReason" label="退卡原因" min-width="150" show-overflow-tooltip />
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
425
|
</el-table>
|
747ab6fb
“wangming”
feat: update memb...
|
426
427
428
429
430
|
<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" />
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
431
432
433
434
435
|
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
|
747ab6fb
“wangming”
feat: update memb...
|
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
|
<!-- 服务日志图片预览弹窗 -->
<el-dialog title="服务日志图片" :visible.sync="serviceLogImageVisible" width="900px" append-to-body
custom-class="service-log-image-dialog" @closed="serviceLogImageRow = null">
<div v-if="serviceLogImageRow" class="image-preview-content">
<div class="preview-header">
<span class="preview-meta"><i class="el-icon-time"></i> {{ formatDateTime(serviceLogImageRow.CreateTime) }}</span>
<span class="preview-meta"><i class="el-icon-user"></i> {{ serviceLogImageRow.CreatorName || '—' }}</span>
</div>
<div class="preview-row">
<div class="image-section">
<div class="image-section-title"><i class="el-icon-picture-outline"></i> 服务前</div>
<div class="image-list">
<template v-if="parseServiceLogImages(serviceLogImageRow.BeforeImage).length > 0">
<el-image v-for="(img, idx) in parseServiceLogImages(serviceLogImageRow.BeforeImage)" :key="'b-' + idx"
:src="getServiceLogImageUrl(img)" :preview-src-list="getServiceLogPreviewList(serviceLogImageRow.BeforeImage)"
fit="contain" class="preview-img" />
</template>
<div v-else class="image-placeholder">
<i class="el-icon-picture-outline"></i>
<span>暂无图片</span>
</div>
</div>
</div>
<div class="image-section">
<div class="image-section-title"><i class="el-icon-picture-outline"></i> 服务后</div>
<div class="image-list">
<template v-if="parseServiceLogImages(serviceLogImageRow.AfterImage).length > 0">
<el-image v-for="(img, idx) in parseServiceLogImages(serviceLogImageRow.AfterImage)" :key="'a-' + idx"
:src="getServiceLogImageUrl(img)" :preview-src-list="getServiceLogPreviewList(serviceLogImageRow.AfterImage)"
fit="contain" class="preview-img" />
</template>
<div v-else class="image-placeholder">
<i class="el-icon-picture-outline"></i>
<span>暂无图片</span>
</div>
</div>
</div>
</div>
<div v-if="serviceLogImageRow.Remark" class="preview-remark">
<span class="remark-label">备注:</span>{{ serviceLogImageRow.Remark }}
</div>
</div>
</el-dialog>
<!-- 旧日志-图片预览弹窗 -->
<el-dialog title="旧日志图片" :visible.sync="oldLogImageVisible" width="800px" append-to-body
custom-class="old-log-image-dialog" @closed="oldLogImageUrls = []">
<div v-if="oldLogImageUrls.length > 0" class="old-log-image-content">
<el-image v-for="(url, idx) in oldLogImageUrls" :key="idx"
:src="url" :preview-src-list="oldLogImageUrls" :initial-index="idx"
fit="contain" class="old-log-preview-img" />
</div>
</el-dialog>
<!-- 消耗记录-服务日志弹窗(与服务日志tab的查看图片弹窗同款样式) -->
<el-dialog title="服务日志" :visible.sync="consumeServiceLogVisible" width="900px" append-to-body
custom-class="service-log-image-dialog" @closed="consumeServiceLogList = []">
<div v-loading="consumeServiceLogLoading" class="consume-service-log-content">
<div v-if="consumeServiceLogList.length === 0 && !consumeServiceLogLoading" class="no-data">
<el-empty description="暂无服务日志数据"></el-empty>
</div>
<div v-else class="log-list">
<div v-for="(row, idx) in consumeServiceLogList" :key="row.Id || idx" class="image-preview-content log-item">
<div class="preview-header">
<span class="preview-meta"><i class="el-icon-time"></i> {{ formatDateTime(row.CreateTime) }}</span>
<span class="preview-meta"><i class="el-icon-user"></i> {{ row.CreatorName || '—' }}</span>
</div>
<div class="preview-row">
<div class="image-section">
<div class="image-section-title"><i class="el-icon-picture-outline"></i> 服务前</div>
<div class="image-list">
<template v-if="parseServiceLogImages(row.BeforeImage).length > 0">
<el-image v-for="(img, i) in parseServiceLogImages(row.BeforeImage)" :key="'b-' + i"
:src="getServiceLogImageUrl(img)" :preview-src-list="getServiceLogPreviewList(row.BeforeImage)"
fit="contain" class="preview-img" />
</template>
<div v-else class="image-placeholder">
<i class="el-icon-picture-outline"></i>
<span>暂无图片</span>
</div>
</div>
</div>
<div class="image-section">
<div class="image-section-title"><i class="el-icon-picture-outline"></i> 服务后</div>
<div class="image-list">
<template v-if="parseServiceLogImages(row.AfterImage).length > 0">
<el-image v-for="(img, i) in parseServiceLogImages(row.AfterImage)" :key="'a-' + i"
:src="getServiceLogImageUrl(img)" :preview-src-list="getServiceLogPreviewList(row.AfterImage)"
fit="contain" class="preview-img" />
</template>
<div v-else class="image-placeholder">
<i class="el-icon-picture-outline"></i>
<span>暂无图片</span>
</div>
</div>
</div>
</div>
<div v-if="row.Remark" class="preview-remark">
<span class="remark-label">备注:</span>{{ row.Remark }}
</div>
<div v-if="row.KjbRemark" class="preview-remark">
<span class="remark-label">科技部备注:</span>{{ row.KjbRemark }}
</div>
</div>
</div>
</div>
</el-dialog>
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
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
|
</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
|
747ab6fb
“wangming”
feat: update memb...
|
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
|
},
// 预约记录
appointmentList: [],
appointmentLoading: false,
appointmentPagination: { pageIndex: 1, pageSize: 10, total: 0 },
// 邀约记录
inviteList: [],
inviteLoading: false,
invitePagination: { pageIndex: 1, pageSize: 10, total: 0 },
// 服务日志
serviceLogList: [],
serviceLogLoading: false,
serviceLogPagination: { pageIndex: 1, pageSize: 10, total: 0 },
// 旧日志
oldLogList: [],
oldLogLoading: false,
oldLogPagination: { pageIndex: 1, pageSize: 10, total: 0 },
// 服务日志图片预览
serviceLogImageVisible: false,
serviceLogImageRow: null,
// 消耗记录-服务日志弹窗(与服务日志tab同款)
consumeServiceLogVisible: false,
consumeServiceLogList: [],
consumeServiceLogLoading: false,
// 旧日志-图片预览
oldLogImageVisible: false,
oldLogImageUrls: []
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
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
|
}
},
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()
|
747ab6fb
“wangming”
feat: update memb...
|
644
645
646
647
648
649
650
651
|
} else if (newVal === 'appointment' && this.appointmentList.length === 0) {
this.fetchAppointmentList()
} else if (newVal === 'invite' && this.inviteList.length === 0) {
this.fetchInviteList()
} else if (newVal === 'serviceLog' && this.serviceLogList.length === 0) {
this.fetchServiceLogList()
} else if (newVal === 'oldLog') {
this.fetchOldLogList()
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
652
653
654
655
|
}
}
},
methods: {
|
f84588f8
“wangming”
feat: add remaini...
|
656
657
658
659
660
661
662
663
664
665
666
667
668
|
/** 重置所有数据,避免二次进入时显示旧数据 */
resetData() {
this.baseInfo = {}
this.behaviorSummary = {}
this.remainingItems = []
this.monthlyTrend = []
this.consumptionAnalysis = null
this.billingList = []
this.billingPagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.consumeList = []
this.consumePagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.refundList = []
this.refundPagination = { pageIndex: 1, pageSize: 10, total: 0 }
|
747ab6fb
“wangming”
feat: update memb...
|
669
670
671
672
673
674
675
676
|
this.appointmentList = []
this.appointmentPagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.inviteList = []
this.invitePagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.serviceLogList = []
this.serviceLogPagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.oldLogList = []
this.oldLogPagination = { pageIndex: 1, pageSize: 10, total: 0 }
|
f84588f8
“wangming”
feat: add remaini...
|
677
678
|
this.activeTab = 'overview'
},
|
747ab6fb
“wangming”
feat: update memb...
|
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
|
/** 年龄显示:优先用后端返回的 Age,否则根据阳历生日计算 */
getDisplayAge() {
const info = this.baseInfo
if (!info) return '无'
let age = info.Age
if (age == null && info.Yanglsr) {
const birth = new Date(info.Yanglsr)
if (!isNaN(birth.getTime())) {
const now = new Date()
age = now.getFullYear() - birth.getFullYear()
if (now.getMonth() < birth.getMonth() || (now.getMonth() === birth.getMonth() && now.getDate() < birth.getDate())) {
age--
}
}
}
return age != null ? age + '岁' : '无'
},
/** 修改资料:关闭画像并触发父组件打开编辑 */
handleEdit() {
this.$emit('edit', this.memberId)
this.$emit('update:visible', false)
},
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
701
702
703
704
705
706
|
async fetchData() {
if (!this.memberId) {
this.$message.warning('会员ID不能为空')
return
}
|
f84588f8
“wangming”
feat: add remaini...
|
707
708
709
710
711
712
713
|
// 切换会员时清空列表数据,避免显示上一次的列表
this.billingList = []
this.billingPagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.consumeList = []
this.consumePagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.refundList = []
this.refundPagination = { pageIndex: 1, pageSize: 10, total: 0 }
|
747ab6fb
“wangming”
feat: update memb...
|
714
715
716
717
718
719
720
721
|
this.appointmentList = []
this.appointmentPagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.inviteList = []
this.invitePagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.serviceLogList = []
this.serviceLogPagination = { pageIndex: 1, pageSize: 10, total: 0 }
this.oldLogList = []
this.oldLogPagination = { pageIndex: 1, pageSize: 10, total: 0 }
|
f84588f8
“wangming”
feat: add remaini...
|
722
|
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
723
724
725
726
727
|
this.loading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/overview',
method: 'GET',
|
747ab6fb
“wangming”
feat: update memb...
|
728
|
data: { memberId: this.memberId }
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
|
})
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',
|
747ab6fb
“wangming”
feat: update memb...
|
759
|
data: {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
|
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',
|
747ab6fb
“wangming”
feat: update memb...
|
787
|
data: {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
|
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',
|
747ab6fb
“wangming”
feat: update memb...
|
815
|
data: {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
|
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()
},
|
747ab6fb
“wangming”
feat: update memb...
|
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
|
async fetchAppointmentList() {
if (!this.memberId) return
this.appointmentLoading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/appointment-list',
method: 'GET',
data: {
memberId: this.memberId,
pageIndex: this.appointmentPagination.pageIndex,
pageSize: this.appointmentPagination.pageSize
}
})
if (res.code === 200 && res.data) {
this.appointmentList = res.data.List || []
this.appointmentPagination.total = res.data.Total || 0
} else {
this.$message.error(res.msg || '获取预约记录失败')
}
} catch (error) {
console.error('获取预约记录失败:', error)
this.$message.error('获取预约记录失败: ' + (error.message || '未知错误'))
} finally {
this.appointmentLoading = false
}
},
handleAppointmentPageChange(page) {
this.appointmentPagination.pageIndex = page
this.fetchAppointmentList()
},
handleAppointmentSizeChange(size) {
this.appointmentPagination.pageSize = size
this.appointmentPagination.pageIndex = 1
this.fetchAppointmentList()
},
async fetchInviteList() {
if (!this.memberId) return
this.inviteLoading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/invite-list',
method: 'GET',
data: {
memberId: this.memberId,
pageIndex: this.invitePagination.pageIndex,
pageSize: this.invitePagination.pageSize
}
})
if (res.code === 200 && res.data) {
this.inviteList = res.data.List || []
this.invitePagination.total = res.data.Total || 0
} else {
|
7606a6ad
“wangming”
fix: update produ...
|
914
|
this.$message.error(res.msg || '获取沟通记录失败')
|
747ab6fb
“wangming”
feat: update memb...
|
915
916
|
}
} catch (error) {
|
7606a6ad
“wangming”
fix: update produ...
|
917
918
|
console.error('获取沟通记录失败:', error)
this.$message.error('获取沟通记录失败: ' + (error.message || '未知错误'))
|
747ab6fb
“wangming”
feat: update memb...
|
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
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
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
|
} finally {
this.inviteLoading = false
}
},
handleInvitePageChange(page) {
this.invitePagination.pageIndex = page
this.fetchInviteList()
},
handleInviteSizeChange(size) {
this.invitePagination.pageSize = size
this.invitePagination.pageIndex = 1
this.fetchInviteList()
},
async fetchServiceLogList() {
if (!this.memberId) return
this.serviceLogLoading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/service-log-list',
method: 'GET',
data: {
memberId: this.memberId,
pageIndex: this.serviceLogPagination.pageIndex,
pageSize: this.serviceLogPagination.pageSize
}
})
if (res.code === 200 && res.data) {
this.serviceLogList = res.data.List || []
this.serviceLogPagination.total = res.data.Total || 0
} else {
this.$message.error(res.msg || '获取服务日志失败')
}
} catch (error) {
console.error('获取服务日志失败:', error)
this.$message.error('获取服务日志失败: ' + (error.message || '未知错误'))
} finally {
this.serviceLogLoading = false
}
},
handleServiceLogPageChange(page) {
this.serviceLogPagination.pageIndex = page
this.fetchServiceLogList()
},
handleServiceLogSizeChange(size) {
this.serviceLogPagination.pageSize = size
this.serviceLogPagination.pageIndex = 1
this.fetchServiceLogList()
},
async fetchOldLogList() {
const memberCode = this.baseInfo.MemberCode || ''
const mobile = this.baseInfo.Mobile || ''
if (!memberCode && !mobile) {
this.$message.warning('会员编号和手机号均无,无法查询旧日志')
return
}
this.oldLogLoading = true
try {
const res = await request({
url: '/api/Extend/MemberPortrait/old-log-list',
method: 'GET',
data: {
memberCode,
mobile,
pageIndex: this.oldLogPagination.pageIndex,
pageSize: this.oldLogPagination.pageSize
}
})
if (res.code === 200 && res.data) {
const list = res.data.List || res.data.list || []
const total = (res.data.Total != null ? res.data.Total : res.data.total) || 0
this.oldLogList = list
this.oldLogPagination.total = total
// 调试:输出接口返回数据
console.log('[旧日志] 接口返回:', { data: res.data, list, total, firstItem: list[0] })
} else {
this.$message.error(res.msg || '获取旧日志失败')
}
} catch (error) {
console.error('获取旧日志失败:', error)
this.$message.error('获取旧日志失败: ' + (error.message || '未知错误'))
} finally {
this.oldLogLoading = false
}
},
handleOldLogPageChange(page) {
this.oldLogPagination.pageIndex = page
this.fetchOldLogList()
},
handleOldLogSizeChange(size) {
this.oldLogPagination.pageSize = size
this.oldLogPagination.pageIndex = 1
this.fetchOldLogList()
},
showServiceLogImages(row) {
this.serviceLogImageRow = row
this.serviceLogImageVisible = true
},
async showConsumeServiceLog(consumeId) {
this.consumeServiceLogVisible = true
this.consumeServiceLogLoading = true
this.consumeServiceLogList = []
try {
const res = await request({
url: `/api/Extend/lqxhfeedback/GetByConsumeId/${consumeId}`,
method: 'GET'
})
if (res.code === 200 && res.data) {
const list = Array.isArray(res.data) ? res.data : []
this.consumeServiceLogList = list.map(item => ({
Id: item.id,
CreateTime: item.createTime,
CreatorName: item.createUserName,
Remark: item.remark,
KjbRemark: item.kjbRemark,
BeforeImage: item.beforeImage,
AfterImage: item.afterImage
}))
}
} catch (error) {
console.error('获取服务日志失败:', error)
this.$message.error('获取服务日志失败')
} finally {
this.consumeServiceLogLoading = false
}
},
parseServiceLogImages(imageStr) {
if (!imageStr) return []
try {
const arr = typeof imageStr === 'string' ? JSON.parse(imageStr) : imageStr
return Array.isArray(arr) ? arr : []
} catch {
return []
}
},
getServiceLogImageUrl(img) {
if (!img || !img.url) return ''
const url = img.url
if (url.startsWith('http://') || url.startsWith('https://')) return url
const base = process.env.VUE_APP_IMG_API || process.env.VUE_APP_BASE_API || ''
return base ? (base.replace(/\/$/, '') + (url.startsWith('/') ? url : '/' + url)) : url
},
getServiceLogPreviewList(imageStr) {
return this.parseServiceLogImages(imageStr).map(img => this.getServiceLogImageUrl(img)).filter(Boolean)
},
hasServiceLogImages(row) {
const before = this.parseServiceLogImages(row && row.BeforeImage).length
const after = this.parseServiceLogImages(row && row.AfterImage).length
return before > 0 || after > 0
},
hasOldLogImage(row) {
const name = row && (row.imageName || row.ImageName)
if (!name || typeof name !== 'string') return false
return name.split(';').filter(s => s && s.trim()).length > 0
},
parseOldLogImageUrls(imageStr) {
if (!imageStr || typeof imageStr !== 'string') return []
return imageStr.split(';').map(s => s.trim()).filter(Boolean)
},
showOldLogImages(row) {
const urls = this.parseOldLogImageUrls(row && (row.imageName || row.ImageName))
if (urls.length === 0) return
this.oldLogImageUrls = urls
this.oldLogImageVisible = true
},
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
|
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)
},
|
747ab6fb
“wangming”
feat: update memb...
|
1163
1164
1165
1166
1167
1168
1169
|
sortNumber(prop) {
return (a, b) => {
const va = Number(a[prop]) || 0
const vb = Number(b[prop]) || 0
return va - vb
}
},
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1170
1171
|
formatDateTime(timestamp) {
if (!timestamp) return '无'
|
747ab6fb
“wangming”
feat: update memb...
|
1172
1173
|
const date = typeof timestamp === 'number' ? new Date(timestamp) : new Date(timestamp)
if (!isNaN(date.getTime())) {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
|
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 ''
|
747ab6fb
“wangming”
feat: update memb...
|
1186
1187
|
const date = typeof timestamp === 'number' ? new Date(timestamp) : new Date(timestamp)
if (!isNaN(date.getTime())) {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1188
1189
1190
1191
1192
1193
1194
1195
|
return date.toLocaleDateString('zh-CN', {
year: 'numeric',
month: '2-digit',
day: '2-digit'
})
}
return timestamp
},
|
747ab6fb
“wangming”
feat: update memb...
|
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
|
formatBirthdayDisplay() {
const info = this.baseInfo
if (!info) return '无'
if (info.BirthdayType === 1 && info.Yinlsr) return `${info.BirthdayTypeName || '农历'} ${info.Yinlsr}`
if (info.Yanglsr) {
const d = new Date(info.Yanglsr)
if (!isNaN(d.getTime())) return `${info.BirthdayTypeName || '阳历'} ${d.getFullYear()}年${d.getMonth() + 1}月${d.getDate()}日`
}
if (info.Yinlsr) return `农历 ${info.Yinlsr}`
return '无'
},
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1207
1208
|
getConsumeLevelText(level) {
const levelMap = {
|
747ab6fb
“wangming”
feat: update memb...
|
1209
1210
1211
1212
1213
1214
|
0: 'D',
1: 'C',
2: 'B',
3: 'A',
4: 'A+',
5: 'A++'
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1215
|
}
|
747ab6fb
“wangming”
feat: update memb...
|
1216
|
return levelMap[level] || 'D'
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1217
|
},
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1218
1219
1220
1221
1222
1223
|
getConsumeLevelTagType(level) {
const typeMap = {
0: 'info',
1: '',
2: 'warning',
3: 'success',
|
747ab6fb
“wangming”
feat: update memb...
|
1224
1225
|
4: 'success',
5: 'danger'
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1226
1227
1228
|
}
return typeMap[level] || 'info'
},
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
|
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
}
|
f84588f8
“wangming”
feat: add remaini...
|
1244
|
this.resetData()
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
|
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>
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1259
1260
1261
1262
1263
1264
|
::v-deep .el-dialog {
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1265
1266
|
.member-portrait-dialog {
.el-dialog {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1267
|
border-radius: 20px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1268
|
overflow: hidden;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1269
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1270
1271
1272
|
}
.el-dialog__header {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1273
|
padding: 18px 24px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1274
|
border-bottom: 1px solid #e4e7ed;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1275
|
background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1276
|
color: #fff;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
|
position: relative;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #409EFF 0%, #66b1ff 100%);
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1288
1289
1290
1291
1292
|
.el-dialog__title {
color: #fff;
font-size: 18px;
font-weight: 600;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1293
|
letter-spacing: 0;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1294
1295
1296
|
}
.el-dialog__close {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1297
|
color: rgba(255, 255, 255, 0.8);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1298
|
font-size: 20px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1299
|
transition: all 0.2s ease;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1300
1301
|
&:hover {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1302
|
color: #fff;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1303
1304
|
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1305
1306
1307
|
}
.el-dialog__body {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1308
|
padding: 20px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1309
1310
|
background: #f5f7fa;
color: #303133;
|
747ab6fb
“wangming”
feat: update memb...
|
1311
1312
1313
1314
|
overflow: hidden;
height: calc(90vh - 120px);
display: flex;
flex-direction: column;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1315
1316
1317
1318
|
}
}
.portrait-wrapper {
|
747ab6fb
“wangming”
feat: update memb...
|
1319
1320
1321
1322
1323
1324
1325
1326
1327
|
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
// 中部左右分栏
.portrait-main-panel {
flex-shrink: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1328
|
display: flex;
|
747ab6fb
“wangming”
feat: update memb...
|
1329
1330
1331
1332
1333
|
gap: 24px;
margin-bottom: 16px;
background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
border-radius: 12px;
padding: 24px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1334
|
border: 1px solid #e4e7ed;
|
747ab6fb
“wangming”
feat: update memb...
|
1335
1336
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(64, 158, 255, 0.04);
min-height: 180px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1337
|
|
747ab6fb
“wangming”
feat: update memb...
|
1338
|
.panel-left {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1339
|
flex-shrink: 0;
|
747ab6fb
“wangming”
feat: update memb...
|
1340
1341
1342
1343
1344
1345
1346
|
width: 220px;
min-width: 220px;
display: flex;
flex-direction: column;
align-items: center;
padding-right: 24px;
border-right: 1px solid #ebeef5;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1347
1348
|
.avatar-circle {
|
747ab6fb
“wangming”
feat: update memb...
|
1349
1350
1351
|
width: 64px;
height: 64px;
border-radius: 12px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1352
|
background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1353
1354
1355
1356
|
display: flex;
align-items: center;
justify-content: center;
color: #fff;
|
747ab6fb
“wangming”
feat: update memb...
|
1357
1358
1359
|
font-size: 28px;
margin-bottom: 12px;
box-shadow: 0 4px 12px rgba(64, 158, 255, 0.35);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1360
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1361
|
|
747ab6fb
“wangming”
feat: update memb...
|
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
|
.member-name {
font-size: 18px;
font-weight: 600;
color: #303133;
margin: 0 0 8px 0;
line-height: 1.3;
text-align: center;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1373
1374
|
}
|
747ab6fb
“wangming”
feat: update memb...
|
1375
1376
1377
|
.level-tag {
margin-bottom: 12px;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1378
|
|
747ab6fb
“wangming”
feat: update memb...
|
1379
1380
1381
1382
1383
|
.left-meta {
width: 100%;
font-size: 13px;
color: #606266;
margin-bottom: 12px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1384
|
|
747ab6fb
“wangming”
feat: update memb...
|
1385
1386
1387
1388
1389
1390
1391
|
.meta-row {
padding: 5px 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 6px;
background: #f8f9fa;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1392
|
|
747ab6fb
“wangming”
feat: update memb...
|
1393
1394
1395
|
&.phone {
color: #67C23A;
font-weight: 500;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1396
1397
1398
|
}
}
}
|
747ab6fb
“wangming”
feat: update memb...
|
1399
1400
1401
1402
|
.btn-edit {
width: 100%;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1403
1404
|
}
|
747ab6fb
“wangming”
feat: update memb...
|
1405
1406
1407
1408
|
.panel-right {
flex: 1;
min-width: 0;
overflow: hidden;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1409
|
|
747ab6fb
“wangming”
feat: update memb...
|
1410
1411
1412
1413
|
.attr-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px 20px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1414
|
|
747ab6fb
“wangming”
feat: update memb...
|
1415
|
.attr-item {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1416
|
display: flex;
|
747ab6fb
“wangming”
feat: update memb...
|
1417
1418
1419
1420
1421
1422
1423
1424
|
align-items: center;
font-size: 13px;
min-height: 28px;
min-width: 0;
padding: 4px 10px;
border-radius: 6px;
background: #f8f9fa;
transition: background 0.2s ease;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1425
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1426
|
&:hover {
|
747ab6fb
“wangming”
feat: update memb...
|
1427
|
background: #f0f2f5;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1428
1429
|
}
|
747ab6fb
“wangming”
feat: update memb...
|
1430
1431
1432
1433
1434
|
&.attr-item-full {
grid-column: 1 / -1;
white-space: normal;
word-break: break-all;
padding: 8px 12px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1435
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1436
|
|
747ab6fb
“wangming”
feat: update memb...
|
1437
|
&:not(.attr-item-full) {
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1438
|
white-space: nowrap;
|
747ab6fb
“wangming”
feat: update memb...
|
1439
1440
|
overflow: hidden;
text-overflow: ellipsis;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1441
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1442
|
|
747ab6fb
“wangming”
feat: update memb...
|
1443
1444
1445
1446
1447
|
.attr-label {
color: #909399;
flex-shrink: 0;
margin-right: 8px;
font-size: 12px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1448
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1449
|
|
747ab6fb
“wangming”
feat: update memb...
|
1450
1451
1452
1453
|
.attr-value {
color: #303133;
overflow: hidden;
text-overflow: ellipsis;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1454
|
|
747ab6fb
“wangming”
feat: update memb...
|
1455
1456
1457
1458
|
&.highlight {
font-weight: 600;
color: #303133;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1459
|
|
747ab6fb
“wangming”
feat: update memb...
|
1460
1461
1462
1463
|
&.primary {
color: #409EFF;
font-weight: 600;
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1464
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1465
|
|
747ab6fb
“wangming”
feat: update memb...
|
1466
1467
|
.el-tag {
flex-shrink: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1468
1469
1470
|
}
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1471
|
|
747ab6fb
“wangming”
feat: update memb...
|
1472
1473
1474
1475
|
.member-types-row {
margin-top: 14px;
padding-top: 14px;
border-top: 1px dashed #e4e7ed;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1476
|
display: flex;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1477
|
flex-wrap: wrap;
|
747ab6fb
“wangming”
feat: update memb...
|
1478
|
gap: 8px 16px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1479
|
|
747ab6fb
“wangming”
feat: update memb...
|
1480
1481
|
.member-type-wrap {
display: inline-flex;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1482
1483
|
align-items: center;
gap: 6px;
|
747ab6fb
“wangming”
feat: update memb...
|
1484
1485
1486
1487
|
padding: 4px 10px;
background: #f8f9fa;
border-radius: 6px;
transition: background 0.2s ease;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1488
|
|
747ab6fb
“wangming”
feat: update memb...
|
1489
1490
1491
1492
1493
1494
1495
|
&:hover {
background: #f0f2f5;
}
.type-date {
font-size: 12px;
color: #909399;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1496
1497
|
}
}
|
747ab6fb
“wangming”
feat: update memb...
|
1498
1499
1500
|
}
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1501
|
|
747ab6fb
“wangming”
feat: update memb...
|
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
|
// 个人档案样式(与 detail-dialog 一致)
.profile-layout {
.detail-section {
margin-bottom: 20px;
background: #fff;
border-radius: 8px;
overflow: hidden;
border: 1px solid #ebeef5;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
.section-title {
background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
color: #fff;
padding: 12px 20px;
font-size: 15px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
i {
font-size: 18px;
}
}
.section-content {
padding: 20px;
.info-row {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1531
|
display: flex;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1532
|
flex-wrap: wrap;
|
747ab6fb
“wangming”
feat: update memb...
|
1533
|
gap: 20px 40px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1534
|
|
747ab6fb
“wangming”
feat: update memb...
|
1535
1536
1537
|
.info-item {
flex: 0 0 calc(33.333% - 27px);
min-width: 220px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1538
1539
|
display: flex;
align-items: center;
|
747ab6fb
“wangming”
feat: update memb...
|
1540
1541
1542
1543
1544
|
padding: 6px 0;
&.info-item-full {
flex: 1 1 100%;
min-width: 100%;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1545
1546
|
}
|
747ab6fb
“wangming”
feat: update memb...
|
1547
1548
1549
1550
1551
|
.label {
color: #606266;
font-weight: 500;
margin-right: 8px;
flex-shrink: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1552
1553
|
}
|
747ab6fb
“wangming”
feat: update memb...
|
1554
1555
1556
1557
1558
1559
1560
|
.value {
color: #303133;
&.highlight {
font-weight: 600;
color: #303133;
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1561
|
|
747ab6fb
“wangming”
feat: update memb...
|
1562
1563
|
&.primary {
color: #409EFF;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1564
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1565
1566
1567
1568
1569
1570
1571
|
}
}
}
}
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1572
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1573
1574
|
// 选项卡样式
.portrait-tabs {
|
747ab6fb
“wangming”
feat: update memb...
|
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
|
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
::v-deep .el-tabs__content {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
::v-deep .el-tab-pane {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1597
|
::v-deep .el-tabs__header {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1598
1599
|
margin-bottom: 16px;
background: #ffffff;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1600
|
padding: 0 20px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1601
|
border-radius: 8px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1602
1603
1604
1605
1606
1607
1608
1609
1610
|
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: 完善会员画像功能,优化...
|
1611
|
font-size: 14px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1612
1613
|
font-weight: 500;
padding: 0 24px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1614
1615
1616
1617
1618
1619
1620
1621
|
height: 48px;
line-height: 48px;
color: #606266;
transition: all 0.2s ease;
&:hover {
color: #409EFF;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1622
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1623
|
&.is-active {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1624
|
color: #409EFF;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1625
1626
1627
1628
1629
|
font-weight: 600;
}
}
::v-deep .el-tabs__active-bar {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1630
|
background: linear-gradient(90deg, #409EFF 0%, #66b1ff 100%);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1631
1632
1633
1634
|
height: 3px;
}
.tab-content {
|
747ab6fb
“wangming”
feat: update memb...
|
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
|
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
&.tab-content-direct {
padding: 18px;
background: #fff;
border-radius: 8px;
border: 1px solid #e4e7ed;
.pagination-bar {
padding: 12px 0 0;
margin-top: 12px;
border-top: 1px solid #e4e7ed;
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1652
|
.content-card {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1653
1654
|
background: #ffffff;
border-radius: 8px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1655
1656
|
border: 1px solid #e4e7ed;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1657
|
margin-bottom: 16px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1658
|
overflow: hidden;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1659
1660
1661
1662
1663
|
transition: all 0.2s ease;
&:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1664
1665
|
.card-header {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1666
|
padding: 14px 18px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1667
1668
1669
1670
1671
1672
1673
|
background: #f8f9fa;
border-bottom: 1px solid #e4e7ed;
display: flex;
align-items: center;
gap: 8px;
i {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1674
|
font-size: 16px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1675
|
color: #409EFF;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1676
1677
1678
1679
1680
1681
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
&:hover i {
transform: scale(1.1) rotate(5deg);
color: #66b1ff;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
|
}
.card-title {
font-size: 15px;
font-weight: 600;
color: #303133;
}
}
.card-body {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1692
|
padding: 18px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1693
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1694
1695
1696
1697
|
}
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1698
|
// 消费行为网格
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1699
1700
1701
|
.behavior-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1702
|
gap: 14px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1703
1704
1705
|
.behavior-item {
background: #f8f9fa;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1706
|
border-radius: 8px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1707
|
border: 1px solid #e4e7ed;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1708
|
padding: 14px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1709
1710
1711
|
display: flex;
align-items: center;
gap: 12px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1712
|
transition: all 0.2s ease;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1713
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1714
|
&:hover {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1715
1716
1717
|
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border-color: #c0c4cc;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1718
1719
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1720
1721
1722
|
.behavior-icon {
width: 40px;
height: 40px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1723
1724
|
border-radius: 6px;
background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1725
1726
1727
1728
|
display: flex;
align-items: center;
justify-content: center;
color: #fff;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1729
|
font-size: 16px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1730
|
flex-shrink: 0;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1731
1732
1733
1734
1735
1736
1737
1738
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 6px rgba(64, 158, 255, 0.3);
}
&:hover .behavior-icon {
transform: scale(1.1) rotate(5deg);
background: linear-gradient(135deg, #66b1ff 0%, #409EFF 100%);
box-shadow: 0 4px 10px rgba(64, 158, 255, 0.4);
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1739
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1740
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1741
1742
1743
|
.behavior-content {
flex: 1;
min-width: 0;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1744
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1745
|
.behavior-label {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1746
|
font-size: 13px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1747
|
color: #909399;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1748
1749
|
margin-bottom: 8px;
font-weight: 500;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1750
|
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1751
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1752
|
.behavior-value {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1753
|
font-size: 16px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1754
1755
1756
1757
1758
1759
|
color: #303133;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1760
1761
1762
1763
|
}
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1764
1765
1766
|
// 消费分析布局
.analysis-layout {
display: flex;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1767
|
gap: 16px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1768
1769
1770
1771
1772
1773
|
flex-wrap: wrap;
.analysis-item {
flex: 1;
min-width: 200px;
background: #f8f9fa;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1774
|
border-radius: 8px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1775
|
border: 1px solid #e4e7ed;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1776
|
padding: 14px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1777
|
display: flex;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1778
1779
|
align-items: center;
gap: 12px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1780
|
transition: all 0.2s ease;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1781
|
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1782
|
&:hover {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1783
1784
1785
|
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border-color: #c0c4cc;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1786
1787
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1788
1789
1790
|
.analysis-icon {
width: 40px;
height: 40px;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1791
1792
|
border-radius: 6px;
background: linear-gradient(135deg, #67C23A 0%, #85ce61 100%);
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1793
1794
1795
1796
|
display: flex;
align-items: center;
justify-content: center;
color: #fff;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1797
|
font-size: 16px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1798
|
flex-shrink: 0;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1799
1800
1801
1802
1803
1804
1805
1806
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 6px rgba(103, 194, 58, 0.3);
}
&:hover .analysis-icon {
transform: scale(1.1) rotate(5deg);
background: linear-gradient(135deg, #85ce61 0%, #67C23A 100%);
box-shadow: 0 4px 10px rgba(103, 194, 58, 0.4);
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1807
1808
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1809
|
.analysis-content {
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1810
|
flex: 1;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1811
1812
1813
|
min-width: 0;
.analysis-label {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1814
|
font-size: 13px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1815
|
color: #909399;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1816
1817
|
margin-bottom: 8px;
font-weight: 500;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1818
1819
1820
|
}
.analysis-value {
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1821
|
font-size: 16px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1822
1823
1824
|
color: #303133;
font-weight: 600;
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1825
1826
1827
1828
|
}
}
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1829
|
// 趋势图
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1830
1831
|
.trend-chart {
width: 100%;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1832
1833
1834
1835
|
height: 360px;
border-radius: 6px;
background: #fafbfc;
padding: 8px;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1836
1837
|
}
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1838
|
// 分页
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1839
1840
1841
|
.pagination-bar {
display: flex;
justify-content: flex-end;
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1842
1843
|
padding: 14px 0 0 0;
margin-top: 14px;
|
21ced84b
“wangming”
feat: 优化会员画像页面样式,...
|
1844
|
border-top: 1px solid #e4e7ed;
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1845
1846
|
}
|
3fbec03d
“wangming”
新增财务报表功能、会员生日提醒功能...
|
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
|
// 表格样式优化
::v-deep .el-table {
border-radius: 6px;
overflow: hidden;
.el-table__header {
background: linear-gradient(135deg, rgba(64, 158, 255, 0.08) 0%, rgba(102, 177, 255, 0.05) 100%);
th {
background: transparent !important;
border-bottom: 1px solid rgba(64, 158, 255, 0.2);
color: #303133;
font-weight: 600;
font-size: 13px;
padding: 12px 0;
}
}
.el-table__body {
tr {
transition: all 0.2s ease;
&:hover {
background: linear-gradient(90deg, rgba(64, 158, 255, 0.06) 0%, rgba(102, 177, 255, 0.04) 100%) !important;
}
td {
border-bottom: 1px solid #f0f2f5;
padding: 12px 0;
color: #606266;
font-size: 13px;
}
}
tr.el-table__row--striped {
background: #fafbfc;
}
}
}
// 滚动条美化
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(240, 242, 245, 0.5);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #c0c4cc 0%, #909399 100%);
border-radius: 4px;
transition: background 0.3s;
&:hover {
background: linear-gradient(135deg, #909399 0%, #606266 100%);
}
}
|
5e0c6e5a
“wangming”
feat: 完善会员画像功能,优化...
|
1908
1909
1910
1911
1912
1913
|
.text-muted {
color: #909399;
font-size: 13px;
}
}
</style>
|
747ab6fb
“wangming”
feat: update memb...
|
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
|
<style lang="scss">
/* 旧日志图片预览弹窗 */
.old-log-image-dialog {
.el-dialog__body {
padding: 16px 24px 24px;
}
.old-log-image-content {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}
.old-log-preview-img {
width: 100%;
aspect-ratio: 1;
max-height: 200px;
border-radius: 8px;
border: 1px solid #e4e7ed;
cursor: pointer;
}
}
/* 服务日志图片预览弹窗(弹窗 append-to-body,需全局样式) */
.service-log-image-dialog {
.el-dialog__body {
padding: 16px 24px 24px;
}
.consume-service-log-content {
max-height: 70vh;
overflow-y: auto;
}
.log-list .log-item {
margin-bottom: 24px;
&:last-child {
margin-bottom: 0;
}
}
.no-data {
padding: 40px 0;
}
.image-preview-content {
min-height: 80px;
}
.preview-header {
display: flex;
align-items: center;
gap: 24px;
padding: 12px 16px;
margin-bottom: 16px;
background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f7 100%);
border-radius: 8px;
border-left: 4px solid #409EFF;
}
.preview-meta {
font-size: 13px;
color: #606266;
i {
margin-right: 6px;
color: #909399;
}
}
.preview-row {
display: flex;
flex-wrap: wrap;
gap: 24px;
.image-section {
flex: 1;
min-width: 280px;
}
}
.image-section {
padding: 16px;
background: #fafbfc;
border-radius: 8px;
border: 1px solid #e4e7ed;
}
.image-section-title {
font-size: 14px;
font-weight: 600;
color: #303133;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid #e4e7ed;
i {
margin-right: 6px;
color: #409EFF;
}
}
.image-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.preview-img {
width: 100%;
aspect-ratio: 1;
max-height: 160px;
border-radius: 8px;
border: 1px solid #e4e7ed;
cursor: pointer;
transition: border-color 0.2s, box-shadow 0.2s;
&:hover {
border-color: #409EFF;
box-shadow: 0 2px 12px rgba(64, 158, 255, 0.2);
}
}
.image-placeholder {
grid-column: 1 / 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
aspect-ratio: 1;
max-height: 160px;
background: #f5f7fa;
border: 1px dashed #dcdfe6;
border-radius: 8px;
color: #c0c4cc;
font-size: 13px;
i {
font-size: 40px;
}
}
.preview-remark {
margin-top: 16px;
padding: 12px 16px;
font-size: 13px;
color: #606266;
background: #fafbfc;
border-radius: 8px;
border: 1px solid #e4e7ed;
line-height: 1.6;
.remark-label {
font-weight: 600;
color: #303133;
margin-right: 4px;
}
}
}
</style>
|