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.

170 lines
3.0 KiB

4 weeks ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
3 weeks ago
4 weeks 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";
  22. import { ref, reactive, toRefs, watch } from "vue";
  23. const type = ref("");
  24. function toRegistration() {
  25. uni.redirectTo({
  26. url: "/pages/start/Registration/Registration",
  27. });
  28. }
  29. function toLogin() {
  30. uni.redirectTo({
  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: 80rpx;
  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: contain;
  72. background-position: center;
  73. /* background-position: center; */
  74. /* min-width: 300rpx; */
  75. width: 420rpx;
  76. height: 786rpx;
  77. border-radius: 50rpx;
  78. padding: 40rpx;
  79. /* box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3); */
  80. position: relative;
  81. overflow: hidden;
  82. }
  83. .button-group {
  84. display: flex;
  85. gap: 40rpx;
  86. margin: 80rpx 0;
  87. width: 100%;
  88. max-width: 600rpx;
  89. }
  90. .login-button {
  91. flex: 1;
  92. background-color: #f5f5f5;
  93. color: #000000;
  94. border-radius: 60rpx;
  95. font-size: 32rpx;
  96. padding: 20rpx;
  97. border: 1rpx solid #00000022;
  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>