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

更新打卡接口错误提示

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