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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
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
207
208
209
210
211
212
213
214
215
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
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
|
<template>
<view class="container">
<!-- 表单卡片 -->
<view class="form-card">
<view class="form-content">
<!-- 基本信息 -->
<view class="form-section">
<view class="form-group">
<text class="form-label">客户名称 *</text>
<input
type="text"
v-model="formData.khmc"
placeholder="请输入客户姓名"
class="input"
@input="validateForm"
/>
</view>
<view class="form-group">
<text class="form-label">手机号 *</text>
<input
type="tel"
v-model="formData.sjh"
placeholder="请输入手机号"
class="input"
@input="validateForm"
/>
</view>
<view class="form-group">
<text class="form-label">性别</text>
<picker
:value="genderIndex"
:range="genderOptions"
@change="onGenderChange"
>
<view class="picker-view">{{ genderOptions[genderIndex] || '请选择性别' }}</view>
</picker>
</view>
<view class="form-group">
<text class="form-label">出生日期</text>
<picker
mode="date"
:value="formData.yanglsr"
@change="onBirthDateChange"
>
<view class="picker-view">{{ formData.yanglsr || '请选择出生日期' }}</view>
</picker>
</view>
</view>
<!-- 归属信息 -->
<view class="form-section">
<view class="form-group">
<text class="form-label">归属门店 *</text>
<view class="custom-select" @click="handleSelectClick('gsmd')" @tap="handleSelectClick('gsmd')">
<text class="select-text">{{ formData.gsmd?getgsmdname(formData.gsmd):'请选择归属门店' }}</text>
<text class="select-arrow">▼</text>
</view>
</view>
<view class="form-group">
<text class="form-label">健康师</text>
<view class="custom-select" @click="handleSelectClick('mainHealthUser')" @tap="handleSelectClick('mainHealthUser')">
<text class="select-text">{{ formData.mainHealthUserName || '请选择健康师' }}</text>
<text class="select-arrow">▼</text>
</view>
</view>
<view class="form-group">
<text class="form-label">负责顾问</text>
<view class="custom-select" @click="handleSelectClick('subHealthUser')" @tap="handleSelectClick('subHealthUser')">
<text class="select-text">{{ formData.subHealthUserName || '请选择负责顾问' }}</text>
<text class="select-arrow">▼</text>
</view>
</view>
</view>
<!-- 其他信息 -->
<view class="form-section">
<view class="form-group">
<text class="form-label">联系地址</text>
<input
type="text"
v-model="formData.lxdz"
placeholder="请输入详细联系地址"
class="input"
/>
</view>
<view class="form-group">
<text class="form-label">备注</text>
<textarea
v-model="formData.bz"
placeholder="请输入备注信息"
class="textarea"
maxlength="500"
></textarea>
</view>
</view>
<view class="btn-group">
<button
type="default"
size="normal"
@click="resetForm"
class="btn btn-secondary"
>
重置
</button>
<button
type="primary"
size="normal"
:disabled="!isFormValid"
@click="updateMember"
class="btn btn-primary"
>
{{ isSubmitting ? '更新中...' : '确定更新' }}
</button>
</view>
</view>
</view>
<!-- 选择弹窗 -->
<SearchSelectModal
:show="showModal"
:title="modalTitle"
:options="currentOptions"
:loading="modalLoading"
:has-more="hasMoreData"
:search-param="searchParam"
@confirm="handleModalConfirm"
@close="closeModal"
@load-more="handleLoadMore"
@refresh="handleRefresh"
@search="handleSearch"
/>
</view>
</template>
<script>
import SearchSelectModal from '@/components/SearchSelectModal.vue'
export default {
components: {
SearchSelectModal
},
data() {
return {
// 表单数据
formData: {
id: '',
khmc: '',
sjh: '',
dah: '',
xb: '',
yanglsr: '',
gsmd: '',
gsmdName: '',
khlx: '1',
mainHealthUser: '',
mainHealthUserName: '',
subHealthUser: '',
subHealthUserName: '',
jdqd: '自然到店',
tjr: '',
referrerName: '',
zcsj: '',
lxdz: '',
bz: ''
},
// 选项数据
genderOptions: ['男', '女'],
genderIndex: null,
memberTypeOptions: ['老客', '新客'],
memberTypeIndex: 0,
memberSourceOptions: ['19.9卡', '自然到店', '嘉宾', '售后', '直播间', '转店顾客', '美团', '联联', '三方拓客', '其他', '补录'],
memberSourceIndex: 1, // 默认选择"自然到店"
// 门店和人员选项
storeOptions: [],
healthUserOptions: [],
advisorOptions: [],
// 推荐人相关
showReferrerGroup: false,
referrerOptions: [],
// 弹窗相关
showModal: false,
modalTitle: '选择',
currentSelectField: '',
currentOptions: [],
modalLoading: false,
hasMoreData: true,
currentPage: 1,
pageSize: 20,
searchKeyword: '',
searchParam: '',
// 表单验证
isFormValid: false,
isSubmitting: false,
// 用户信息
userInfo: null,
// 会员ID
memberId: null
}
},
onLoad(options) {
if (options.id) {
this.memberId = options.id;
this.initializePage();
} else {
uni.showToast({
title: '缺少会员ID参数',
icon: 'none'
});
setTimeout(() => {
uni.navigateBack();
}, 1500);
}
},
methods: {
getgsmdname(id){
return this.storeOptions.find(item => item.value === id)?.label || '';
},
// 处理选择器点击
handleSelectClick(fieldId) {
this.openSelectModal(fieldId);
},
// 初始化页面
async initializePage() {
try {
// 获取用户信息
this.userInfo = uni.getStorageSync('userInfo');
if (!this.userInfo) {
uni.showToast({
title: '请先登录',
icon: 'none'
});
setTimeout(() => {
uni.navigateTo({
url: '/pages/login/login'
});
}, 1500);
return;
}
// 加载会员详情
await this.loadMemberDetail();
// 加载选项数据
await this.loadInitialOptionsData();
} catch (error) {
console.error('初始化失败:', error);
uni.showToast({
title: '页面初始化失败',
icon: 'none'
});
}
},
// 加载会员详情
async loadMemberDetail() {
try {
const response = await this.API.getMemberDetail(this.memberId);
if (response.code === 200 && response.data) {
const member = response.data;
// 填充表单数据
this.formData = {
id: member.id,
khmc: member.khmc || '',
sjh: member.sjh || '',
dah: member.dah || '',
xb: member.xb || '',
|
29608708
李宇
增加unia-app和html
|
292
293
294
295
296
297
298
299
300
301
|
gsmd: member.gsmd || '',
gsmdName: member.gsmdName || '',
khlx: member.khlx || '1',
mainHealthUser: member.mainHealthUser || '',
mainHealthUserName: member.mainHealthUserName || '',
subHealthUser: member.subHealthUser || '',
subHealthUserName: member.subHealthUserName || '',
jdqd: member.jdqd || '自然到店',
tjr: member.tjr || '',
referrerName: member.referrerName || '',
|
29608708
李宇
增加unia-app和html
|
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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
|
lxdz: member.lxdz || '',
bz: member.bz || ''
};
// 设置选择器索引
this.genderIndex = this.genderOptions.indexOf(member.xb);
if (this.genderIndex === -1) this.genderIndex = null;
this.memberTypeIndex = member.khlx === '1' ? 0 : 1;
this.memberSourceIndex = this.memberSourceOptions.indexOf(member.jdqd);
if (this.memberSourceIndex === -1) this.memberSourceIndex = 1;
// 检查是否需要显示推荐人
if (member.jdqd === '嘉宾') {
this.showReferrerGroup = true;
}
this.validateForm();
} else {
uni.showToast({
title: '获取会员信息失败',
icon: 'none'
});
}
} catch (error) {
console.error('获取会员详情失败:', error);
uni.showToast({
title: '获取会员信息失败',
icon: 'none'
});
}
},
// 加载选项数据
async loadInitialOptionsData() {
try {
// 加载门店选项
await this.loadStoreOptions();
// 如果已选择门店,加载健康师和顾问选项
if (this.formData.gsmd) {
await this.loadHealthUserOptions();
await this.loadAdvisorOptions();
}
} catch (error) {
console.error('加载选项数据失败:', error);
}
},
// 加载门店选项
async loadStoreOptions() {
try {
const response = await this.API.getStoreList();
if (response.code === 200 && response.data) {
// 将当前门店作为选项
this.storeOptions = response.data.map(item => ({
value: item.id,
label: item.fullName
}));
}
} catch (error) {
console.error('获取门店选项失败:', error);
}
},
// 加载健康师选项
async loadHealthUserOptions() {
if (!this.formData.gsmd) return;
try {
const response = await this.API.getHealthUserList({
mdid: this.formData.gsmd,
gw: '健康师'
});
if (response.code === 200 && response.data && response.data.list ) {
this.healthUserOptions = response.data.list.map(item => ({
value: item.id,
label: item.realName || item.name || item.userName
}));
}
} catch (error) {
console.error('获取健康师选项失败:', error);
}
},
// 加载顾问选项
async loadAdvisorOptions() {
if (!this.formData.gsmd) return;
try {
const response = await this.API.getAdvisorList({
mdid: this.formData.gsmd,
gw: '健康师'
});
if (response.code === 200 && response.data && response.data.list) {
this.advisorOptions = response.data.list.map(item => ({
value: item.id,
label: item.realName || item.name || item.userName
}));
}
} catch (error) {
console.error('获取顾问选项失败:', error);
}
},
// 性别变化
onGenderChange(e) {
this.genderIndex = e.detail.value;
this.formData.xb = this.genderOptions[this.genderIndex];
},
// 客户类型变化
onMemberTypeChange(e) {
this.memberTypeIndex = e.detail.value;
this.formData.khlx = this.memberTypeIndex === 0 ? '1' : '2';
},
// 客户来源变化
onMemberSourceChange(e) {
this.memberSourceIndex = e.detail.value;
this.formData.jdqd = this.memberSourceOptions[this.memberSourceIndex];
if (this.formData.jdqd === '嘉宾') {
this.showReferrerGroup = true;
} else {
this.showReferrerGroup = false;
this.formData.tjr = '';
this.formData.referrerName = '';
}
this.validateForm();
},
// 出生日期变化
onBirthDateChange(e) {
this.formData.yanglsr = e.detail.value;
},
// 注册时间变化
onRegisterDateChange(e) {
this.formData.zcsj = e.detail.value;
},
// 打开选择弹窗
async openSelectModal(fieldId) {
this.currentSelectField = fieldId;
this.showModal = true;
this.modalTitle = '加载中...';
this.modalLoading = true;
this.currentPage = 1;
this.hasMoreData = true;
this.searchKeyword = '';
// 设置搜索参数
switch(fieldId) {
case 'gsmd':
this.searchParam = 'name';
this.modalTitle = '选择归属门店';
this.currentOptions = this.storeOptions;
this.modalLoading = false;
break;
case 'mainHealthUser':
this.searchParam = 'name';
this.modalTitle = '选择健康师';
this.currentOptions = this.healthUserOptions;
this.modalLoading = false;
break;
case 'subHealthUser':
this.searchParam = 'name';
this.modalTitle = '选择负责顾问';
this.currentOptions = this.advisorOptions;
this.modalLoading = false;
break;
case 'referrer':
this.searchParam = 'khmc';
this.modalTitle = '选择推荐人';
break;
}
try {
if (fieldId === 'referrer') {
await this.loadOptionsData(fieldId, 1);
}
} catch (error) {
console.error('获取选项数据失败:', error);
this.modalTitle = '加载失败';
this.currentOptions = [];
uni.showToast({
title: '数据加载失败,请检查网络连接',
icon: 'none'
});
} finally {
if (fieldId === 'referrer') {
this.modalLoading = false;
}
}
},
// 关闭弹窗
closeModal() {
this.showModal = false;
this.currentSelectField = '';
this.currentOptions = [];
this.modalLoading = false;
},
// 加载选项数据
async loadOptionsData(fieldId, page = 1, searchKeyword = '') {
let options = [];
switch(fieldId) {
case 'referrer':
options = await this.getMemberOptions(page, searchKeyword);
break;
}
if (page === 1) {
this.currentOptions = options;
} else {
this.currentOptions = [...this.currentOptions, ...options];
}
// 检查是否还有更多数据
if (options.length < this.pageSize) {
this.hasMoreData = false;
}
},
// 处理弹窗确认选择
handleModalConfirm(selectedOption) {
if (this.currentSelectField && selectedOption) {
switch(this.currentSelectField) {
case 'gsmd':
this.formData.gsmd = selectedOption.value;
this.formData.gsmdName = selectedOption.label;
// 重新加载健康师和顾问选项
this.loadHealthUserOptions();
this.loadAdvisorOptions();
break;
case 'mainHealthUser':
this.formData.mainHealthUser = selectedOption.value;
this.formData.mainHealthUserName = selectedOption.label;
break;
case 'subHealthUser':
this.formData.subHealthUser = selectedOption.value;
this.formData.subHealthUserName = selectedOption.label;
break;
case 'referrer':
this.formData.tjr = selectedOption.value;
this.formData.referrerName = selectedOption.label;
break;
}
this.validateForm();
}
},
// 处理加载更多
async handleLoadMore(page) {
if (this.currentSelectField && this.hasMoreData && !this.modalLoading) {
this.modalLoading = true;
try {
await this.loadOptionsData(this.currentSelectField, page, this.searchKeyword);
} catch (error) {
console.error('加载更多数据失败:', error);
uni.showToast({
title: '加载失败',
icon: 'none'
});
} finally {
this.modalLoading = false;
}
}
},
// 处理刷新
async handleRefresh() {
if (this.currentSelectField) {
this.currentPage = 1;
this.hasMoreData = true;
this.searchKeyword = '';
await this.loadOptionsData(this.currentSelectField, 1);
}
},
// 处理搜索
async handleSearch(searchKeyword) {
if (this.currentSelectField) {
this.searchKeyword = searchKeyword;
this.currentPage = 1;
this.hasMoreData = true;
this.modalLoading = true;
try {
await this.loadOptionsData(this.currentSelectField, 1, searchKeyword);
} catch (error) {
console.error('搜索失败:', error);
uni.showToast({
title: '搜索失败',
icon: 'none'
});
} finally {
this.modalLoading = false;
}
}
},
// 获取会员选项
async getMemberOptions(page = 1, searchKeyword = '') {
try {
const params = {
currentPage: page,
pageSize: this.pageSize
};
// 如果有搜索关键词,添加搜索参数
if (searchKeyword && this.searchParam === 'khmc') {
params.keyword = searchKeyword;
}
const response = await this.API.getMemberList(params);
if (response.code === 200 && response.data) {
return response.data.list.map(item => ({
value: item.id,
label: item.khmc,
subtitle:'客户类型:'+(item.khlxName||'无')+';手机号:'+(item.sjh||'无')+';健康师:' +(item.mrsName || '无')+';门店:'+ (item.gsmdName || '无')+';',
sjh: item.sjh,
khlx: item.khlx
}));
}
return [];
} catch (error) {
console.error('获取会员选项失败:', error);
return [];
}
},
|
29608708
李宇
增加unia-app和html
|
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
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
968
969
970
|
// 验证表单
validateForm() {
const { khmc, sjh, gsmd, jdqd, tjr } = this.formData;
// 基本验证
if (!khmc || !sjh || !gsmd) {
this.isFormValid = false;
return;
}
// 手机号格式验证
const phoneRegex = /^1[3-9]\d{9}$/;
if (!phoneRegex.test(sjh)) {
this.isFormValid = false;
return;
}
// 如果是嘉宾,必须选择推荐人
if (jdqd === '嘉宾' && !tjr) {
this.isFormValid = false;
return;
}
this.isFormValid = true;
},
// 重置表单
resetForm() {
uni.showModal({
title: '确认重置',
content: '确定要重置表单吗?',
success: (res) => {
if (res.confirm) {
this.loadMemberDetail();
uni.showToast({
title: '表单已重置',
icon: 'success'
});
}
}
});
},
// 更新会员
async updateMember() {
const { khmc, sjh, gsmd, jdqd, tjr } = this.formData;
// 验证必填字段
if (!khmc) {
uni.showToast({
title: '请输入客户名称',
icon: 'none'
});
return;
}
if (!sjh) {
uni.showToast({
title: '请输入手机号',
icon: 'none'
});
return;
}
// 验证手机号格式
const phoneRegex = /^1[3-9]\d{9}$/;
if (!phoneRegex.test(sjh)) {
uni.showToast({
title: '请输入正确的手机号格式',
icon: 'none'
});
return;
}
if (!gsmd) {
uni.showToast({
title: '请选择归属门店',
icon: 'none'
});
return;
}
// 如果是嘉宾,必须选择推荐人
if (jdqd === '嘉宾' && !tjr) {
uni.showToast({
title: '选择嘉宾时必须选择推荐人',
icon: 'none'
});
return;
}
// 构建提交数据
const memberData = {
...this.formData,
yanglsr: this.formData.yanglsr ? new Date(this.formData.yanglsr).getTime() : null,
zcsj: this.formData.zcsj ? new Date(this.formData.zcsj).getTime() : null
};
try {
this.isSubmitting = true;
const response = await this.API.updateMember(this.memberId, memberData);
console.log(response);
if (response.code === 200) {
uni.showToast({
title: '会员信息更新成功!',
icon: 'success'
});
// 延迟返回上一页
setTimeout(() => {
uni.navigateBack();
}, 1500);
} else {
uni.showToast({
title: `更新失败:${response.msg || '未知错误'}`,
icon: 'none'
});
}
} catch (error) {
console.error('更新失败:', error);
uni.showToast({
title: '网络错误,请检查连接后重试',
icon: 'none'
});
} finally {
this.isSubmitting = false;
}
}
}
}
</script>
<style lang="scss" scoped>
.container {
// height: 100vh;
background: linear-gradient(135deg, #e8f5e9 0%, #b2dfdb 100%);
padding: 20rpx;
box-sizing: border-box;
}
.form-card {
background: #fff;
border-radius: 36rpx;
box-shadow: 0 8rpx 48rpx 0 rgba(76, 175, 80, 0.10);
border: 3rpx solid #c8e6c9;
overflow: hidden;
}
.form-content {
padding: 48rpx;
}
.form-section {
margin-bottom: 48rpx;
}
.form-section:last-child {
margin-bottom: 0;
}
.section-title {
display: flex;
align-items: center;
margin-bottom: 32rpx;
padding: 16rpx 24rpx;
background: linear-gradient(120deg, #43e97b 0%, #38f9d7 100%);
border-radius: 20rpx;
color: #fff;
font-weight: bold;
font-size: 28rpx;
letter-spacing: 2rpx;
box-shadow: 0 4rpx 16rpx rgba(67, 233, 123, 0.3);
}
.title-icon {
margin-right: 16rpx;
font-size: 32rpx;
}
.title-text {
flex: 1;
}
.form-group {
margin-bottom: 40rpx;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-label {
display: block;
margin-bottom: 16rpx;
font-weight: bold;
color: #388e3c;
letter-spacing: 2rpx;
font-size: 28rpx;
}
.input {
width: 100%;
padding: 24rpx;
border: 3rpx solid #c8e6c9;
border-radius: 20rpx;
font-size: 28rpx;
background: #f9fff9;
color: #2e7d32;
box-sizing: border-box;
min-height: 80rpx;
display: flex;
align-items: center;
}
.input:focus {
border-color: #43a047;
background: #fff;
}
.input::placeholder {
color: #81c784;
}
.textarea {
width: 100%;
padding: 24rpx;
border: 3rpx solid #c8e6c9;
border-radius: 20rpx;
font-size: 28rpx;
background: #f9fff9;
color: #2e7d32;
box-sizing: border-box;
min-height: 120rpx;
resize: none;
}
.textarea:focus {
border-color: #43a047;
background: #fff;
}
.textarea::placeholder {
color: #81c784;
}
.custom-select {
position: relative;
background: #f9fff9;
border: 3rpx solid #c8e6c9;
border-radius: 20rpx;
padding: 24rpx;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
z-index: 10;
min-height: 80rpx;
box-sizing: border-box;
}
.select-text {
font-size: 28rpx;
color: #2e7d32;
flex: 1;
}
.select-arrow {
position: absolute;
right: 24rpx;
top: 50%;
transform: translateY(-50%);
color: #6a9c6a;
font-size: 24rpx;
pointer-events: none;
}
.picker-view {
width: 100%;
padding: 24rpx;
border: 3rpx solid #c8e6c9;
border-radius: 20rpx;
font-size: 28rpx;
background: #f9fff9;
color: #2e7d32;
box-sizing: border-box;
}
.btn-group {
display: flex;
gap: 24rpx;
margin-top: 48rpx;
}
.btn {
flex: 1;
border-radius: 20rpx;
font-size: 28rpx;
font-weight: bold;
letter-spacing: 2rpx;
}
.btn-primary {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: #fff;
box-shadow: 0 4rpx 16rpx rgba(67, 233, 123, 0.3);
}
.btn-primary:disabled {
background: #e0e0e0;
color: #999;
box-shadow: none;
}
.btn-secondary {
background: #f5f5f5;
color: #666;
border: 3rpx solid #ddd;
}
// @media (max-width: 750rpx) {
// .form-content {
// padding: 40rpx;
// }
// .btn-group {
// flex-direction: column;
// }
// }
</style>
|