failed.html
2.64 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>CNLive Audio Panel</title>
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<link rel="shortcut icon" href="/cms.ico" />
<link rel="bookmark" href="/cms.ico" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css">
<style>
.status-container {
margin: 0 auto;
padding-top: 40px;
width: 420px;
height: 340px;
background-color: white;
border-radius: 12px;
max-height: 340px;
}
.status-icon {
margin: 0 auto;
width: 126px;
height: 120px;
}
</style>
</head>
<body id="body">
<div id="success" class="page-container">
<div class="status-container">
<div class="status-icon"
style="background-position: center; background-repeat: no-repeat; background-size: contain;"
:style="{backgroundImage:'url(' + failedIcon + ')'}"></div>
<div style="text-align: center; margin-top: 10px;">
<span style="font-size: 20px; color: #333333; font-weight: bold;">上传失败!</span>
</div>
<div style="text-align: center; margin-top: 10px;">
<span style="font-size: 14px; color: #999999; line-height: 20px;">很遗憾您上传的作品提交失败</span>
</div>
<div style="margin-top: 20px;">
<div style="width: 160px;
height: 42px;
margin: 0 auto;
text-align: center;
line-height: 42px;
color: #ffffff;
font-size: 16px;
background: #F5A623;
border-radius: 6px;" @click="closeMask">我知道了</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/element-plus"></script>
<script>
const Success = {
data() {
return {
failedIcon: 'https://wjjtest.ys2.cnliveimg.com/802/img_new/1632289409448.png',
successIcon: 'https://wjjtest.ys2.cnliveimg.com/802/img_new/1632289443434.png'
}
},
mounted() {
// 装有iframe的页面监听到内容为【数字】时要给iframe组件重写高度。
parent.postMessage(340, '*')
},
methods: {
closeMask() {
// 装有iframe的页面监听到内容为【true】时要执行关闭弹窗操作。
parent.postMessage(true, '*')
}
}
}
Vue.createApp(Success).use(ElementPlus).mount("#success");
</script>
</body>
</html>