401.vue
2.66 KB
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
<template>
<!-- <div class="errPage-container"> -->
<mu-container>
<div v-if="!show" class="errPage-container">
<mu-row>
<mu-col span="6">
<h1 class="text-jumbo text-ginormous">Oops!</h1>
<h2>你没有权限去该页面</h2>
<h6>如有不满请联系你领导</h6>
<div class="">
<p>或者你可以去: </p>
<mu-button @click="goHome" color="primary">重新登陆</mu-button>
</div>
</mu-col>
<mu-col span="6">
<img :src="errGif" width="313" height="428" alt="">
</mu-col>
</mu-row>
</div>
<div v-else class="errPage-container" style="text-align: center;">
<!-- <mu-button @click="back" color="primary">
<mu-icon left value="chevron_left"></mu-icon>
返回
</mu-button> -->
<h1 class="text-jumbo text-ginormous">Oops!</h1>
<h2>你没有权限去该页面</h2>
<h6>如有不满请联系你领导</h6>
<div class="">
<p>或者你可以去: </p>
<mu-button @click="goHome" color="primary">重新登陆</mu-button>
</div>
</div>
</mu-container>
<!-- <el-dialog title="随便看" v-model="dialogVisible" size="large">
<img class="pan-img" :src="ewizardClap">
</el-dialog> -->
<!-- </div> -->
</template>
<script>
import errGif from '../../assets/images/401.gif';
import util from '../../assets/js/util';
export default {
name: 'Error401Page',
data () {
return {
errGif: errGif + '?' + +new Date(),
ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',
dialogVisible: false,
show: false
}
},
mounted () {
$('body').css('background', '#FFFFFF');
if (util.versions().android || util.versions().ios) {
this.show = true
} else {
this.show = false
}
},
methods: {
back () {
this.$router.go(-1)
},
goHome () {
location.href = './#/login'
}
}
};
</script>
<style lang="less">
body {
background: #ffffff;
}
.errPage-container {
margin: 100px auto;
background-color: white;
.pan-back-btn {
background: #20a0ff;
color: #fff;
}
.pan-gif {
margin: 0 auto;
display: block;
}
.pan-img{
display: block;
margin: 0 auto;
}
.text-jumbo {
font-size: 60px;
font-weight: 700;
color: #484848;
}
.list-unstyled {
font-size: 14px;
li {
padding-bottom: 5px;
list-style: none;
}
}
}
</style>