test.html 1.77 KB
<!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>