提交 78436d20 编写于 作者: chengxiang.li's avatar chengxiang.li

更新打卡接口错误提示

上级 8f9a14c6
......@@ -353,6 +353,7 @@
},
created() {
vm = this;
},
mounted() {
// // 这里需要删掉!!!
......@@ -772,10 +773,20 @@
activityId: item.activityId,
taskId: item.id,
};
setTimeout(() => {
if(!vm.clockSuccessVisible){
vm.$toast({
duration: 3000, // 持续展示 toast
forbidClick: true,
message: '网络错误,请检查网络'
});
}
}, 15000)
goToUpdateClock(params).then(res => {
alert(JSON.stringify('goTO 更新去打卡状态'));
alert(JSON.stringify(res));
if(res && res.code == '000000'){
if(res.data){ // 打卡成功
vm.clockSuccessVisible = true;
......@@ -784,7 +795,7 @@
vm.$toast(res.message);
}
}else{
vm.$toast(res.message);
vm.$toast('打卡发生错误,请重新进入活动,再次尝试打卡');
}
})
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册