#
whycq
2023-08-16 b3b78917a492e6792c511a05a45d5d68bd6df616
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
80
81
82
83
84
85
<template>
    <view class="main">
        <view class="left">
            <!-- logo -->
            <view class="logo-box">
                <image src="../../static/img/logo.png" mode="aspectFit"></image>
            </view>
        </view>
        <view class="right">right</view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                
            }
        },
        mounted() {
            uni.getSystemInfo({
                success(res) {
                    console.log(res);
                }
            })
        },
        methods: {
            
        }
    }
</script>
 
<style>
    @media screen and (orientation: portrait) {
        /* 竖屏 */
        .main {
            position: absolute;
            height: 100%;
            width: 100%;
            background-color: crimson;
            display: flex;
            flex-direction: column;
        }
        .left {
            height: 40%;
            width: 100%;
            background-color: aqua;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .logo-box {
            height: 60%;
            background-color: aliceblue;
        }
        image {
            height: 100%;
        }
    }
    @media screen and (orientation: landscape) {
        /* 横屏 */
        .main {
            position: absolute;
            height: 100%;
            width: 100%;
            background-color: crimson;
            display: flex;
        }
        .left {
            height: 100%;
            width: 50%;
            background-color: aqua;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .logo-box {
            height: 40%;
            background-color: aliceblue;
        }
        image {
            height: 100%;
        }
    }
</style>