mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
修改对应的外连打开问题和学习数据加载控制问题
This commit is contained in:
@@ -88,9 +88,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<view v-if="curContent.contentType==52">
|
<view v-if="curContent.contentType==52">
|
||||||
<!--外连接-->
|
<!--外连接-->
|
||||||
<view v-if="conLink.url!=''" style="min-height: 400px;position: relative;">
|
<view v-if="conLink.openType == 1">
|
||||||
<web-view :src="conLink.url"></web-view>
|
<view v-if="conLink.url!=''" style="min-height: 400px;position: relative;">
|
||||||
</view>
|
<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>
|
||||||
<!--作业-->
|
<!--作业-->
|
||||||
<view v-if="curContent.contentType==60">
|
<view v-if="curContent.contentType==60">
|
||||||
@@ -907,6 +913,10 @@
|
|||||||
this.conLink.url=con.content;
|
this.conLink.url=con.content;
|
||||||
this.conLink.openType=1;
|
this.conLink.openType=1;
|
||||||
}
|
}
|
||||||
|
if (this.conLink.openType == 2) {
|
||||||
|
//新的窗口直接打开
|
||||||
|
location.href=this.conLink.url
|
||||||
|
}
|
||||||
} else if(con.contentType==10 || con.contentType==20) {
|
} else if(con.contentType==10 || con.contentType==20) {
|
||||||
|
|
||||||
if(con.content.startsWith('\{')){
|
if(con.content.startsWith('\{')){
|
||||||
|
|||||||
@@ -262,8 +262,6 @@
|
|||||||
//document.cookie = "mytest=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
//document.cookie = "mytest=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.loadBoeData(true);
|
|
||||||
|
|
||||||
let $this = this;
|
let $this = this;
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@@ -285,6 +283,12 @@
|
|||||||
apiManage.getTaskNum().then(res => {
|
apiManage.getTaskNum().then(res => {
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
this.value=res.data.todoTaskCounts;
|
this.value=res.data.todoTaskCounts;
|
||||||
|
if(this.value>0){
|
||||||
|
this.loadBoeData(true);
|
||||||
|
}else{
|
||||||
|
this.tabIndex = 1;//切换到我报名的
|
||||||
|
this.getLearning(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -545,13 +549,10 @@
|
|||||||
this.taskHasMore = false;
|
this.taskHasMore = false;
|
||||||
this.loadStatus='noMore';
|
this.loadStatus='noMore';
|
||||||
}
|
}
|
||||||
//下面的isOne没有看太明白,后续要去掉
|
//检查是否是第一次加载,这里的控制已经移到 初次加载中了
|
||||||
if (this.isOne) {
|
// if (this.isOne && res.data.records.length == 0) {
|
||||||
//this.value = this.taskCount;
|
// this.tabIndex = 1;
|
||||||
}
|
// }
|
||||||
if (this.isOne && res.data.records.length == 0) {
|
|
||||||
this.tabIndex = 1;
|
|
||||||
}
|
|
||||||
this.isOne = false;
|
this.isOne = false;
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
Reference in New Issue
Block a user