This commit is contained in:
@fawn-nine
2024-07-31 16:43:52 +08:00
parent 4b61167932
commit 634a0848b9
10 changed files with 2343 additions and 957 deletions

View File

@@ -217,8 +217,8 @@
flag: false
},
oldValue : '',
cartList:[]
cartList:[],
addLearnFlag:false,
};
},
//第一次加载
@@ -640,6 +640,14 @@
// }
},
addCollection(val,index){
if(this.addLearnFlag){
uni.showToast({
title:'请勿频繁操作哦',
icon:'none'
})
return
}
this.addLearnFlag = true
$http.request({
url: "medical/course/addUserCourseStudying",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
@@ -652,6 +660,7 @@
},
})
.then(res => {
this.addLearnFlag = false
if(res.code == 0){
uni.showToast({
title:'加入成功',
@@ -665,7 +674,8 @@
}
})
.catch(e => {
.catch(e => {
this.addLearnFlag = false
console.log('加入在学习', e)
uni.showToast({
title:'加入失败',