修改对应的外连打开问题和学习数据加载控制问题

This commit is contained in:
daihh
2023-07-18 12:06:25 +08:00
parent 5eaf88152a
commit dae8db63bc
2 changed files with 23 additions and 12 deletions

View File

@@ -88,9 +88,15 @@
</div>
<view v-if="curContent.contentType==52">
<!--外连接-->
<view v-if="conLink.url!=''" style="min-height: 400px;position: relative;">
<web-view :src="conLink.url"></web-view>
</view>
<view v-if="conLink.openType == 1">
<view v-if="conLink.url!=''" style="min-height: 400px;position: relative;">
<web-view :src="conLink.url"></web-view>
</view>
</view>
<view v-else>
<div style="text-align: center;padding: 20px;">{{ curContent.contentName }}</div>
<div style="text-align: center;padding: 20px;">{{ conLink.url }}</div>
</view>
</view>
<!--作业-->
<view v-if="curContent.contentType==60">
@@ -907,6 +913,10 @@
this.conLink.url=con.content;
this.conLink.openType=1;
}
if (this.conLink.openType == 2) {
//新的窗口直接打开
location.href=this.conLink.url
}
} else if(con.contentType==10 || con.contentType==20) {
if(con.content.startsWith('\{')){