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.

193 lines
3.9 KiB

  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. <!-- 底部导航栏 -->
  18. <!-- <view class="bottom-nav">
  19. <navigator url="/pages/index/index" class="nav-item">
  20. <image
  21. class="nav-icon"
  22. src="/static/images/home.png"
  23. mode="aspectFill"
  24. ></image>
  25. <text class="nav-text">首页</text>
  26. </navigator>
  27. <navigator url="/pages/index/index" class="nav-item">
  28. <image
  29. class="nav-icon"
  30. src="/static/images/chart.png"
  31. mode="aspectFill"
  32. ></image>
  33. <text class="nav-text">行情</text>
  34. </navigator>
  35. <navigator url="/pages/index/index" class="nav-item active">
  36. <image
  37. class="nav-icon"
  38. src="/static/images/logo.png"
  39. mode="aspectFill"
  40. ></image>
  41. <text class="nav-text">DeepMate</text>
  42. </navigator>
  43. <navigator url="/pages/index/index" class="nav-item">
  44. <image
  45. class="nav-icon"
  46. src="/static/images/explore.png"
  47. mode="aspectFill"
  48. ></image>
  49. <text class="nav-text">深度探索</text>
  50. </navigator>
  51. <navigator url="/pages/index/index" class="nav-item">
  52. <image
  53. class="nav-icon"
  54. src="/static/images/profile.png"
  55. mode="aspectFill"
  56. ></image>
  57. <text class="nav-text">我的</text>
  58. </navigator>
  59. </view> -->
  60. </view>
  61. </template>
  62. <script setup>
  63. function toRegistration() {
  64. uni.navigateTo({
  65. url: "/pages/Registration/Registration",
  66. });
  67. }
  68. function toLogin() {
  69. uni.navigateTo({
  70. url: "/pages/login/login",
  71. });
  72. }
  73. </script>
  74. <style scoped>
  75. .login-container {
  76. display: flex;
  77. flex-direction: column;
  78. align-items: center;
  79. /* justify-content: space-between; */
  80. padding: 40rpx;
  81. height: 100vh;
  82. background-color: #ffffff;
  83. }
  84. .title-section {
  85. text-align: center;
  86. margin-top: 120rpx;
  87. margin-bottom: 20rpx;
  88. }
  89. .main-title {
  90. text-align: center;
  91. font-size: 64rpx;
  92. font-weight: 800;
  93. color: #000000;
  94. margin-bottom: 10rpx;
  95. }
  96. .subtitle-section {
  97. margin-bottom: 100rpx;
  98. }
  99. .subtitle {
  100. font-weight: bold;
  101. font-size: 32rpx;
  102. color: #333333;
  103. }
  104. .phone-card {
  105. background-image: url("/static/20251021-132531.jpg");
  106. background-size: 100% 100%;
  107. background-position: center;
  108. min-width: 400rpx;
  109. min-height: 700rpx;
  110. width: 400rpx;
  111. height: 700rpx;
  112. border-radius: 40rpx;
  113. padding: 40rpx;
  114. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3);
  115. position: relative;
  116. overflow: hidden;
  117. }
  118. .button-group {
  119. display: flex;
  120. gap: 40rpx;
  121. margin: 80rpx 0;
  122. width: 100%;
  123. max-width: 600rpx;
  124. }
  125. .login-button {
  126. flex: 1;
  127. background-color: #f5f5f5;
  128. color: #000000;
  129. border-radius: 60rpx;
  130. font-size: 32rpx;
  131. padding: 20rpx;
  132. }
  133. .register-button {
  134. flex: 1;
  135. background-color: #000000;
  136. color: #ffffff;
  137. border-radius: 60rpx;
  138. font-size: 32rpx;
  139. padding: 20rpx;
  140. }
  141. .bottom-nav {
  142. display: flex;
  143. justify-content: space-around;
  144. align-items: center;
  145. width: 100%;
  146. height: 100rpx;
  147. background-color: #ffffff;
  148. position: fixed;
  149. bottom: 0;
  150. left: 0;
  151. border-top: 1rpx solid #e5e5e5;
  152. }
  153. .nav-item {
  154. display: flex;
  155. flex-direction: column;
  156. align-items: center;
  157. justify-content: center;
  158. padding: 10rpx;
  159. }
  160. .nav-item.active .nav-icon {
  161. transform: scale(1.2);
  162. }
  163. .nav-icon {
  164. width: 40rpx;
  165. height: 40rpx;
  166. margin-bottom: 10rpx;
  167. }
  168. .nav-text {
  169. font-size: 24rpx;
  170. color: #666666;
  171. }
  172. .nav-item.active .nav-text {
  173. color: #000000;
  174. }
  175. </style>