pay-password.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <div class="page pay-password-page">
  3. <div class="option-list">
  4. <div class="option-item" @click="goTo('change')">
  5. <span>{{ t('pay-password.change') }}</span>
  6. <div class="arrow-btn"><van-icon name="arrow" /></div>
  7. </div>
  8. <div class="option-item" @click="goTo('forget')">
  9. <span>{{ t('pay-password.forget') }}</span>
  10. <div class="arrow-btn"><van-icon name="arrow" /></div>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. import { useI18n } from 'vue-i18n'
  17. import { useRouter } from 'vue-router'
  18. const { t } = useI18n()
  19. const router = useRouter()
  20. function goTo(type: string) {
  21. if (type === 'change') {
  22. router.push('/change/pay/password')
  23. } else if (type === 'forget') {
  24. router.push('/forget/pay/password')
  25. }
  26. }
  27. </script>
  28. <style scoped lang="scss">
  29. .pay-password-page {
  30. min-height: 100vh;
  31. background: linear-gradient(135deg, #232323 0%, #2a2a2a 100%);
  32. padding: 0;
  33. }
  34. .header {
  35. display: flex;
  36. align-items: center;
  37. padding: 24px 0 18px 12px;
  38. .back-icon {
  39. font-size: 22px;
  40. color: var(--main-yellow);
  41. margin-right: 10px;
  42. cursor: pointer;
  43. }
  44. .title {
  45. font-size: 18px;
  46. color: #fff;
  47. font-weight: bold;
  48. }
  49. }
  50. .option-list {
  51. margin-top: 32px;
  52. display: flex;
  53. flex-direction: column;
  54. gap: 18px;
  55. padding: 0 18px;
  56. }
  57. .option-item {
  58. background: var(--action-bg, #181818);
  59. border-radius: 12px;
  60. display: flex;
  61. align-items: center;
  62. justify-content: space-between;
  63. padding: 18px 18px;
  64. color: #fff;
  65. font-size: 16px;
  66. box-shadow: 0 2px 8px rgba(214, 255, 0, 0.04);
  67. }
  68. .arrow-btn {
  69. width: 32px;
  70. height: 32px;
  71. background: rgba(255,255,255,0.06);
  72. border-radius: 8px;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. }
  77. </style>