mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 19:36:47 +08:00
提交修改
This commit is contained in:
43
pages/index/iframe.vue
Normal file
43
pages/index/iframe.vue
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<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>
|
||||||
@@ -499,8 +499,12 @@
|
|||||||
this.sectionList=rs.result.sections;
|
this.sectionList=rs.result.sections;
|
||||||
//设置正在学习的章节
|
//设置正在学习的章节
|
||||||
if(showConId==''){
|
if(showConId==''){
|
||||||
this.curContent=this.contentList[0];
|
//取第一条为正在学习的
|
||||||
this.curSection=this.sectionList[0];
|
let treelist=this.catalogTree;
|
||||||
|
this.curSection=this.treelist[0].sec;
|
||||||
|
this.curContent=this.treelist[0].children[0];
|
||||||
|
// this.curContent=this.contentList[0];
|
||||||
|
// this.curSection=this.sectionList[0];
|
||||||
//要不要在这里处理?
|
//要不要在这里处理?
|
||||||
if(this.curContent.contentType==10 || this.curContent.contentType==20){
|
if(this.curContent.contentType==10 || this.curContent.contentType==20){
|
||||||
if(this.contentList[0].content.startsWith('\{')){
|
if(this.contentList[0].content.startsWith('\{')){
|
||||||
|
|||||||
Reference in New Issue
Block a user