cshenfu
2024-05-21 09d8c671d5e6e6045677bfb5218a5fb78c26aa0f
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
<template>
    <view class="copyright">
        <view class="item">Copyright 2020-{{year}}.</view>
        <view class="item">{{ config.appName }} 版权所有</view>
    </view>
</template>
 
<script>
    import { about } from "@/app.config.js";
 
    export default {
        props:["theme"],
        data() {
            return {
                config: about,
                year: 2021
            };
        },
        created() {
            this.year = (new Date).getFullYear()
        }
    };
</script>
 
<style lang="scss" scoped>
    .copyright {
        width: 100%;
        height: auto;
        float: left;
        margin-top: 100px;
        text-align: center;
 
        .item {
            font-size: 20rpx;
            color: rgba(0, 0, 0, 0.4);
            line-height: 40rpx;
        }
    }
</style>