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.

174 lines
3.0 KiB

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: 90vh;
  43. background-color: #ffffff;
  44. overflow: hidden;
  45. max-height: 100vh;
  46. -webkit-overflow-scrolling: none;
  47. }
  48. .title-section {
  49. text-align: center;
  50. margin-top: 120rpx;
  51. margin-bottom: 20rpx;
  52. }
  53. .main-title {
  54. text-align: center;
  55. font-size: 64rpx;
  56. font-weight: 300;
  57. color: #000000;
  58. margin-bottom: 10rpx;
  59. }
  60. .subtitle-section {
  61. margin-bottom: 100rpx;
  62. }
  63. .subtitle {
  64. /* font-weight: bold; */
  65. font-size: 32rpx;
  66. color: #333333;
  67. }
  68. .phone-card {
  69. background-image: url("/static/select.png");
  70. background-repeat: no-repeat;
  71. background-size: 100% 100%;
  72. /* background-position: center; */
  73. /* min-width: 300rpx; */
  74. min-width: 420rpx;
  75. min-height: 786rpx;
  76. width: 420rpx;
  77. height: 786rpx;
  78. border-radius: 50rpx;
  79. padding: 40rpx;
  80. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3);
  81. position: relative;
  82. overflow: hidden;
  83. }
  84. .button-group {
  85. display: flex;
  86. gap: 40rpx;
  87. margin: 80rpx 0;
  88. width: 100%;
  89. max-width: 600rpx;
  90. }
  91. .login-button {
  92. flex: 1;
  93. background-color: #f5f5f5;
  94. color: #000000;
  95. border-radius: 60rpx;
  96. font-size: 32rpx;
  97. padding: 20rpx;
  98. }
  99. .register-button {
  100. flex: 1;
  101. background-color: #000000;
  102. color: #ffffff;
  103. border-radius: 60rpx;
  104. font-size: 32rpx;
  105. padding: 20rpx;
  106. }
  107. .bottom-nav {
  108. display: flex;
  109. justify-content: space-around;
  110. align-items: center;
  111. width: 100%;
  112. height: 100rpx;
  113. background-color: #ffffff;
  114. position: fixed;
  115. bottom: 0;
  116. left: 0;
  117. border-top: 1rpx solid #e5e5e5;
  118. }
  119. .nav-item {
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. justify-content: center;
  124. padding: 10rpx;
  125. }
  126. .nav-item.active .nav-icon {
  127. transform: scale(1.2);
  128. }
  129. .nav-icon {
  130. width: 40rpx;
  131. height: 40rpx;
  132. margin-bottom: 10rpx;
  133. }
  134. .nav-text {
  135. font-size: 24rpx;
  136. color: #666666;
  137. }
  138. .nav-item.active .nav-text {
  139. color: #000000;
  140. }
  141. .static-footer {
  142. position: fixed;
  143. bottom: 0;
  144. left: 0;
  145. right: 0;
  146. }
  147. </style>