This commit is contained in:
@fawn-nine
2024-06-26 16:20:46 +08:00
parent ac9364bbf6
commit f507cae272
8 changed files with 84 additions and 51 deletions

View File

@@ -656,7 +656,7 @@ export default {
scene: "WXSceneSession",
type: 0,
href: this.$apkUrl,
title: "吴门医述",
title: `${this.course.title}这门课程讲的不错,快来围观吧-吴门医述app`,
summary: "我正在使用吴门医述提升自己,赶紧跟我一起来体验吧!",
imageUrl: "static/icon/home_icon_logo.png",
success: function (res) {
@@ -673,7 +673,7 @@ export default {
scene: "WXSceneTimeline",
type: 0,
href: this.$apkUrl,
title: "吴门医述",
title: `${this.course.title}这门课程讲的不错,快来围观吧-吴门医述app`,
summary: "我正在使用吴门医述提升自己,赶紧跟我一起来体验吧!",
imageUrl: "static/icon/home_icon_logo.png",
success: function (res) {

View File

@@ -28,7 +28,7 @@
<text>VIP畅学权益生效中</text>
</view>
<view :class="['text','courseItem','flexbox']"><u-icon name="pushpin" color="#2979ff"
size="24"></u-icon><text>{{item1.title}}</text>
size="24"></u-icon><text style="font-size: 32rpx;">{{item1.title}}</text>
</view>
<template v-if="item1.courseCatalogueEntityList && item1.courseCatalogueEntityList.length > 0">
@@ -505,7 +505,7 @@
display: block;
text-align: center;
margin-bottom: 10rpx;
color: #694bc6;
// color: #694bc6;
}
}

View File

@@ -280,10 +280,17 @@
this.status = 3 // 暂无数据
}
console.log('status', this.status)
this.flag = true
}
this.flag = true
}).catch(e => {
this.flag = true
console.log(e, '数据报错')
this.status = 3
uni.showToast({
title:`获取数据失败`,
icon:'error'
})
});
},
// 跳转

View File

@@ -565,9 +565,10 @@
this.LearningCourseList.status = 2
// }
} else {
this.LearningCourseList.list = []
this.LearningCourseList.status = 3 // 暂无数据
}
console.log('status', this.LearningCourseList.status)
// console.log('status我刷新了', this.LearningCourseList)
}
// this.LearningCourseList.flag = false
}).catch(e => {
@@ -670,7 +671,7 @@
})
},
delCollection(val, index){
// console.log(val,'val');
console.log('val++++++++', val.id);
$http.request({
url: "medical/course/delUserCourseStudying",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
@@ -690,13 +691,18 @@
})
if(this.curTagId == 0){
console.log(this.MyCourseList.list[index],'this.MyCourseList[index]')
this.MyCourseList.list[index].isStudying = 0
this.getLearningCourseList() // 刷新收藏列表
this.MyCourseList.list[index].isStudying = 0
setTimeout(() => {
this.getLearningCourseList() // 刷新收藏列表
},500)
}else if(this.curTagId == 1){
this.LearningCourseList.list.splice(index,1)
this.MyCourseList.page = 1
this.MyCourseList.list = []
this.getMyCourseList()
this.LearningCourseList.list.splice(index,1)
setTimeout(() => {
this.MyCourseList.page = 1
this.MyCourseList.list = []
this.getMyCourseList()
},500)
}
}

View File

@@ -107,11 +107,7 @@
url: `${url}?id=${thatId}&title=${title}`
});
},
getData() {
// if(!this.flag){
// console.log('正在执行,未完成')
// return
// }
getData() {
this.status = 1
this.flag = false
$http.request({
@@ -147,7 +143,13 @@
}
this.flag = true
}).catch(e => {
this.flag = true
this.status = 3
console.log(e,'数据报错')
uni.showToast({
title:`获取数据失败`,
icon:'error'
})
});
}
},