暂存
This commit is contained in:
@@ -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:'加入失败',
|
||||
|
||||
Reference in New Issue
Block a user