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.
 
 
 
 
 

171 lines
3.0 KiB

<template>
<view class="login-container">
<!-- 顶部标题 -->
<view class="title-section">
<text class="main-title">DeepChart</text>
</view>
<view class="subtitle-section">
<text class="subtitle">您的股市随身顾问</text>
</view>
<!-- 手机卡片样式 -->
<view class="phone-card"> </view>
<!-- 登录注册按钮 -->
<view class="button-group">
<button class="login-button" @click="toLogin">登录</button>
<button class="register-button" @click="toRegistration">注册</button>
</view>
<footerBar class="static-footer" :type="type"></footerBar>
</view>
</template>
<script setup>
import footerBar from "../../../components/footerBar";
import { ref, reactive, toRefs, watch } from "vue";
const type = ref("");
function toRegistration() {
uni.redirectTo({
url: "/pages/start/Registration/Registration",
});
}
function toLogin() {
uni.redirectTo({
url: "/pages/start/login/login",
});
}
</script>
<style scoped>
.login-container {
display: flex;
flex-direction: column;
align-items: center;
/* justify-content: space-between; */
padding: 40rpx;
height: 90vh;
background-color: #ffffff;
overflow: hidden;
max-height: 100vh;
-webkit-overflow-scrolling: none;
}
.title-section {
text-align: center;
margin-top: 120rpx;
margin-bottom: 20rpx;
}
.main-title {
text-align: center;
font-size: 64rpx;
font-weight: 300;
color: #000000;
margin-bottom: 10rpx;
}
.subtitle-section {
margin-bottom: 80rpx;
}
.subtitle {
/* font-weight: bold; */
font-size: 32rpx;
color: #333333;
}
.phone-card {
background-image: url("/static/select.png");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
/* background-position: center; */
/* min-width: 300rpx; */
width: 420rpx;
height: 786rpx;
border-radius: 50rpx;
padding: 40rpx;
/* box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3); */
position: relative;
overflow: hidden;
}
.button-group {
display: flex;
gap: 40rpx;
margin: 80rpx 0;
width: 100%;
max-width: 600rpx;
}
.login-button {
flex: 1;
background-color: #f5f5f5;
color: #000000;
border-radius: 60rpx;
font-size: 32rpx;
padding: 20rpx;
border: 1rpx solid #00000022;
}
.register-button {
flex: 1;
background-color: #000000;
color: #ffffff;
border-radius: 60rpx;
font-size: 32rpx;
padding: 20rpx;
}
.bottom-nav {
display: flex;
justify-content: space-around;
align-items: center;
width: 100%;
height: 100rpx;
background-color: #ffffff;
position: fixed;
bottom: 0;
left: 0;
border-top: 1rpx solid #e5e5e5;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10rpx;
}
.nav-item.active .nav-icon {
transform: scale(1.2);
}
.nav-icon {
width: 40rpx;
height: 40rpx;
margin-bottom: 10rpx;
}
.nav-text {
font-size: 24rpx;
color: #666666;
}
.nav-item.active .nav-text {
color: #000000;
}
.static-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
}
</style>