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.

169 lines
3.0 KiB

4 weeks ago
4 weeks ago
1 month ago
4 weeks ago
1 month 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. }
  98. .register-button {
  99. flex: 1;
  100. background-color: #000000;
  101. color: #ffffff;
  102. border-radius: 60rpx;
  103. font-size: 32rpx;
  104. padding: 20rpx;
  105. }
  106. .bottom-nav {
  107. display: flex;
  108. justify-content: space-around;
  109. align-items: center;
  110. width: 100%;
  111. height: 100rpx;
  112. background-color: #ffffff;
  113. position: fixed;
  114. bottom: 0;
  115. left: 0;
  116. border-top: 1rpx solid #e5e5e5;
  117. }
  118. .nav-item {
  119. display: flex;
  120. flex-direction: column;
  121. align-items: center;
  122. justify-content: center;
  123. padding: 10rpx;
  124. }
  125. .nav-item.active .nav-icon {
  126. transform: scale(1.2);
  127. }
  128. .nav-icon {
  129. width: 40rpx;
  130. height: 40rpx;
  131. margin-bottom: 10rpx;
  132. }
  133. .nav-text {
  134. font-size: 24rpx;
  135. color: #666666;
  136. }
  137. .nav-item.active .nav-text {
  138. color: #000000;
  139. }
  140. .static-footer {
  141. position: fixed;
  142. bottom: 0;
  143. left: 0;
  144. right: 0;
  145. }
  146. </style>