Files
learning-system-mobile/pages/study/studydetail.vue
2022-05-29 18:59:24 +08:00

49 lines
1013 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<!-- 自主学习详情 -->
<view class="myAssdetail-box">
<page-title :showBack="true">课程学习</page-title>
<iframe :src="urlEE" style="width: 100%;height: 100%;" :style="{'height':pageHeight}" frameborder="0"></iframe>
</view>
</template>
<script>
export default {
data(){
return{
id:'',
urlEE:'',
type:'',
pageHeight:'100%'
}
},
onLoad(options) {
//console.log(options.id)
this.id = options.id
this.type = options.type
},
mounted(){
//此页面因为没有ajax请求也没有对token的检查
this.pageHeight=(this.$height-40)+'px';
console.log('页面的高度:'+this.pageHeight);
let urlPre=window.location.protocol+'//'+window.location.host;
// if(this.type = 10){
this.urlEE= `${urlPre}/m/cdetail?id=${this.id}&type=${this.type}&inner=1`
// }
}
}
</script>
<style>
.myAssdetail-box{
width: 100%;
height: 100%;
}
body{
width: 100%;
height: 100%;
}
uni-page-body{
height: 100%;
}
</style>