|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="pageDetail">
|
|
<div class="pageDetail">
|
|
<yx-navbar :isBack="true" :title="title"></yx-navbar>
|
|
<yx-navbar :isBack="true" :title="title"></yx-navbar>
|
|
- <iframe class="iframe" id="iframe" :src="src" frameborder="0"></iframe>
|
|
|
|
|
|
+ <iframe class="iframe" id="iframe" :src="src" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -20,12 +20,9 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
let iframe = document.getElementById('iframe')
|
|
let iframe = document.getElementById('iframe')
|
|
- console.log('mounted')
|
|
|
|
iframe.onload = () => {
|
|
iframe.onload = () => {
|
|
- console.log('onload')
|
|
|
|
let token = Cookies.get('congress')
|
|
let token = Cookies.get('congress')
|
|
- iframe.contentWindow.postMessage({token: token, id: this.id}, '*')
|
|
|
|
- console.log('sent')
|
|
|
|
|
|
+ iframe.contentWindow.postMessage({token: token, id: this.id, type: 'h5'}, '*')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|