李劲龙 2 years ago
commit b3672a7f3c

@ -6,6 +6,7 @@
:src="url" :src="url"
frameborder="0" frameborder="0"
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
id="iframes"
></iframe> ></iframe>
</div> </div>
</template> </template>
@ -16,15 +17,30 @@ export default {
iframViewStyle: { iframViewStyle: {
height: "", height: "",
}, },
// url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation?type=${
url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation?type=${ // this.$route.query.type
this.$route.query.type // }&flag=${this.$route.query.flag}&data=${
}&flag=${this.$route.query.flag}&data=${ // this.$route.query.data
this.$route.query.data // }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`,
}&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`, url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation`
}; };
}, },
methods: {}, methods: {},
created() {
this.$nextTick(() => {
let oFrame = this.$refs.iframes;
oFrame.contentWindow.postMessage(
{
type: this.$route.query.type,
flag: this.$route.query.flag,
data: this.$route.query.data,
token: localStorage.getItem("MSSM-LIAONING__TOKEN"),
},
"*"
);
});
},
methods: {},
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
let dom = document.getElementsByClassName("ifram-view"); let dom = document.getElementsByClassName("ifram-view");

Loading…
Cancel
Save