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.

167 lines
2.9 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. <footerBar class="static-footer" :type="type"></footerBar>
  18. </view>
  19. </template>
  20. <script setup>
  21. import footerBar from '../../../components/footerBar-cn'
  22. import { ref, reactive, toRefs, watch } from 'vue'
  23. const type = ref('member')
  24. function toRegistration() {
  25. uni.navigateTo({
  26. url: "/pages/start/Registration/Registration",
  27. });
  28. }
  29. function toLogin() {
  30. uni.navigateTo({
  31. url: "/pages/start/login/login",
  32. });
  33. }
  34. </script>
  35. <style scoped>
  36. .login-container {
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. /* justify-content: space-between; */
  41. padding: 40rpx;
  42. height: 100vh;
  43. background-color: #ffffff;
  44. }
  45. .title-section {
  46. text-align: center;
  47. margin-top: 120rpx;
  48. margin-bottom: 20rpx;
  49. }
  50. .main-title {
  51. text-align: center;
  52. font-size: 64rpx;
  53. font-weight: 800;
  54. color: #000000;
  55. margin-bottom: 10rpx;
  56. }
  57. .subtitle-section {
  58. margin-bottom: 100rpx;
  59. }
  60. .subtitle {
  61. font-weight: bold;
  62. font-size: 32rpx;
  63. color: #333333;
  64. }
  65. .phone-card {
  66. background-image: url("/static/images/card.jpg");
  67. background-size: 100% 100%;
  68. background-position: center;
  69. min-width: 400rpx;
  70. min-height: 700rpx;
  71. width: 400rpx;
  72. height: 700rpx;
  73. border-radius: 40rpx;
  74. padding: 40rpx;
  75. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3);
  76. position: relative;
  77. overflow: hidden;
  78. }
  79. .button-group {
  80. display: flex;
  81. gap: 40rpx;
  82. margin: 80rpx 0;
  83. width: 100%;
  84. max-width: 600rpx;
  85. }
  86. .login-button {
  87. flex: 1;
  88. background-color: #f5f5f5;
  89. color: #000000;
  90. border-radius: 60rpx;
  91. font-size: 32rpx;
  92. padding: 20rpx;
  93. }
  94. .register-button {
  95. flex: 1;
  96. background-color: #000000;
  97. color: #ffffff;
  98. border-radius: 60rpx;
  99. font-size: 32rpx;
  100. padding: 20rpx;
  101. }
  102. .bottom-nav {
  103. display: flex;
  104. justify-content: space-around;
  105. align-items: center;
  106. width: 100%;
  107. height: 100rpx;
  108. background-color: #ffffff;
  109. position: fixed;
  110. bottom: 0;
  111. left: 0;
  112. border-top: 1rpx solid #e5e5e5;
  113. }
  114. .nav-item {
  115. display: flex;
  116. flex-direction: column;
  117. align-items: center;
  118. justify-content: center;
  119. padding: 10rpx;
  120. }
  121. .nav-item.active .nav-icon {
  122. transform: scale(1.2);
  123. }
  124. .nav-icon {
  125. width: 40rpx;
  126. height: 40rpx;
  127. margin-bottom: 10rpx;
  128. }
  129. .nav-text {
  130. font-size: 24rpx;
  131. color: #666666;
  132. }
  133. .nav-item.active .nav-text {
  134. color: #000000;
  135. }
  136. .static-footer {
  137. position: fixed;
  138. bottom: 0;
  139. }
  140. </style>