<template>
<div>
<iframe ref="mobsf" style=""></iframe>
</div>
</template>
<script>
export default {
data() {
return {
};
},
methods: {
mobsf() {
this.$nextTick(()=>{
debugger
let mobsf = this.$refs.mobsf
const deviceWidth = document.body.clientWidth
const deviceHeight = document.body.clientHeight
mobsf.style.width = Number(deviceWidth)+'px'//数字-页面布局宽度差值
mobsf.style.height = Number(deviceHeight)+'px'//数字-页面高度差值
mobsf.src = "https://e-weworktest.guolian-life.com/#/pages/salary-trial/salary-trial"
console.log("eeeeee")
})
},
getUrlParam(name) {
let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
let r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
},
onLoad() {
this.mobsf()
},
}
</script>