You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
2.6 KiB

1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="login-container">
  3. <!-- 顶部标题 -->
  4. <view class="title-section">
  5. <text class="main-title">DeepChart</text>
  6. </view>
  7. <view class="subtitle-section">
  8. <text class="subtitle">您的股市随身顾问</text>
  9. </view>
  10. <!-- 手机卡片样式 -->
  11. <view class="phone-card"> </view>
  12. <!-- 登录注册按钮 -->
  13. <view class="button-group">
  14. <button class="login-button" @click="toLogin">登录</button>
  15. <button class="register-button" @click="toRegistration">注册</button>
  16. </view>
  17. </view>
  18. </template>
  19. <script setup>
  20. function toRegistration() {
  21. uni.navigateTo({
  22. url: "/pages/start/Registration/Registration",
  23. });
  24. }
  25. function toLogin() {
  26. uni.navigateTo({
  27. url: "/pages/start/login/login",
  28. });
  29. }
  30. </script>
  31. <style scoped>
  32. .login-container {
  33. display: flex;
  34. flex-direction: column;
  35. align-items: center;
  36. /* justify-content: space-between; */
  37. padding: 40rpx;
  38. height: 100vh;
  39. background-color: #ffffff;
  40. }
  41. .title-section {
  42. text-align: center;
  43. margin-top: 120rpx;
  44. margin-bottom: 20rpx;
  45. }
  46. .main-title {
  47. text-align: center;
  48. font-size: 64rpx;
  49. font-weight: 800;
  50. color: #000000;
  51. margin-bottom: 10rpx;
  52. }
  53. .subtitle-section {
  54. margin-bottom: 100rpx;
  55. }
  56. .subtitle {
  57. font-weight: bold;
  58. font-size: 32rpx;
  59. color: #333333;
  60. }
  61. .phone-card {
  62. background-image: url("/static/images/card.jpg");
  63. background-size: 100% 100%;
  64. background-position: center;
  65. min-width: 400rpx;
  66. min-height: 700rpx;
  67. width: 400rpx;
  68. height: 700rpx;
  69. border-radius: 40rpx;
  70. padding: 40rpx;
  71. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3);
  72. position: relative;
  73. overflow: hidden;
  74. }
  75. .button-group {
  76. display: flex;
  77. gap: 40rpx;
  78. margin: 80rpx 0;
  79. width: 100%;
  80. max-width: 600rpx;
  81. }
  82. .login-button {
  83. flex: 1;
  84. background-color: #f5f5f5;
  85. color: #000000;
  86. border-radius: 60rpx;
  87. font-size: 32rpx;
  88. padding: 20rpx;
  89. }
  90. .register-button {
  91. flex: 1;
  92. background-color: #000000;
  93. color: #ffffff;
  94. border-radius: 60rpx;
  95. font-size: 32rpx;
  96. padding: 20rpx;
  97. }
  98. .bottom-nav {
  99. display: flex;
  100. justify-content: space-around;
  101. align-items: center;
  102. width: 100%;
  103. height: 100rpx;
  104. background-color: #ffffff;
  105. position: fixed;
  106. bottom: 0;
  107. left: 0;
  108. border-top: 1rpx solid #e5e5e5;
  109. }
  110. .nav-item {
  111. display: flex;
  112. flex-direction: column;
  113. align-items: center;
  114. justify-content: center;
  115. padding: 10rpx;
  116. }
  117. .nav-item.active .nav-icon {
  118. transform: scale(1.2);
  119. }
  120. .nav-icon {
  121. width: 40rpx;
  122. height: 40rpx;
  123. margin-bottom: 10rpx;
  124. }
  125. .nav-text {
  126. font-size: 24rpx;
  127. color: #666666;
  128. }
  129. .nav-item.active .nav-text {
  130. color: #000000;
  131. }
  132. </style>