mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 02:16:46 +08:00
49 lines
1013 B
Vue
49 lines
1013 B
Vue
<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>
|