wangzhibo
2026-08-30 c8515170fd399b4d2dfaebb59128d4674e58915e
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
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
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
840
841
842
843
844
845
846
847
848
849
850
<route lang="jsonc" type="page">
{
  "layout": "default",
  "style": {
    "navigationStyle": "custom",
    "navigationBarTitleText": "ForgotPassword"
  }
}
</route>
 
<script lang="ts" setup>
import { onLoad } from '@dcloudio/uni-app'
import { computed, onMounted, ref } from 'vue'
// 导入API接口
import { retrievePassword, sendSmsCode } from '@/api/auth'
// 导入国际化相关功能
import { initI18n, t } from '@/i18n'
import { useConfigStore } from '@/store'
import { getEnvBaseUrl, sm2Encrypt } from '@/utils'
import { toast } from '@/utils/toast'
 
// 获取屏幕边界到安全区域距离
let safeAreaInsets
let systemInfo
 
// #ifdef MP-WEIXIN
// 微信小程序使用新的API
systemInfo = uni.getWindowInfo()
safeAreaInsets = systemInfo.safeArea
  ? {
      top: systemInfo.safeArea.top,
      right: systemInfo.windowWidth - systemInfo.safeArea.right,
      bottom: systemInfo.windowHeight - systemInfo.safeArea.bottom,
      left: systemInfo.safeArea.left,
    }
  : null
// #endif
 
// #ifndef MP-WEIXIN
// 其他平台继续使用uni API
systemInfo = uni.getSystemInfoSync()
safeAreaInsets = systemInfo.safeAreaInsets
// #endif
 
// 表单数据
interface ForgotPasswordData {
  mobile: string
  captcha: string
  captchaId: string
  mobileCaptcha: string
  newPassword: string
  confirmPassword: string
  areaCode: string
}
 
const formData = ref<ForgotPasswordData>({
  mobile: '',
  captcha: '',
  captchaId: '',
  mobileCaptcha: '',
  newPassword: '',
  confirmPassword: '',
  areaCode: '+86',
})
 
// 验证码图片
const captchaImage = ref('')
const loading = ref(false)
 
// 获取配置store
const configStore = useConfigStore()
 
// State for area code action sheet
const showAreaCodeSheet = ref(false)
const selectedAreaCode = ref('+86')
// 短信验证码倒计时
const smsCountdown = ref(0)
const smsLoading = ref(false)
const areaCodeList = computed(() =>
  (configStore.config.mobileAreaList || []).map((item) => {
    return {
      value: item.key,
      label: `${item.name} (${item.key})`,
    }
  }),
)
 
const canSendMobileCaptcha = computed(() => {
  const mobile = formData.value.mobile
  const phoneRegex = /^1[3-9]\d{9}$/
  return phoneRegex.test(mobile) && smsCountdown.value === 0
})
 
// SM2公钥
const sm2PublicKey = computed(() => {
  return configStore.config.sm2PublicKey
})
 
// 打开区号选择弹窗
function openAreaCodeSheet() {
  showAreaCodeSheet.value = true
}
 
// 选择区号
function selectAreaCode(item: { value: string, label: string }) {
  selectedAreaCode.value = item.value
  formData.value.areaCode = item.value
  showAreaCodeSheet.value = false
}
 
// 关闭区号选择弹窗
function closeAreaCodeSheet() {
  showAreaCodeSheet.value = false
}
 
// 生成UUID
function generateUUID() {
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
    const r = (Math.random() * 16) | 0
    const v = c === 'x' ? r : (r & 0x3) | 0x8
    return v.toString(16)
  })
}
 
// 获取图形验证码
async function refreshCaptcha() {
  const uuid = generateUUID()
  formData.value.captchaId = uuid
  captchaImage.value = `${getEnvBaseUrl()}/user/captcha?uuid=${uuid}&t=${Date.now()}`
}
 
// 发送短信验证码
async function handleSendSmsCode() {
  // 手机号格式验证
  const phoneRegex = /^1[3-9]\d{9}$/
  if (!phoneRegex.test(formData.value.mobile)) {
    toast.warning(t('retrievePassword.inputCorrectMobile'))
    return
  }
 
  if (!formData.value.captcha) {
    toast.warning(t('retrievePassword.captchaRequired'))
    return
  }
 
  try {
    smsLoading.value = true
    // 将手机号转换为国际格式
    const internationalPhone = formData.value.areaCode + formData.value.mobile
    // 调用发送短信验证码API
    await sendSmsCode({
      phone: internationalPhone,
      captcha: formData.value.captcha,
      captchaId: formData.value.captchaId,
    })
 
    toast.success(t('retrievePassword.captchaSendSuccess'))
 
    // 开始倒计时
    smsCountdown.value = 60
    const timer = setInterval(() => {
      smsCountdown.value--
      if (smsCountdown.value <= 0) {
        clearInterval(timer)
      }
    }, 1000)
  }
  catch (error: any) {
    // 处理验证码错误
    if (error.message.includes('请求错误[10067]')) {
      toast.warning(t('login.captchaError'))
    }
    // 发送失败重新获取图形验证码
    refreshCaptcha()
  }
  finally {
    smsLoading.value = false
  }
}
 
// 重置密码
async function handleResetPassword() {
  // 表单验证
  if (!formData.value.mobile) {
    toast.warning(t('retrievePassword.mobileRequired'))
    return
  }
 
  // 手机号格式验证
  const phoneRegex = /^1[3-9]\d{9}$/
  if (!phoneRegex.test(formData.value.mobile)) {
    toast.warning(t('retrievePassword.inputCorrectMobile'))
    return
  }
 
  // 将手机号转换为国际格式
  const internationalPhone = formData.value.areaCode + formData.value.mobile
 
  if (!formData.value.captcha) {
    toast.warning(t('retrievePassword.captchaRequired'))
    return
  }
 
  if (!formData.value.mobileCaptcha) {
    toast.warning(t('retrievePassword.mobileCaptchaRequired'))
    return
  }
 
  if (!formData.value.newPassword) {
    toast.warning(t('retrievePassword.newPasswordRequired'))
    return
  }
 
  if (!formData.value.confirmPassword) {
    toast.warning(t('retrievePassword.confirmNewPasswordRequired'))
    return
  }
 
  if (formData.value.newPassword !== formData.value.confirmPassword) {
    toast.warning(t('retrievePassword.passwordsNotMatch'))
    return
  }
 
  try {
    loading.value = true
 
    // 检查SM2公钥是否配置
    if (!sm2PublicKey.value) {
      toast.warning(t('sm2.publicKeyNotConfigured'))
      return
    }
 
    // 加密密码
    let encryptedPassword
    try {
      // 拼接图形验证码和新密码进行加密
      const captchaAndPassword = formData.value.captcha + formData.value.newPassword
      encryptedPassword = sm2Encrypt(sm2PublicKey.value, captchaAndPassword)
    }
    catch (error) {
      console.error('密码加密失败:', error)
      toast.warning(t('sm2.encryptionFailed'))
      return
    }
 
    // 调用重置密码API
    await retrievePassword({
      phone: internationalPhone,
      code: formData.value.mobileCaptcha,
      password: encryptedPassword,
      captchaId: formData.value.captchaId,
    })
 
    toast.success(t('retrievePassword.passwordUpdateSuccess'))
 
    // 跳转到登录页
    setTimeout(() => {
      uni.redirectTo({
        url: '/pages/login/index',
      })
    }, 1000)
  }
  catch (error: any) {
    // 处理验证码错误
    if (error.message.includes('请求错误[10067]')) {
      toast.warning(t('login.captchaError'))
    }
    // 重置失败重新获取验证码
    refreshCaptcha()
  }
  finally {
    loading.value = false
  }
}
 
// 返回登录
function goBack() {
  uni.redirectTo({
    url: '/pages/login/index',
  })
}
 
// 页面加载时获取验证码
onLoad(() => {
  refreshCaptcha()
})
 
// 组件挂载时确保配置已加载
onMounted(async () => {
  if (!configStore.config.name) {
    try {
      await configStore.fetchPublicConfig()
    }
    catch (error) {
      console.error('获取配置失败:', error)
    }
  }
  // 初始化国际化
  initI18n()
})
</script>
 
<template>
  <view
    class="app-container box-border h-screen w-full"
    :style="{ paddingTop: `${safeAreaInsets?.top}px` }"
  >
    <view class="header">
      <view class="back-button" @click="goBack">
        <wd-icon name="arrow-left" custom-class="back-icon" />
      </view>
      <view class="logo-section">
        <wd-img :width="80" :height="80" round src="/static/logo.png" class="logo" />
        <text class="welcome-text">
          {{ t("retrievePassword.title") }}
        </text>
        <text class="subtitle">
          {{ t("retrievePassword.subtitle") }}
        </text>
      </view>
    </view>
 
    <view class="form-container">
      <view class="form">
        <!-- 手机号输入 -->
        <view class="input-group">
          <view class="input-wrapper mobile-wrapper">
            <view class="area-code-selector" @click="openAreaCodeSheet">
              <text class="area-code-text">
                {{ selectedAreaCode }}
              </text>
              <wd-icon name="arrow-down" custom-class="area-code-arrow" />
            </view>
            <view class="mobile-input-wrapper">
              <wd-input
                v-model="formData.mobile"
                custom-class="styled-input"
                no-border
                :placeholder="t('retrievePassword.mobilePlaceholder')"
                type="number"
                :maxlength="11"
              />
            </view>
          </view>
        </view>
 
        <!-- 图形验证码 -->
        <view class="input-group">
          <view class="input-wrapper captcha-wrapper">
            <wd-input
              v-model="formData.captcha"
              custom-class="styled-input"
              no-border
              :placeholder="t('retrievePassword.captchaPlaceholder')"
              :maxlength="6"
            />
            <view class="captcha-image" @click="refreshCaptcha">
              <image :src="captchaImage" class="captcha-img" />
            </view>
          </view>
        </view>
 
        <!-- 短信验证码 -->
        <view class="input-group">
          <view class="input-wrapper sms-wrapper">
            <wd-input
              v-model="formData.mobileCaptcha"
              custom-class="styled-input"
              no-border
              :placeholder="t('retrievePassword.mobileCaptchaPlaceholder')"
              :maxlength="6"
            />
            <view class="sms-button" @click="handleSendSmsCode">
              <text class="sms-text">
                {{
                  smsCountdown > 0
                    ? `${smsCountdown}s`
                    : t("retrievePassword.getMobileCaptcha")
                }}
              </text>
            </view>
          </view>
        </view>
 
        <!-- 新密码 -->
        <view class="input-group">
          <view class="input-wrapper">
            <wd-input
              v-model="formData.newPassword"
              custom-class="styled-input"
              no-border
              :placeholder="t('retrievePassword.newPasswordPlaceholder')"
              show-password
              :maxlength="20"
            />
          </view>
        </view>
 
        <!-- 确认新密码 -->
        <view class="input-group">
          <view class="input-wrapper">
            <wd-input
              v-model="formData.confirmPassword"
              custom-class="styled-input"
              no-border
              :placeholder="t('retrievePassword.confirmNewPasswordPlaceholder')"
              show-password
              :maxlength="20"
            />
          </view>
        </view>
 
        <!-- 重置密码按钮 -->
        <view class="reset-btn" @click="handleResetPassword">
          {{ loading ? t("common.loading") : t("retrievePassword.resetButton") }}
        </view>
 
        <!-- 返回登录链接 -->
        <view class="back-login-hint" @click="goBack">
          <text class="hint-text">
            {{ t("retrievePassword.goToLogin") }}
          </text>
        </view>
      </view>
    </view>
 
    <!-- 区号选择弹窗 -->
    <wd-action-sheet
      v-model="showAreaCodeSheet"
      :title="t('login.selectCountry')"
      :close-on-click-modal="true"
      @close="closeAreaCodeSheet"
    >
      <view class="area-code-sheet">
        <scroll-view scroll-y class="area-code-list">
          <view
            v-for="item in areaCodeList"
            :key="item.value"
            class="area-code-item"
            :class="{ selected: selectedAreaCode === item.value }"
            @click="selectAreaCode(item)"
          >
            <view class="area-info">
              <text class="area-name">
                {{ item.label }}
              </text>
            </view>
            <wd-icon
              v-if="selectedAreaCode === item.value"
              name="check"
              custom-class="check-icon"
            />
          </view>
        </scroll-view>
        <view class="sheet-footer">
          <wd-button
            type="primary"
            custom-class="confirm-btn"
            @click="closeAreaCodeSheet"
          >
            {{ t("login.confirm") }}
          </wd-button>
        </view>
      </view>
    </wd-action-sheet>
  </view>
</template>
 
<style lang="scss" scoped>
.app-container {
  background: linear-gradient(145deg, #f5f8fd, #6baaff, #9ebbfc, #f5f8fd);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
 
  &::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
  }
}
 
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}
 
.header {
  flex: 0 0 auto;
  min-height: 280rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15% 0 40rpx 0;
  position: relative;
 
  .back-button {
    position: absolute;
    left: 30rpx;
    top: 50rpx;
    width: 60rpx;
    height: 60rpx;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10rpx);
    border: 1rpx solid rgba(255, 255, 255, 0.3);
 
    .back-icon {
      font-size: 32rpx;
      color: #ffffff;
    }
  }
 
  .logo-section {
    text-align: center;
 
    .logo {
      margin-bottom: 20rpx;
      box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
    }
 
    .welcome-text {
      display: block;
      color: #ffffff;
      font-size: 40rpx;
      font-weight: 600;
      margin-bottom: 12rpx;
      text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
    }
 
    .subtitle {
      display: block;
      color: rgba(255, 255, 255, 0.8);
      font-size: 26rpx;
      font-weight: 400;
    }
  }
}
 
.form-container {
  padding: 0 40rpx 40rpx 40rpx;
  flex: 1;
  display: flex;
  align-items: flex-start;
 
  .form {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24rpx;
    padding: 40rpx 30rpx 30rpx 30rpx;
    backdrop-filter: blur(10rpx);
    box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.1);
    border: 1rpx solid rgba(255, 255, 255, 0.2);
    max-height: calc(100vh - 350rpx);
    overflow-y: auto;
 
    .input-group {
      margin-bottom: 24rpx;
 
      .input-wrapper {
        position: relative;
        background: #f8f9fa;
        border-radius: 16rpx;
        padding: 20rpx 16rpx;
        border: 2rpx solid #e9ecef;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
 
        &:focus-within {
          border-color: #667eea;
          background: #ffffff;
          box-shadow: 0 0 0 6rpx rgba(102, 126, 234, 0.1);
        }
 
        &.mobile-wrapper {
          padding: 0;
          background: transparent;
          border: none;
          display: flex;
          gap: 20rpx;
 
          .area-code-selector {
            flex: 0 0 160rpx;
            background: #f8f9fa;
            border-radius: 16rpx;
            padding: 20rpx 16rpx;
            border: 2rpx solid #e9ecef;
            height: 45rpx;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.3s ease;
 
            &:hover {
              border-color: #667eea;
              background: #ffffff;
              box-shadow: 0 0 0 6rpx rgba(102, 126, 234, 0.1);
            }
 
            .area-code-text {
              font-size: 28rpx;
              color: #333333;
              font-weight: 500;
            }
 
            :deep(.area-code-arrow) {
              font-size: 24rpx;
              color: #999999;
              transition: transform 0.3s ease;
            }
          }
 
          .mobile-input-wrapper {
            flex: 1;
            background: #f8f9fa;
            border-radius: 16rpx;
            padding: 20rpx 16rpx;
            border: 2rpx solid #e9ecef;
            transition: all 0.3s ease;
 
            &:focus-within {
              border-color: #667eea;
              background: #ffffff;
              box-shadow: 0 0 0 6rpx rgba(102, 126, 234, 0.1);
            }
          }
        }
 
        &.captcha-wrapper {
          .captcha-image {
            margin-left: 20rpx;
            width: 150rpx;
            height: 60rpx;
            border-radius: 8rpx;
            overflow: hidden;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #e9ecef;
            border: 1rpx solid #ddd;
 
            .captcha-img {
              width: 100%;
              height: 100%;
            }
          }
        }
 
        &.sms-wrapper {
          .sms-button {
            margin-left: 20rpx;
            width: 180rpx;
            height: 60rpx;
            border-radius: 12rpx;
            background: #667eea;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
 
            &:active {
              background: #5a6fd8;
              transform: scale(0.98);
            }
 
            .sms-text {
              font-size: 24rpx;
              color: #ffffff;
              font-weight: 500;
            }
          }
        }
 
        :deep(.styled-input) {
          background: transparent !important;
          border: none !important;
          outline: none !important;
          font-size: 32rpx;
          color: #333333;
          flex: 1;
 
          &::placeholder {
            color: #999999;
            font-size: 28rpx;
          }
        }
      }
    }
 
    .reset-btn {
      width: 100%;
      height: 80rpx;
      border: none;
      border-radius: 16rpx;
      font-size: 30rpx;
      font-weight: 600;
      color: #ffffff;
      margin-bottom: 30rpx;
      box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.3);
      transition: all 0.3s ease;
      background-color: var(--wot-button-primary-bg-color, var(--wot-color-theme, #4d80f0));
      text-align: center;
      line-height: 80rpx;
 
      &:active {
        transform: translateY(2rpx);
        box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);
      }
 
      &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
    }
 
    .back-login-hint {
      text-align: center;
 
      .hint-text {
        color: #667eea;
        font-size: 26rpx;
        font-weight: 500;
        cursor: pointer;
 
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}
 
// 区号选择弹窗样式
.area-code-sheet {
  background: #ffffff;
  border-radius: 24rpx 24rpx 0 0;
  overflow: hidden;
 
  .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40rpx 40rpx 20rpx 40rpx;
    border-bottom: 1rpx solid #f0f0f0;
 
    .sheet-title {
      font-size: 36rpx;
      font-weight: 600;
      color: #333333;
    }
 
    :deep(.close-icon) {
      font-size: 32rpx;
      color: #999999;
      cursor: pointer;
      padding: 10rpx;
 
      &:hover {
        color: #333333;
      }
    }
  }
 
  .area-code-list {
    max-height: 60vh;
    padding: 0 40rpx;
 
    .area-code-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 32rpx 0;
      border-bottom: 1rpx solid #f8f9fa;
      cursor: pointer;
      transition: background-color 0.3s ease;
 
      &:hover {
        background-color: #f8f9fa;
      }
 
      &.selected {
        background-color: rgba(102, 126, 234, 0.05);
 
        .area-name {
          color: #667eea;
          font-weight: 500;
        }
 
        .area-code {
          color: #667eea;
        }
      }
 
      .area-info {
        display: flex;
        flex-direction: column;
        gap: 8rpx;
 
        .area-name {
          font-size: 32rpx;
          color: #333333;
        }
 
        .area-code {
          font-size: 28rpx;
          color: #666666;
        }
      }
 
      :deep(.check-icon) {
        font-size: 32rpx;
        color: #667eea;
      }
    }
  }
 
  .sheet-footer {
    padding: 30rpx 40rpx 40rpx 40rpx;
    border-top: 1rpx solid #f0f0f0;
 
    :deep(.confirm-btn) {
      width: 100%;
      height: 88rpx;
      border-radius: 16rpx;
      font-size: 32rpx;
      font-weight: 600;
    }
  }
}
</style>