29608708
李宇
增加unia-app和html
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
45
46
|
<template>
<view class="container">
<!-- 加载状态 -->
<view v-if="loading" class="loading">
<text>正在加载详情...</text>
</view>
<!-- 错误状态 -->
<view v-else-if="error" class="error-state">
<text>{{ error }}</text>
<button class="retry-btn" @click="retryLoad">重试</button>
</view>
<!-- 详情内容 -->
<view v-else-if="appointmentDetail" class="detail-card">
<!-- 详情头部 -->
<view class="detail-header">
<view class="customer-name">{{ appointmentDetail.gkxm }}</view>
<view class="customer-phone">{{ getProjectName(appointmentDetail.yytyxm) }}</view>
</view>
<!-- 详情内容 -->
<view class="detail-content">
<!-- 基本信息 -->
<view class="detail-section">
<view class="section-title">基本信息</view>
<view class="detail-row">
<text class="detail-label">门店</text>
<text class="detail-value">{{ appointmentDetail.djmdName }}</text>
</view>
<view class="detail-row">
<text class="detail-label">项目名称</text>
<text class="detail-value">{{ getProjectName(appointmentDetail.yytyxm) }}</text>
</view>
<view class="detail-row">
<text class="detail-label">客户姓名</text>
<text class="detail-value">{{ appointmentDetail.gkxm }}</text>
</view>
<view class="detail-row">
<text class="detail-label">客户类型</text>
<text class="detail-value">{{ appointmentDetail.gklx }}</text>
</view>
<view class="detail-row">
<text class="detail-label">预约健康师</text>
<text class="detail-value">{{appointmentDetail.yyjksName}}</text>
</view>
|
262c3578
李宇
```
|
47
48
49
50
|
<view class="detail-row" v-if="appointmentDetail.InviteId">
<text class="detail-label">关联邀约号:</text>
<text class="detail-value" style="color: #43a047;" @click.stop="goToInvite(appointmentDetail.InviteId)">{{ appointmentDetail.InviteId || '无' }}</text>
</view>
|
29608708
李宇
增加unia-app和html
|
51
52
53
54
55
56
57
58
59
60
61
|
</view>
<!-- 预约信息 -->
<view class="detail-section">
<view class="section-title">预约信息</view>
<view class="detail-row">
<text class="detail-label">预约时间</text>
<text class="detail-value">{{ formatAppointmentTime(appointmentDetail.yysj, appointmentDetail.yyjs) }}</text>
</view>
<view class="detail-row">
<text class="detail-label">操作时间</text>
|
0f14a621
李宇
最新
|
62
|
<text class="detail-value">{{ utils.formatTime(appointmentDetail.czsj) }}</text>
|
29608708
李宇
增加unia-app和html
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
</view>
<view class="detail-row">
<text class="detail-label">预约人</text>
<text class="detail-value">{{ appointmentDetail.yyrName }}</text>
</view>
<view class="detail-row">
<text class="detail-label">预约状态</text>
<text class="detail-value">
<text class="status-badge" :class="appointmentDetail.F_Status=='已确认'?'success':appointmentDetail.F_Status=='已取消'?'failed':appointmentDetail.F_Status=='已预约'?'pending':'pending'">
{{ getStatusText(appointmentDetail.F_Status) }}
</text>
</text>
</view>
</view>
|
262c3578
李宇
```
|
77
78
79
80
81
82
83
84
|
<!-- 说明信息 -->
<view class="detail-section" v-if="appointmentDetail.NoDealRemark">
<view class="section-title">说明信息</view>
<view class="detail-row">
<text class="detail-label">说明内容</text>
<text class="detail-value">{{ appointmentDetail.NoDealRemark }}</text>
</view>
</view>
|
29608708
李宇
增加unia-app和html
|
85
86
87
88
89
|
<!-- 操作按钮 -->
<view v-if="appointmentDetail.F_Status === '已预约'" class="action-buttons">
<button class="action-btn secondary" @click="cancelAppointment">取消预约</button>
<button class="action-btn primary" @click="confirmAppointment">确认预约</button>
</view>
|
262c3578
李宇
```
|
90
|
<view class="action-buttons" v-if="appointmentDetail.F_Status === '已确认'">
|
9854a774
李宇
最新
|
91
92
93
|
<button class="action-btn primary" @click="open('/pagesA/member-consume/member-consume')">耗卡</button>
<button class="action-btn primary" @click="open('/pagesA/lx/lx')">开单</button>
<button class="action-btn primary" @click="open('/pagesA/lx/lx','1')">活动开单</button>
|
262c3578
李宇
```
|
94
|
</view>
|
6834271f
李宇
最新
|
95
96
|
<!-- v-if="appointmentDetail.F_Status === '已取消'" -->
<view class="action-buttons">
|
262c3578
李宇
```
|
97
98
|
<button class="action-btn primary" @click="openRemarkDialog">补充说明</button>
</view>
|
29608708
李宇
增加unia-app和html
|
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
|
</view>
</view>
<!-- 自定义提示弹窗 -->
<view v-if="showAlert" class="custom-alert" @click="hideAlert">
<view class="alert-content" @click.stop>
<view class="alert-icon" :class="alertConfig.type">
<text>{{ getAlertIcon(alertConfig.type) }}</text>
</view>
<view class="alert-title">{{ alertConfig.title }}</view>
<view class="alert-message">{{ alertConfig.message }}</view>
<view class="alert-buttons">
<button v-if="alertConfig.showCancel" class="alert-btn secondary" @click="handleAlertCancel">
{{ alertConfig.cancelText }}
</button>
<button class="alert-btn primary" @click="handleAlertConfirm">
{{ alertConfig.confirmText }}
</button>
</view>
</view>
</view>
<!-- 加载遮罩 -->
<view v-if="showLoadingOverlay" class="loading-overlay">
<view class="loading-spinner"></view>
</view>
|
262c3578
李宇
```
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
<!-- 补充说明输入弹窗 -->
<view v-if="showRemarkDialog" class="dialog-overlay" @click="closeRemarkDialog">
<view class="remark-dialog" @click.stop>
<view class="dialog-header">
<text class="dialog-title">补充说明</text>
<view class="dialog-close" @click="closeRemarkDialog">
<text class="close-icon">✕</text>
</view>
</view>
<view class="dialog-content">
<view class="remark-section">
<text class="remark-label">说明内容:</text>
<textarea
v-model="remarkContent"
class="remark-input"
placeholder="请输入补充说明..."
maxlength="500"
:show-count="true"
></textarea>
</view>
</view>
<view class="dialog-buttons">
<button class="dialog-btn cancel-dialog-btn" @click="closeRemarkDialog">取消</button>
<button
class="dialog-btn confirm-dialog-btn"
@click="submitRemark"
:disabled="!remarkContent.trim() || remarkSubmitting"
:loading="remarkSubmitting"
>
确定
</button>
</view>
</view>
</view>
|
29608708
李宇
增加unia-app和html
|
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
</view>
</template>
<script>
import request from '@/service/request.js'
import config from '@/common/config.js'
import appointmentApi from '@/apis/modules/appointment.js'
export default {
data() {
return {
loading: true,
error: null,
appointmentDetail: null,
storeData: {},
projectData: {},
customerData: {},
healthWorkerData: {},
userData: {},
showAlert: false,
showLoadingOverlay: false,
alertConfig: {
type: 'info',
title: '',
message: '',
confirmText: '确定',
cancelText: '取消',
showCancel: false,
onConfirm: null,
onCancel: null
|
262c3578
李宇
```
|
190
191
192
193
|
},
showRemarkDialog: false,
remarkContent: '',
remarkSubmitting: false
|
29608708
李宇
增加unia-app和html
|
194
195
196
197
198
199
|
}
},
onLoad(options) {
this.initializePage(options);
},
methods: {
|
bdc62fa5
李宇
最新
|
200
201
202
203
204
205
206
207
208
209
|
open(url,type) {
if(type == '1') {
uni.navigateTo({
url: url+'?appointmentId='+this.appointmentDetail.id+'&gk='+this.appointmentDetail.gk+'&type=1'
});
} else{
uni.navigateTo({
url: url+'?appointmentId='+this.appointmentDetail.id+'&gk='+this.appointmentDetail.gk
});
}
|
262c3578
李宇
```
|
210
211
212
213
214
215
|
},
goToInvite(inviteId) {
uni.navigateTo({
url: '/pages/invite-detail/invite-detail?id='+inviteId
});
},
|
29608708
李宇
增加unia-app和html
|
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
// 初始化页面
async initializePage(options) {
try {
// 检查登录状态
await this.checkLoginStatus();
// 获取预约ID
const appointmentId = options.id;
if (!appointmentId) {
this.error = '缺少预约ID参数';
return;
}
// 加载预约详情
await this.loadAppointmentDetail(appointmentId);
} catch (error) {
console.error('页面初始化失败:', error);
this.error = '页面初始化失败,请刷新重试';
}
},
// 检查登录状态
async checkLoginStatus() {
const userInfo = uni.getStorageSync('userInfo');
if (!userInfo || Object.keys(userInfo).length === 0) {
uni.navigateTo({
url: '/pages/login/login'
});
return;
}
},
|
29608708
李宇
增加unia-app和html
|
248
249
250
251
252
253
|
// 格式化预约时间
formatAppointmentTime(startTime, endTime) {
if (!startTime || !endTime) return '未设置';
try {
const start = new Date(startTime);
const end = new Date(endTime);
|
0f14a621
李宇
最新
|
254
255
|
const startStr = uni.$u.timeFormat(start,'yyyy-mm-dd hh:MM')
const endStr = uni.$u.timeFormat(end,'hh:MM')
|
29608708
李宇
增加unia-app和html
|
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
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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
|
return `${startStr} - ${endStr}`;
} catch (error) {
return `${startTime} - ${endTime}`;
}
},
// 获取状态文本
getStatusText(fStatus) {
if (fStatus === '已确认') return '已确认';
if (fStatus === '已取消') return '已取消';
if (fStatus === '已预约') return '已预约';
return fStatus || '待确认';
},
// 获取门店名称
getStoreName(storeId) {
return this.storeData[storeId] || this.appointmentDetail?.dm || '未知门店';
},
// 获取项目名称
getProjectName(projectId) {
return this.projectData[projectId] || this.appointmentDetail?.xmmc || '未知项目';
},
// 获取健康师名称
getHealthWorkerName(healthWorkerId) {
return this.healthWorkerData[healthWorkerId] || this.appointmentDetail?.yyjks || '未分配';
},
// 加载预约详情
async loadAppointmentDetail(appointmentId) {
try {
this.loading = true;
this.error = null;
// 尝试通过单个详情API获取
const response = await appointmentApi.getAppointmentDetail(appointmentId);
if (response && response.code === 200 && response.data) {
this.appointmentDetail = response.data;
this.loadFromListAPI()
}
} catch (error) {
console.error('加载预约详情失败:', error);
} finally {
this.loading = false;
}
},
// 从列表API中查找详情
async loadFromListAPI(appointmentId) {
try {
await this.loadRelatedData();
} catch (error) {
console.error('从列表API加载详情失败:', error);
this.error = '加载详情失败,请重试';
}
},
// 加载相关数据
async loadRelatedData() {
try {
// 并行加载所有相关数据
await Promise.all([
// this.loadStoreData(this.appointmentDetail.djmd),
this.loadProjectData(this.appointmentDetail.yytyxm),
// this.loadCustomerData(this.appointmentDetail.gkxm),
// this.loadHealthWorkerData(this.appointmentDetail.yyjks),
// this.loadUserData(this.appointmentDetail.yyr)
]);
} catch (error) {
console.error('加载相关数据失败:', error);
}
},
// 加载门店数据
async loadStoreData(storeId) {
try {
let response;
if (storeId) {
response = await request.get(`/api/Extend/LqMdxx/${storeId}`);
} else {
response = await request.get('/api/Extend/LqMdxx', {
page: 1,
pageSize: 1000
});
}
if (response && response.code === 200 && response.data) {
this.storeData = {};
if (storeId && response.data) {
this.storeData[response.data.id] = response.data.dm;
} else if (response.data.list) {
response.data.list.forEach(item => {
this.storeData[item.id] = item.dm;
});
}
}
} catch (error) {
console.error('获取门店数据出错:', error);
}
},
// 加载项目数据
async loadProjectData(projectId) {
try {
let response;
if (projectId) {
response = await request.get(`/api/Extend/LqXmzl/${projectId}`);
} else {
response = await appointmentApi.getProjectList({
page: 1,
pageSize: 1000
});
}
if (response && response.code === 200 && response.data) {
this.projectData = {};
if (projectId && response.data) {
this.projectData[response.data.id] = response.data.xmmc;
} else if (response.data.list) {
response.data.list.forEach(item => {
this.projectData[item.id] = item.xmmc;
});
}
}
} catch (error) {
console.error('获取项目数据出错:', error);
}
},
// 加载客户数据
async loadCustomerData(customerId) {
try {
let response;
if (customerId) {
response = await request.get(`/api/Extend/LqKhxx/${customerId}`);
} else {
response = await appointmentApi.getCustomerList({
page: 1,
pageSize: 1000
});
}
if (response && response.code === 200 && response.data) {
this.customerData = {};
if (customerId && response.data) {
this.customerData[response.data.id] = {
name: response.data.khmc,
type: response.data.khlx
};
} else if (response.data.list) {
response.data.list.forEach(item => {
this.customerData[item.id] = {
name: item.khmc,
type: item.khlx
};
});
}
}
} catch (error) {
console.error('获取客户数据出错:', error);
}
},
// 加载健康师数据
async loadHealthWorkerData(healthWorkerId) {
try {
let response;
if (healthWorkerId) {
response = await request.get(`/api/permission/Users/${healthWorkerId}`);
} else {
response = await appointmentApi.getHealthWorkerList({
page: 1,
pageSize: 1000
});
}
if (response && response.code === 200 && response.data) {
this.healthWorkerData = {};
if (healthWorkerId && response.data) {
this.healthWorkerData[response.data.id] = response.data.realName;
} else if (response.data.list) {
response.data.list.forEach(item => {
this.healthWorkerData[item.id] = item.realName;
});
}
}
} catch (error) {
console.error('获取健康师数据出错:', error);
}
},
// 加载用户数据
async loadUserData(userId) {
try {
if (!userId) return;
const response = await request.get(`/api/permission/Users/${userId}`);
if (response && response.code === 200 && response.data) {
this.userData = response.data;
}
} catch (error) {
console.error('获取用户数据出错:', error);
}
},
// 取消预约
cancelAppointment() {
this.showCustomAlert({
type: 'warning',
title: '取消预约',
message: '确定要取消这个预约吗?',
showCancel: true,
onConfirm: () => this.performCancelAppointment()
});
},
// 执行取消预约操作
async performCancelAppointment() {
try {
this.showLoadingOverlay = true;
const response = await request.put(`/api/Extend/lqyyjl/${this.appointmentDetail.id}`, {
f_Status: "已取消",
id: this.appointmentDetail.id
});
this.showLoadingOverlay = false;
if (response && response.code === 200) {
this.showSuccessAlert('预约已成功取消', '操作成功');
// 重新加载详情
await this.loadAppointmentDetail(this.appointmentDetail.id);
} else {
this.showErrorAlert(response?.message || '取消预约失败', '操作失败');
}
} catch (error) {
this.showLoadingOverlay = false;
console.error('取消预约失败:', error);
this.showErrorAlert('取消预约失败,请重试', '操作失败');
}
},
// 确认预约
confirmAppointment() {
this.showCustomAlert({
type: 'warning',
title: '确认预约',
message: '确定要确认这个预约吗?',
showCancel: true,
onConfirm: () => this.performConfirmAppointment()
});
},
// 执行确认预约操作
async performConfirmAppointment() {
try {
this.showLoadingOverlay = true;
const response = await request.put(`/api/Extend/lqyyjl/${this.appointmentDetail.id}`, {
f_Status: "已确认",
id: this.appointmentDetail.id
});
this.showLoadingOverlay = false;
if (response && response.code === 200) {
this.showSuccessAlert('预约已成功确认', '操作成功');
// 重新加载详情
await this.loadAppointmentDetail(this.appointmentDetail.id);
} else {
this.showErrorAlert(response?.message || '确认预约失败', '操作失败');
}
} catch (error) {
this.showLoadingOverlay = false;
console.error('确认预约失败:', error);
this.showErrorAlert('确认预约失败,请重试', '操作失败');
}
},
// 显示自定义提示弹窗
showCustomAlert(options) {
this.alertConfig = {
type: 'info',
title: '',
message: '',
confirmText: '确定',
cancelText: '取消',
showCancel: false,
onConfirm: null,
onCancel: null,
...options
};
this.showAlert = true;
},
// 隐藏弹窗
hideAlert() {
this.showAlert = false;
},
// 处理弹窗确认
handleAlertConfirm() {
this.hideAlert();
if (this.alertConfig.onConfirm) {
this.alertConfig.onConfirm();
}
},
// 处理弹窗取消
handleAlertCancel() {
this.hideAlert();
if (this.alertConfig.onCancel) {
this.alertConfig.onCancel();
}
},
// 获取弹窗图标
getAlertIcon(type) {
const icons = {
success: '✓',
error: '✕',
warning: '⚠',
info: 'ℹ'
};
return icons[type] || icons.info;
},
// 成功提示
showSuccessAlert(message, title = '操作成功') {
this.showCustomAlert({
type: 'success',
title: title,
message: message,
confirmText: '确定'
});
},
// 错误提示
showErrorAlert(message, title = '操作失败') {
this.showCustomAlert({
type: 'error',
title: title,
message: message,
confirmText: '确定'
});
},
// 重试加载
retryLoad() {
const appointmentId = this.appointmentDetail?.id;
if (appointmentId) {
this.loadAppointmentDetail(appointmentId);
}
},
// 返回上一页
goBack() {
uni.navigateBack({
delta: 1
});
|
262c3578
李宇
```
|
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
|
},
// 打开补充说明弹窗
openRemarkDialog() {
this.remarkContent = this.appointmentDetail?.NoDealRemark || '';
this.showRemarkDialog = true;
},
// 关闭补充说明弹窗
closeRemarkDialog() {
this.showRemarkDialog = false;
this.remarkContent = '';
},
// 提交补充说明
async submitRemark() {
if (!this.remarkContent.trim()) {
this.showErrorAlert('请输入说明内容', '提示');
return;
}
try {
this.remarkSubmitting = true;
const response = await request.post('/api/Extend/lqyyjl/AddNoDealRemark', {
id: this.appointmentDetail.id,
noDealRemark: this.remarkContent.trim()
});
this.remarkSubmitting = false;
if (response && response.code === 200) {
this.showSuccessAlert('补充说明已成功保存', '操作成功');
this.closeRemarkDialog();
// 重新加载详情
await this.loadAppointmentDetail(this.appointmentDetail.id);
} else {
this.showErrorAlert(response?.msg || '保存失败', '操作失败');
}
} catch (error) {
this.remarkSubmitting = false;
console.error('提交补充说明失败:', error);
this.showErrorAlert('保存失败,请重试', '操作失败');
}
|
29608708
李宇
增加unia-app和html
|
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
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
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
914
915
916
917
918
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
|
}
}
}
</script>
<style>
.container {
min-height: 100vh;
background: linear-gradient(135deg, #e8f5e9 0%, #b2dfdb 100%);
padding: 20px;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.back-btn {
background: #fff;
border: none;
border-radius: 12px;
padding: 8px 12px;
color: #388e3c;
font-size: 0.9em;
box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}
.title {
text-align: center;
color: #388e3c;
margin: 10px 0;
letter-spacing: 2px;
font-size: 1.2em;
font-weight: bold;
}
.detail-card {
background: #fff;
border-radius: 16px;
box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
overflow: hidden;
margin-bottom: 20px;
}
.detail-header {
background: linear-gradient(120deg, #43e97b 0%, #38f9d7 100%);
padding: 20px;
color: #fff;
text-align: center;
}
.customer-name {
font-size: 1.3em;
font-weight: bold;
margin-bottom: 8px;
}
.customer-phone {
font-size: 1em;
opacity: 0.9;
}
.detail-content {
padding: 20px;
}
.detail-section {
margin-bottom: 24px;
}
.detail-section:last-child {
margin-bottom: 0;
}
.section-title {
font-size: 1.1em;
font-weight: 600;
color: #2e7d32;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid #e8f5e9;
letter-spacing: 1px;
}
.detail-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid #f0f0f0;
}
.detail-row:last-child {
border-bottom: none;
}
.detail-label {
color: #6a9c6a;
font-weight: 500;
font-size: 0.95em;
min-width: 80px;
}
.detail-value {
color: #2e7d32;
font-weight: 500;
text-align: right;
flex: 1;
margin-left: 16px;
}
.status-badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 0.85em;
font-weight: 500;
}
.status-badge.success {
background: #e8f5e9;
color: #2e7d32;
}
.status-badge.failed {
background: #ffebee;
color: #c62828;
}
.status-badge.pending {
background: #fff3e0;
color: #ef6c00;
}
.loading {
text-align: center;
padding: 60px 20px;
color: #6a9c6a;
font-size: 1.1em;
}
.error-state {
text-align: center;
padding: 60px 20px;
color: #c62828;
}
.retry-btn {
background: #43a047;
color: #fff;
border: none;
border-radius: 8px;
padding: 12px 24px;
margin-top: 16px;
font-size: 1em;
}
.action-buttons {
display: flex;
gap: 12px;
margin-top: 20px;
}
.action-btn {
flex: 1;
padding: 8px 12px;
border: none;
border-radius: 8px;
font-size: 0.9em;
font-weight: 500;
}
.action-btn.primary {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: #fff;
box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
}
.action-btn.secondary {
background: #f5f5f5;
color: #666;
border: 1px solid #ddd;
}
/* 自定义提示弹窗样式 */
.custom-alert {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.alert-content {
background: #fff;
border-radius: 12px;
padding: 24px;
max-width: 280px;
width: 85%;
text-align: center;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.alert-icon {
width: 50px;
height: 50px;
margin: 0 auto 16px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
.alert-icon.success {
background: #e8f5e9;
color: #43a047;
}
.alert-icon.error {
background: #ffebee;
color: #c62828;
}
.alert-icon.warning {
background: #fff3e0;
color: #ef6c00;
}
.alert-title {
font-size: 1.1em;
font-weight: 600;
color: #333;
margin-bottom: 10px;
}
.alert-message {
color: #666;
line-height: 1.4;
margin-bottom: 20px;
font-size: 0.95em;
}
.alert-buttons {
display: flex;
gap: 12px;
justify-content: center;
}
.alert-btn {
padding: 8px 20px;
border: none;
border-radius: 6px;
font-size: 0.9em;
font-weight: 500;
min-width: 70px;
}
.alert-btn.primary {
background: #43a047;
color: #fff;
}
.alert-btn.secondary {
background: #f5f5f5;
color: #666;
border: 1px solid #ddd;
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid #e8f5e9;
border-radius: 50%;
border-top-color: #43a047;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
|
262c3578
李宇
```
|
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
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
|
/* 补充说明弹窗样式 */
.dialog-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1001;
}
.remark-dialog {
background: #fff;
border-radius: 16px;
overflow: hidden;
width: 85%;
max-width: 500px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.dialog-header {
background: linear-gradient(120deg, #43e97b 0%, #38f9d7 100%);
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.dialog-title {
color: #fff;
font-size: 1.1em;
font-weight: 600;
letter-spacing: 1px;
}
.dialog-close {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transition: background 0.3s;
}
.dialog-close:hover {
background: rgba(255, 255, 255, 0.3);
}
.close-icon {
color: #fff;
font-size: 18px;
font-weight: bold;
}
.dialog-content {
padding: 24px;
}
.remark-section {
display: flex;
flex-direction: column;
}
.remark-label {
font-size: 0.95em;
color: #2e7d32;
font-weight: 500;
margin-bottom: 12px;
}
.remark-input {
width: 100%;
min-height: 120px;
padding: 12px;
border: 1px solid #e0e0e0;
border-radius: 8px;
font-size: 0.9em;
color: #333;
background: #fafafa;
resize: none;
box-sizing: border-box;
}
.remark-input:focus {
border-color: #43a047;
background: #fff;
outline: none;
}
.dialog-buttons {
display: flex;
gap: 12px;
padding: 16px 24px;
border-top: 1px solid #f0f0f0;
}
.dialog-btn {
flex: 1;
padding: 10px 20px;
border: none;
border-radius: 8px;
font-size: 0.95em;
font-weight: 500;
cursor: pointer;
transition: all 0.3s;
}
.dialog-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.cancel-dialog-btn {
background: #f5f5f5;
color: #666;
border: 1px solid #ddd;
}
.cancel-dialog-btn:active {
background: #e0e0e0;
}
.confirm-dialog-btn {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: #fff;
box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
}
.confirm-dialog-btn:active:not(:disabled) {
transform: translateY(1px);
box-shadow: 0 2px 8px rgba(67, 233, 123, 0.3);
}
|
29608708
李宇
增加unia-app和html
|
1107
|
</style>
|