mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 03:16:45 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
48
pages/study/studydetail.vue
Normal file
48
pages/study/studydetail.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user