jialh
2024-12-12 2df0108fa8d914876fc9a6435f9184b3e9bce86c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<template>
    <view class="container">
    <view class="logo-container">
        <image src="/static/login/logo.png" mode=""></image>
    </view>
    <view class="login-container">
        <button class="login-button"  @click="toLogin">账号登陆</button>
        <p class="register-text">还没有账号? <span class="register-link"  @click="toRegist">马上注册</span></p>
    </view>
    </view>
</template>
 
<script>
    export default {
        methods: {
            toLogin() {
                uni.navigateTo({
                    url: '/pages/public/login'
                })
            },
            toRegist() {
                uni.navigateTo({
                    url: '/pages/public/register'
                })
            },
        },
    }
</script>
 
<style lang='scss' scoped>
    page {
        background: #fff;
    }
    .container {
        padding-top: 115px;
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background: #fff;
    }
    .logo-container{
        padding-bottom: 160upx;
        text-align: center;
        image{
            width: 334upx;
            height: 233upx;
        }
    }
    .login-container{
        margin: 0 70upx;
        display: flex;
        flex-direction: column;
        align-items: center; /* 居中对齐 */
        justify-content: center;
          
        .login-button {
            width: 605upx;
            height: 92upx;
            background: #3D9AFF;
            border-radius: 12upx 12upx 12upx 12upx;
            font-size: 32upx;
            color: #FFFFFF;
        }
    
        .register-text {
            margin-top: 48upx;
            font-size: 24upx;
            color: #666; /* 文字颜色 */
        }
    
        .register-link {
            color: #3D9AFF; /* 注册链接颜色 */
            cursor: pointer;
        }
    }
    
    
</style>