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
2.9 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: 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: 300;
  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/select.png");
  67. background-repeat: no-repeat;
  68. background-size: 100% 100%;
  69. /* background-position: center; */
  70. /* min-width: 300rpx; */
  71. min-width: 420rpx;
  72. min-height: 786rpx;
  73. width: 420rpx;
  74. height: 786rpx;
  75. border-radius: 40rpx;
  76. padding: 40rpx;
  77. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3);
  78. position: relative;
  79. overflow: hidden;
  80. }
  81. .button-group {
  82. display: flex;
  83. gap: 40rpx;
  84. margin: 80rpx 0;
  85. width: 100%;
  86. max-width: 600rpx;
  87. }
  88. .login-button {
  89. flex: 1;
  90. background-color: #f5f5f5;
  91. color: #000000;
  92. border-radius: 60rpx;
  93. font-size: 32rpx;
  94. padding: 20rpx;
  95. }
  96. .register-button {
  97. flex: 1;
  98. background-color: #000000;
  99. color: #ffffff;
  100. border-radius: 60rpx;
  101. font-size: 32rpx;
  102. padding: 20rpx;
  103. }
  104. .bottom-nav {
  105. display: flex;
  106. justify-content: space-around;
  107. align-items: center;
  108. width: 100%;
  109. height: 100rpx;
  110. background-color: #ffffff;
  111. position: fixed;
  112. bottom: 0;
  113. left: 0;
  114. border-top: 1rpx solid #e5e5e5;
  115. }
  116. .nav-item {
  117. display: flex;
  118. flex-direction: column;
  119. align-items: center;
  120. justify-content: center;
  121. padding: 10rpx;
  122. }
  123. .nav-item.active .nav-icon {
  124. transform: scale(1.2);
  125. }
  126. .nav-icon {
  127. width: 40rpx;
  128. height: 40rpx;
  129. margin-bottom: 10rpx;
  130. }
  131. .nav-text {
  132. font-size: 24rpx;
  133. color: #666666;
  134. }
  135. .nav-item.active .nav-text {
  136. color: #000000;
  137. }
  138. .static-footer {
  139. position: fixed;
  140. bottom: 0;
  141. }
  142. </style>