Blame view

绿纤uni-app/pages/consume-list/consume-list.vue 18.8 KB
29608708   李宇   增加unia-app和html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <template>
  	<view class="container">
  		<!-- 日期范围筛选 -->
  		<view class="date-filter-card">
  			<view class="date-filter-header">
  				<!-- <text class="filter-title">日期筛选</text> -->
  				<view class="date-range-display" @click="showCalendarFun">
  					<text class="date-text">{{ formatDateRange() }}</text>
  					<text class="calendar-icon">📅</text>
  				</view>
  			</view>
  		</view>
  		<!-- 搜索栏 -->
  		<view class="search-card">
a856ffdc   李宇   ```
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  			<view class="search-input-wrapper">
  				<u-input 
  					v-model="searchKeyword" 
  					placeholder="搜索顾客的姓名或者电话" 
  					@input="handleSearchInput"
  					@focus="handleSearchFocus"
  					@blur="handleSearchBlur"
  					@clear="handleSearchClear"
  					:clearable="true"
  					class="search-input"
  				>
  					<template slot="suffix">
  						<u-icon name="search" size="20" color="#909399" @click="handleSearch"></u-icon>
  					</template>
  				</u-input>
  				<!-- 下拉选择列表 -->
  				<view v-if="showSuggestions && searchSuggestions.length > 0" class="suggestions-dropdown">
  					<scroll-view scroll-y class="suggestions-list">
  						<view 
  							v-for="(item, index) in searchSuggestions" 
  							:key="index"
  							class="suggestion-item"
  							@click="selectSuggestion(item)"
  						>
  							<view class="suggestion-name">{{ item.khmc || '未知会员' }}</view>
  							<view class="suggestion-phone">{{ item.sjh || '无' }}</view>
  						</view>
  					</scroll-view>
  				</view>
  			</view>
29608708   李宇   增加unia-app和html
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  		</view>
  
  		<!-- 日历组件 -->
  		<uni-calendar
  			:range="true"
  			ref="calendar"
  			@confirm="handleDateConfirm"
  			:insert="false"
  		></uni-calendar>
  
  		<!-- 数据列表 -->
  		<view class="list-card">
  			<view class="list-header">
  				<text class="header-text">耗卡记录</text>
  				<text class="total-count">共 {{ totalCount }} 条</text>
  			</view>
  
  			<scroll-view scroll-y class="list-content" @scrolltolower="loadMore">
  				<view v-for="(item, index) in dataList" :key="index" class="list-item" @click="goToDetail(item)">
  					<view class="item-header">
  						<view class="member-name">{{ item.hymc || item.hy || '未知会员' }}</view>
0f14a621   李宇   最新
66
  						<view class="consume-time">{{ utils.formatTime(item.hksj) }}</view>
29608708   李宇   增加unia-app和html
67
68
69
70
71
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
  					</view>
  					<view class="item-details">
  						<view class="detail-item">
  							<text class="detail-label">消费金额:</text>
  							<text class="detail-value">¥{{ item.xfje || 0 }}</text>
  						</view>
  						<view class="detail-item">
  							<text class="detail-label">手工费用:</text>
  							<text class="detail-value">¥{{ item.sgfy || 0 }}</text>
  						</view>
  				<!-- 		<view class="detail-item">
  							<text class="detail-label">品项数量:</text>
  							<text class="detail-value">{{ item.pxCount || 0 }} 个</text>
  						</view> -->
  						<view class="detail-item">
  							<text class="detail-label">客户类型:</text>
  							<text class="detail-value">{{ item.gklx || '无' }}</text>
  						</view>
  					</view>
  					<view class="item-status">
  						<view class="service-log-btn" @click.stop="goToServiceLog(item)">
  							<text class="service-log-icon">📋</text>
  							<text class="service-log-text">服务日志</text>
  						</view>
  						<view class="status-badge" :class="item.isEffective !='1'?'tech':'normal'">
  							{{ getStatusText(item) }}
  						</view>
  					</view>
  				</view>
  
  				<!-- 空状态 -->
  				<view v-if="!loading && dataList.length === 0" class="empty-state">
  					<view class="empty-icon">💳</view>
  					<view>暂无耗卡数据</view>
  					<view v-if="searchKeyword" class="empty-search-tip">未找到匹配"{{ searchKeyword }}"的记录</view>
  				</view>
  
  				<!-- 加载状态 -->
  				<view v-if="loading && dataList.length === 0" class="loading">正在加载数据...</view>
  
  				<!-- 加载更多 -->
  				<u-loadmore v-if="dataList.length > 0" :status="loadmoreStatus" :load-text="loadText"></u-loadmore>
  			</scroll-view>
  		</view>
  	</view>
  </template>
  
  <script>
  	import consumeApi from '@/apis/modules/consume.js'
a856ffdc   李宇   ```
116
  	import memberApi from '@/apis/modules/member.js'
29608708   李宇   增加unia-app和html
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
  	import uniCalendar from '@/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue'
  
  	export default {
  		components: {
  			uniCalendar
  		},
  		data() {
  			return {
  				loading: false,
  				searchKeyword: '',
  				dataList: [],
  				currentPage: 1,
  				pageSize: 10,
  				totalCount: 0,
  				hasMore: true,
  				searchTimer: null,
  				loadmoreStatus: 'loadmore',
  				loadText: {
  					loadmore: '点击或上拉加载更多',
  					loading: '正在加载...',
  					nomore: '没有更多了'
  				},
  				userInfo: uni.getStorageSync('userInfo'),
a856ffdc   李宇   ```
140
  				newuserInfo: uni.getStorageSync('newuserInfo'),
29608708   李宇   增加unia-app和html
141
142
  				// 日期范围筛选相关
  				showCalendar: false,
0f14a621   李宇   最新
143
144
145
  				startDate: this.utils.getTodayString(),
  				endDate: this.utils.getTodayString(),
  				dateRange: this.utils.getTodayRange(),
a856ffdc   李宇   ```
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
  				// 搜索建议相关
  				searchSuggestions: [],
  				showSuggestions: false,
  				suggestionTimer: null,
  				selectedMemberId: null
  			}
  		},
  
  		watch: {
  			// 监听搜索关键词变化,处理清空情况
  			searchKeyword(newVal) {
  				if (!newVal || newVal.trim() === '') {
  					this.selectedMemberId = null
  					this.searchSuggestions = []
  					this.showSuggestions = false
  				}
29608708   李宇   增加unia-app和html
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
  			}
  		},
  
  		onLoad() {
  			this.initializePage()
  		},
  		onShow() {
  			// 页面显示时刷新数据
  			// this.refreshData()
  		},
  
  		onUnload() {
  			// 页面卸载时清理定时器
  			if (this.searchTimer) {
  				clearTimeout(this.searchTimer)
  				this.searchTimer = null
  			}
a856ffdc   李宇   ```
179
180
181
182
  			if (this.suggestionTimer) {
  				clearTimeout(this.suggestionTimer)
  				this.suggestionTimer = null
  			}
29608708   李宇   增加unia-app和html
183
184
185
186
187
188
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
221
222
223
224
225
226
227
  		},
  
  		methods: {
  			showCalendarFun(){
  				this.$refs.calendar.open();
  			},
  			// 初始化页面
  			async initializePage() {
  				try {
  					// 检查登录状态
  					await this.checkLoginStatus()
  
  					// 加载第一页数据
  					await this.loadConsumeList()
  				} catch (error) {
  					console.error('页面初始化失败:', error)
  					this.showErrorState('页面初始化失败,请刷新重试')
  				}
  			},
  
  			// 检查登录状态
  			async checkLoginStatus() {
  				const token = uni.getStorageSync('token')
  				if (!token) {
  					uni.reLaunch({
  						url: '/pages/login/login'
  					})
  					return
  				}
  			},
  
  			// 加载耗卡列表
  			async loadConsumeList() {
  				if (this.loading) return
  
  				try {
  					this.loading = true
  					this.showLoadingState()
  
  					const params = {
  						currentPage: this.currentPage,
  						pageSize: this.pageSize
  					}
  
  					// 添加用户ID参数
a856ffdc   李宇   ```
228
229
230
231
232
233
234
235
236
237
  					if(this.newuserInfo.gw == '科技老师'){
  						params.kjblsId = this.userInfo.userId
  					} else if(this.newuserInfo.gw == '健康师') {
  						params.jksId = this.userInfo.userId
  					} else if(this.newuserInfo.gw == '店助' || this.newuserInfo.gw == '店长') {
  						params.md = this.newuserInfo.mdid || '暂无'
  					}  else {
  						if (this.userInfo && this.userInfo.userId) {
  							params.czry = this.userInfo.userId
  						}
29608708   李宇   增加unia-app和html
238
  					}
29608708   李宇   增加unia-app和html
239
240
  					// 添加搜索关键字
  					if (this.searchKeyword) {
a856ffdc   李宇   ```
241
242
243
244
245
246
  						// 如果已选择会员ID,直接使用;否则通过搜索获取
  						if (this.selectedMemberId) {
  							params.hy = this.selectedMemberId
  						} else {
  							params.hy = await this.utils.gethy(this.searchKeyword)
  						}
29608708   李宇   增加unia-app和html
247
248
249
250
251
252
253
254
255
256
257
258
259
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
286
287
288
289
290
291
292
293
  					}
  
  					// 添加日期范围参数
  					if (this.dateRange && this.dateRange.length === 2) {
  						params.hksj = `${this.dateRange[0]},${this.dateRange[1]}`
  					}
  
  					const res = await this.API.getConsumeList(params)
  
  					if (res.code === 200) {
  						const data = res.data
  						this.totalCount = data.pagination?.total || 0
  						const list = data.list || []
  
  						if (this.currentPage === 1) {
  							// 第一页,清空列表
  							this.dataList = list
  						} else {
  							// 加载更多,追加到列表
  							this.dataList = [...this.dataList, ...list]
  						}
  
  						// 判断是否还有更多数据
  						this.hasMore = list.length === this.pageSize
  
  						// 更新加载状态
  						if (this.hasMore) {
  							this.loadmoreStatus = 'loadmore'
  						} else {
  							this.loadmoreStatus = 'nomore'
  						}
  					} else {
  						throw new Error(res.message || '获取数据失败')
  					}
  
  				} catch (error) {
  					console.error('加载耗卡列表失败:', error)
  					if (this.currentPage === 1) {
  						this.showErrorState('加载数据失败,请重试')
  					} else {
  						this.showMessage('加载更多数据失败', 'error')
  					}
  				} finally {
  					this.loading = false
  				}
  			},
  
a856ffdc   李宇   ```
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
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
  			// 搜索输入处理
  			handleSearchInput() {
  				// v-model 已经更新了 searchKeyword,直接使用
  				this.selectedMemberId = null
  				this.showSuggestions = false
  				
  				// 清除之前的定时器
  				if (this.suggestionTimer) {
  					clearTimeout(this.suggestionTimer)
  				}
  				
  				// 如果输入为空,隐藏建议列表
  				if (!this.searchKeyword || this.searchKeyword.trim() === '') {
  					this.searchSuggestions = []
  					this.showSuggestions = false
  					return
  				}
  				
  				// 延迟搜索建议,避免频繁请求
  				this.suggestionTimer = setTimeout(() => {
  					this.loadSearchSuggestions(this.searchKeyword.trim())
  				}, 300)
  			},
  			
  			// 搜索框获得焦点
  			handleSearchFocus() {
  				if (this.searchKeyword && this.searchSuggestions.length > 0) {
  					this.showSuggestions = true
  				}
  			},
  			
  			// 搜索框清空处理
  			handleSearchClear() {
  				this.searchKeyword = ''
  				this.selectedMemberId = null
  				this.searchSuggestions = []
  				this.showSuggestions = false
  				this.resetAndSearch()
  			},
  			
  			// 搜索框失去焦点
  			handleSearchBlur() {
  				// 延迟隐藏,确保点击选项时能触发
  				setTimeout(() => {
  					this.showSuggestions = false
  				}, 200)
  			},
  			
  			// 加载搜索建议
  			async loadSearchSuggestions(keyword) {
  				try {
  					const params = {
  						currentPage: 1,
  						pageSize: 10,
  						keyword: keyword
  					}
  					
  					const result = await memberApi.getMemberList(params)
  					if (result.code === 200 && result.data) {
  						this.searchSuggestions = result.data.list || []
  						this.showSuggestions = this.searchSuggestions.length > 0
  					} else {
  						this.searchSuggestions = []
  						this.showSuggestions = false
  					}
  				} catch (error) {
  					console.error('加载搜索建议失败:', error)
  					this.searchSuggestions = []
  					this.showSuggestions = false
  				}
  			},
  			
  			// 选择搜索建议
  			selectSuggestion(item) {
  				this.searchKeyword = item.khmc || item.sjh || ''
  				this.selectedMemberId = item.id
  				this.showSuggestions = false
  				// 执行搜索
  				this.resetAndSearch()
  			},
  			
29608708   李宇   增加unia-app和html
375
376
377
378
379
380
381
382
383
384
385
386
387
  			// 搜索
  			handleSearch() {
  				// 清除之前的定时器
  				if (this.searchTimer) {
  					clearTimeout(this.searchTimer)
  				}
  
  				// 设置新的定时器,延迟500ms执行搜索
  				this.searchTimer = setTimeout(() => {
  					this.resetAndSearch()
  				}, 500)
  			},
  
29608708   李宇   增加unia-app和html
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
  			// 重置并搜索
  			async resetAndSearch() {
  				this.currentPage = 1
  				this.hasMore = true
  				this.loadmoreStatus = 'loadmore'
  				this.dataList = []
  				await this.loadConsumeList()
  			},
  
  			// 刷新数据
  			refreshData() {
  				this.currentPage = 1
  				this.hasMore = true
  				this.loadmoreStatus = 'loadmore'
  				this.dataList = []
  				this.loadConsumeList()
  			},
  
  			// 加载更多
  			async loadMore() {
  				if (this.loading || !this.hasMore || this.loadmoreStatus === 'nomore') return
  
  				this.loadmoreStatus = 'loading'
  				this.currentPage++
  				await this.loadConsumeList()
  			},
  
  			// 跳转到服务日志页面
  			goToServiceLog(item) {
  				console.log('跳转到服务日志:', item)
  				uni.navigateTo({
  					url: `/pages/serviceDiary/serviceDiary?consumeId=${item.id}&memberName=${encodeURIComponent(item.hymc || item.hy || '未知会员')}`
  				})
  			},
  
  			// 跳转到详情页
  			goToDetail(item) {
  				console.log('耗卡详情:', item)
  				uni.navigateTo({
  					url: `/pages/consume-detail/consume-detail?id=${item.id}`
  				})
  			},
  
  			// 返回上一页
  			goBack() {
  				uni.navigateBack({
  					delta: 1
  				})
  			},
29608708   李宇   增加unia-app和html
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
  			// 获取状态样式类
  			getStatusClass(item) {
  				// 根据业务逻辑判断状态
  				if (item.sfykjb === '是') {
  					return 'tech' // 有科技部
  				} else {
  					return 'normal' // 正常
  				}
  			},
  
  			// 获取状态文本
  			getStatusText(item) {
  				if (item.isEffective == '1') {
  					return '正常'
  				} else {
  					return '作废'
  				}
  			},
  
  			// 显示加载状态
  			showLoadingState() {
  				// 加载状态由模板控制
  			},
  
  			// 显示错误状态
  			showErrorState(message) {
  				uni.showToast({
  					title: message,
  					icon: 'none'
  				})
  			},
  
  			// 显示消息提示
  			showMessage(message, type = 'info') {
  				uni.showToast({
  					title: message,
  					icon: type === 'error' ? 'error' : 'none'
  				})
  			},
  
29608708   李宇   增加unia-app和html
477
478
479
480
481
482
483
484
485
486
  
  			// 格式化日期范围显示
  			formatDateRange() {
  				if (!this.startDate || !this.endDate) {
  					return '请选择日期'
  				}
  				
  				const startDate = new Date(this.startDate)
  				const endDate = new Date(this.endDate)
  				
0f14a621   李宇   最新
487
  				return `${uni.$u.timeFormat(startDate,'yyyy-mm-dd')} - ${uni.$u.timeFormat(endDate,'yyyy-mm-dd')}`
29608708   李宇   增加unia-app和html
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
  			},
  
  			// 处理日期确认
  			handleDateConfirm(e) {
  				console.log('日期选择结果:', e)
  				
  				// uni-calendar组件返回的是包含start和end的对象
  				if (e && e.range && e.range.data) {
  					// 更新dateRange用于API调用(时间戳格式)
  					const startTime = new Date(e.range.data[0]).getTime()
  					const endTime = new Date(e.range.data[e.range.data.length-1]).getTime()
  					this.dateRange = [startTime, endTime]
  					
  					// 更新startDate和endDate用于显示
  					this.startDate = e.range.data[0]
  					this.endDate = e.range.data[e.range.data.length-1]
  					
  					// 日期变化时重新加载数据
  					this.resetAndSearch()
  				}
  			}
  		}
  	}
  </script>
  
  <style lang="scss" scoped>
  	.container {
a856ffdc   李宇   ```
515
  		min-height: 100vh;
29608708   李宇   增加unia-app和html
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
  		background: linear-gradient(135deg, #e8f5e9 0%, #b2dfdb 100%);
  		padding: 40rpx 40rpx;
  		box-sizing: border-box;
  	}
  
  	.header {
  		display: flex;
  		align-items: center;
  		justify-content: space-between;
  		margin-bottom: 40rpx;
  	}
  
  	.back-btn {
  		background: #fff;
  		border: none;
  		border-radius: 24rpx;
  		padding: 16rpx 24rpx;
  		color: #388e3c;
  		font-size: 28rpx;
  		box-shadow: 0 4rpx 16rpx rgba(76, 175, 80, 0.15);
  		transition: all 0.2s ease;
  	}
  
  	.header-title {
  		text-align: center;
  		color: #388e3c;
  		font-size: 36rpx;
  		font-weight: bold;
  		letter-spacing: 4rpx;
  		flex: 1;
  	}
  
  	.search-card {
  		background: #fff;
  		border-radius: 32rpx;
  		box-shadow: 0 8rpx 32rpx rgba(76, 175, 80, 0.1);
a856ffdc   李宇   ```
552
  		padding: 30rpx;
29608708   李宇   增加unia-app和html
553
  		margin-bottom: 40rpx;
a856ffdc   李宇   ```
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
  		position: relative;
  		box-sizing: border-box;
  		width: 100%;
  	}
  
  	.search-input-wrapper {
  		position: relative;
  		width: 100%;
  	}
  
  	.search-input {
  		width: 100%;
  		box-sizing: border-box;
  		border-radius: 18rpx;
  	}
  
  	.suggestions-dropdown {
  		position: absolute;
  		top: 100%;
  		left: 0;
  		right: 0;
  		background: #fff;
  		border-radius: 16rpx;
  		box-shadow: 0 8rpx 32rpx rgba(76, 175, 80, 0.15);
  		margin-top: 8rpx;
  		z-index: 999;
  		max-height: 600rpx;
  		overflow: hidden;
  	}
  
  	.suggestions-list {
  		max-height: 600rpx;
  	}
  
  	.suggestion-item {
  		padding: 24rpx 32rpx;
  		border-bottom: 2rpx solid #f0f0f0;
  		cursor: pointer;
  		transition: all 0.2s ease;
  	}
  
  	.suggestion-item:last-child {
  		border-bottom: none;
  	}
  
  	.suggestion-item:active {
  		background: #f8fff8;
  	}
  
  	.suggestion-name {
  		font-size: 28rpx;
  		color: #2e7d32;
  		font-weight: 500;
  		margin-bottom: 8rpx;
  	}
  
  	.suggestion-phone {
  		font-size: 24rpx;
  		color: #6a9c6a;
29608708   李宇   增加unia-app和html
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
693
694
695
696
697
698
699
700
701
702
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
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
759
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
787
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
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
  	}
  
  	.date-filter-card {
  		background: #fff;
  		border-radius: 32rpx;
  		box-shadow: 0 8rpx 32rpx rgba(76, 175, 80, 0.1);
  		padding: 40rpx;
  		margin-bottom: 40rpx;
  	}
  
  	.date-filter-header {
  		display: flex;
  		justify-content: space-between;
  		align-items: center;
  	}
  
  	.filter-title {
  		font-size: 28rpx;
  		color: #2e7d32;
  		font-weight: 600;
  	}
  
  	.date-range-display {
  		display: flex;
  		align-items: center;
  		background: #f9fff9;
  		border: 3rpx solid #c8e6c9;
  		border-radius: 24rpx;
  		padding: 24rpx 32rpx;
  		cursor: pointer;
  		transition: all 0.2s ease;
  		justify-content: space-between;
  		width: 100%;
  		box-sizing: border-box;
  	}
  
  	.date-range-display:active {
  		border-color: #43a047;
  		background: #fff;
  		transform: scale(0.98);
  	}
  
  	.date-text {
  		font-size: 28rpx;
  		color: #2e7d32;
  		flex: 1;
  	}
  
  	.calendar-icon {
  		font-size: 32rpx;
  		margin-left: 16rpx;
  	}
  
  	.list-card {
  		background: #fff;
  		border-radius: 32rpx;
  		box-shadow: 0 8rpx 32rpx rgba(76, 175, 80, 0.1);
  		overflow: hidden;
  		max-height: 70vh;
  	}
  
  	.list-header {
  		background: linear-gradient(120deg, #43e97b 0%, #38f9d7 100%);
  		padding: 32rpx 40rpx;
  		color: #fff;
  		font-weight: 600;
  		letter-spacing: 2rpx;
  		display: flex;
  		justify-content: space-between;
  		align-items: center;
  	}
  
  	.header-text {
  		font-size: 32rpx;
  	}
  
  	.total-count {
  		font-size: 28rpx;
  		opacity: 0.9;
  	}
  
  	.list-content {
  		max-height: calc(70vh - 120rpx);
  		overflow-y: auto;
  	}
  
  	.list-item {
  		padding: 32rpx 40rpx;
  		border-bottom: 2rpx solid #f0f0f0;
  		cursor: pointer;
  		transition: all 0.2s ease;
  		position: relative;
  	}
  
  	.list-item:hover {
  		background: #f8fff8;
  		transform: translateX(8rpx);
  	}
  
  	.list-item:last-child {
  		border-bottom: none;
  	}
  
  	.item-header {
  		display: flex;
  		justify-content: space-between;
  		align-items: center;
  		margin-bottom: 16rpx;
  	}
  
  	.member-name {
  		font-weight: 600;
  		color: #2e7d32;
  		font-size: 32rpx;
  	}
  
  	.consume-time {
  		font-size: 24rpx;
  		color: #6a9c6a;
  	}
  
  	.item-details {
  		display: grid;
  		grid-template-columns: 1fr 1fr;
  		gap: 16rpx;
  		margin-bottom: 16rpx;
  	}
  
  	.detail-item {
  		display: flex;
  		align-items: center;
  		font-size: 28rpx;
  		color: #555;
  	}
  
  	.detail-label {
  		color: #6a9c6a;
  		margin-right: 12rpx;
  		font-size: 24rpx;
  	}
  
  	.detail-value {
  		color: #2e7d32;
  		font-weight: 500;
  	}
  
  	.item-status {
  		display: flex;
  		justify-content: space-between;
  		align-items: center;
  		margin-top: 16rpx;
  	}
  
  	.service-log-btn {
  		display: flex;
  		align-items: center;
  		background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  		color: #fff;
  		padding: 16rpx 24rpx;
  		border-radius: 24rpx;
  		font-size: 24rpx;
  		font-weight: 500;
  		box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.3);
  		transition: all 0.3s ease;
  		cursor: pointer;
  	}
  
  	.service-log-btn:active {
  		transform: scale(0.95);
  		box-shadow: 0 2rpx 8rpx rgba(76, 175, 80, 0.4);
  	}
  
  	.service-log-icon {
  		font-size: 28rpx;
  		margin-right: 8rpx;
  	}
  
  	.service-log-text {
  		font-size: 24rpx;
  		letter-spacing: 1rpx;
  	}
  
  	.status-badge {
  		display: inline-block;
  		padding: 8rpx 24rpx;
  		border-radius: 40rpx;
  		font-size: 24rpx;
  		font-weight: 500;
  		text-align: center;
  	}
  
  	.status-badge.normal {
  		background: #e8f5e9;
  		color: #2e7d32;
  		border: 2rpx solid #c8e6c9;
  	}
  
  	.status-badge.tech {
  		background: #fff3e0;
  		color: #ef6c00;
  		border: 2rpx solid #ffe0b2;
  	}
  
  	.loading {
  		text-align: center;
  		padding: 80rpx 40rpx;
  		color: #6a9c6a;
  		font-size: 28rpx;
  	}
  
  	.empty-state {
  		text-align: center;
  		padding: 120rpx 40rpx;
  		color: #6a9c6a;
  	}
  
  	.empty-icon {
  		font-size: 120rpx;
  		margin-bottom: 32rpx;
  		opacity: 0.5;
  	}
  
  	.empty-search-tip {
  		margin-top: 16rpx;
  		font-size: 28rpx;
  		opacity: 0.7;
  	}
29608708   李宇   增加unia-app和html
840
  </style>