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
<template>
<div class="author">
<img :src="loadingUrl" />
<p>正在加载中......</p>
<p class="reload" :click="onPageReload">点击重新加载</p>
</div>
</template>
<script>
export default {
name: 'author',
data () {
return {
loadingUrl: 'https://cdn.singsingenglish.com/singsing/poster/monkey.jpg'
}
},
created () {
localStorage.setItem('retUrl',this.$route.query.retUrl);
window.location.href = `${process.env.AUTHOR_UEL}`
},
methods: {
onPageReload: function () {
window.location.reload()
}
}
}
</script>
<style scoped lang="less">
img[lazy=loading] {
width: 50vw !important;
height: 50vw;
background-color: #eee;
margin: auto;
}
.author {
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
height: 100vh;
font-size: 1.8rem;
&>img {
width: 50vw;
}
.reload {
font-size: 1.2rem;
color: #199be0;
}
}
</style>