相关文章推荐
憨厚的烈马  ·  vue3 monoca-editor ...·  1 周前    · 
礼貌的米饭  ·  nodejs ...·  6 天前    · 
道上混的熊猫  ·  uniform_int_distributi ...·  4 小时前    · 
任性的紫菜  ·  File path formats on ...·  2 周前    · 
纯真的松球  ·  error C2227: ...·  1 年前    · 
失恋的煎鸡蛋  ·  JavaScript ...·  1 年前    · 
任性的蚂蚁  ·  EXCEL VBA ...·  1 年前    · 

<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>