mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
简化
This commit is contained in:
@@ -66,8 +66,6 @@
|
||||
},
|
||||
methods: {
|
||||
returnRouter(item) {
|
||||
console.log(item.pageParams,'aaa')
|
||||
console.log(item,'bbb')
|
||||
if(!item.isRead){
|
||||
apiMessage.updateIsRead([item.id]).then(res=>{
|
||||
if(res.status == 200) {
|
||||
|
||||
@@ -359,6 +359,14 @@
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
}).catch(error=>{
|
||||
setTimeout(function() {
|
||||
uni.hideLoading();
|
||||
}, 100);
|
||||
this.$refs.messager.show({
|
||||
message: '课程不存在或已被删除',
|
||||
type: 'error'
|
||||
});
|
||||
});
|
||||
},
|
||||
loadAuthorInfo(list, ids) {
|
||||
|
||||
@@ -582,7 +582,6 @@ import cellGroup from '../../uni_modules/uview-ui/libs/config/props/cellGroup'
|
||||
let $this=this;
|
||||
let dataList = [];
|
||||
this.course.params.userId = this.userInfo.aid
|
||||
console.log(this.userInfo.aid,'aaaaa')
|
||||
await apiCoursePortal.courseSearch(this.course.params).then(rs=>{
|
||||
setTimeout(function(){ uni.hideLoading();},100);
|
||||
if(rs.status==200){
|
||||
@@ -750,7 +749,6 @@ import cellGroup from '../../uni_modules/uview-ui/libs/config/props/cellGroup'
|
||||
});
|
||||
},
|
||||
toCoursePage(coure){
|
||||
console.log(coure,'coure')
|
||||
if(!coure.source){
|
||||
uni.navigateTo({
|
||||
url: '/pages/study/courseStudy?id=' + coure.id
|
||||
|
||||
Reference in New Issue
Block a user