quanyawei
2024-09-06 60e16bd5406c4cbdf61bf20a50e8e1b49a45b2aa
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<template>
<div class="passport">
<div class="container">
<div class="wrap">
  <a-alert v-if="tokenJudge" message="该账号在别处登录!" type="error" show-icon
           closable
           :after-close="handleClose"
           style="width: 280px; height: 40px; position: fixed; top: 20px;left: 43%"/>
    <div class="top">
        <div class="head">
            <img class="logo" :src="require('/public/assets/logo.png')">
            <span class="title">七星瓢虫环境监测管理系统</span>
        </div>
        <div class="desc">敬天爱人 乐业安道</div>
    </div>
    <router-view></router-view>
 
    <global-footer >
        Copyright
        <i class="anticon anticon-copyright"></i> 2021
        <a href="//www.7drlb.com/" target="_blank">七星瓢虫环境科技</a>
    </global-footer>
<!---->
</div>
</div>
</div>
</template>
 
<script lang="ts">
import {
    Component,
    Prop,
    Vue,
} from 'vue-property-decorator';
import {
    State,
    Mutation,
    namespace,
} from 'vuex-class';
 
import GlobalFooter from '@/components/globalfooter/Index.vue';
 
@Component({
    components: {
        GlobalFooter,
    },
})
export default class PassportLayout extends Vue {
  private tokenJudge: boolean = false
 
    private links: any[] = [{
            title: '帮助',
            href: '//www.jianshu.com/u/f6ef3106bada',
            blankTarget: true,
        },
        {
            title: '隐私',
            href: '//www.jianshu.com/u/f6ef3106bada',
            blankTarget: true,
        },
        {
            title: '条款',
            href: '//www.jianshu.com/u/f6ef3106bada',
            blankTarget: true,
        },
    ];
    constructor() {
        super();
    }
    private created() {
      if (this.$ss.get('token') === '') {
        this.tokenJudge = true
        setTimeout(() => {
          this.tokenJudge = false
        }, 2000)
        this.$ss.set('token', null)
      }
    }
    private handleClose() {
      this.tokenJudge = false
    }
 
}
</script>
 
 
<style lang="less">
@import '../../assets/theme/styles/index.less';
 
.passport {
    .container {
            display: flex;
            flex-direction: column;
            min-height: 100%;
            background: #f0f2f5;
            height: 100vh;
        }
 
        .wrap {
            padding: 32px 0;
            flex: 1;
        }
 
        .ant-form-item {
            margin-bottom: 24px;
        }
 
        @media (min-width: @screen-md-min) {
            .container {
                background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg');
                background-repeat: no-repeat;
                background-position: center 110px;
                background-size: 100%;
                height: 100vh;
            }
 
            .wrap {
                padding: 112px 0 24px;
            }
        }
 
        .top {
            text-align: center;
        }
 
        .header {
            height: 44px;
            line-height: 44px;
 
            a {
                text-decoration: none;
            }
        }
 
        .logo {
            height: 44px;
            margin-right: 16px;
        }
 
        .title {
            font-size: 33px;
            color: @heading-color;
            font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
            font-weight: 600;
            position: relative;
            vertical-align: middle;
        }
 
        .desc {
            font-size: @font-size-base;
            color: @text-color-secondary;
            margin-top: 12px;
            margin-bottom: 40px;
        }
}
</style>