Files
learning-system-mobile/pages/index/iframe.vue
2022-12-12 17:30:12 +08:00

44 lines
752 B
Vue

<template>
<!-- 学习任务详情 -->
<view class="loaddetail-box">
<!-- <page-title :showBack="true">详细信息</page-title> -->
<web-view v-if="innerUrl!=''" :src="innerUrl" style="width: 100%;height: 100%;"></web-view>
</view>
</template>
<script>
export default {
data (){
return{
id:'',
innerUrl:'',
}
},
onLoad(options) {
//console.log(options.id)
this.id = options.id
},
mounted(){
let urlPre=window.location.protocol+'//'+window.location.host;
this.innerUrl = `${urlPre}/m/todo/detail?id=${this.id}&inner=1`
}
}
</script>
<style lang="scss" scoped>
body{
width: 100%;
height: 100%;
}
uni-page-body{
height: 100%;
}
.loaddetail-box{
width: 100%;
height: 100%;
}
</style>