test.html
1.77 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
<!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://unpkg.com/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">
<iframe src="file:///E:/codes/projects/cms_songs/src/html/success.html" id="tengxi" frameborder="1/0" height="1000" name="征集" scrolling="no" width="900"></iframe>
</div>
<script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
<script src="https://unpkg.com/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() {
console.log('parent mounted')
window.addEventListener('message', function (e) {
console.log(e.data)
document.getElementById('tengxi').height = e.data
}, false)
},
methods: {
}
}
Vue.createApp(Success).use(ElementPlus).mount("#success");
</script>
</body>
</html>