提交 5910e69f 编写于 作者: tao.wu's avatar tao.wu

Merge remote-tracking branch 'origin/dev-stage2-20191125' into dev-stage2-20191125

...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
height: 25px; height: 25px;
position: absolute; position: absolute;
left: 13px; left: 13px;
top: 10px;
} }
.head-btn { .head-btn {
width: 193px; width: 193px;
......
...@@ -237,6 +237,7 @@ ...@@ -237,6 +237,7 @@
data () { data () {
return { return {
canClick: true, // 课程、smo防止连续点击 canClick: true, // 课程、smo防止连续点击
canClockClick: true, // 打卡防止多次点击
hospital: '', // 加入机构审核中 显示的机构名称 hospital: '', // 加入机构审核中 显示的机构名称
awardModalShow: false, // 根据排名是否显示中奖弹窗 awardModalShow: false, // 根据排名是否显示中奖弹窗
showAwadModal: true, // 根据活动时间是否展示中奖弹层以及查看昨日榜单逻辑 showAwadModal: true, // 根据活动时间是否展示中奖弹层以及查看昨日榜单逻辑
...@@ -383,7 +384,7 @@ ...@@ -383,7 +384,7 @@
vm.clockSuccessVisible = false; vm.clockSuccessVisible = false;
}, },
returnScoreAwardTips() { returnScoreAwardTips() {
// let award = ''; let award = '';
if( vm.doctorInfo ) { if( vm.doctorInfo ) {
// 16号之前或者30号之后 提示:不在活动期间内 // 16号之前或者30号之后 提示:不在活动期间内
let msecSixteen = new Date('2019/12/16 00:00:00').getTime(); let msecSixteen = new Date('2019/12/16 00:00:00').getTime();
...@@ -858,35 +859,42 @@ ...@@ -858,35 +859,42 @@
if( vm.isClockFinish ){ // 已打卡,不执行,未打卡,去调用打卡接口 if( vm.isClockFinish ){ // 已打卡,不执行,未打卡,去调用打卡接口
// 已打卡,不处理 // 已打卡,不处理
}else{ // 未打卡,去打卡 }else{ // 未打卡,去打卡
vm.$sendBuriedData({ if(vm.canClockClick){
component_tag: `302#302010` vm.$sendBuriedData({
}); component_tag: `302#302010`
let params = { });
activityId: item.activityId, let params = {
taskId: item.id, activityId: item.activityId,
}; taskId: item.id,
};
setTimeout(() => {
if(!vm.clockSuccessVisible){ setTimeout(() => {
vm.$toast({ if(!vm.clockSuccessVisible){
duration: 3000, // 持续展示 toast vm.$toast({
forbidClick: true, duration: 3000, // 持续展示 toast
message: '网络错误,请检查网络' forbidClick: true,
}); message: '网络错误,请检查网络'
} });
}, 15000)
goToUpdateClock(params).then(res => {
if(res && res.code == '000000'){
if(res.data){ // 打卡成功
vm.clockSuccessVisible = true;
vm.isClockFinish = true;
}else{
vm.$toast(res.message);
} }
}else{ }, 15000)
vm.$toast('打卡发生错误,请重新进入活动,再次尝试打卡'); goToUpdateClock(params).then(res => {
} if(res && res.code == '000000'){
}) if(res.data){ // 打卡成功
vm.clockSuccessVisible = true;
vm.isClockFinish = true;
}else{
vm.$toast(res.message);
}
}else{
vm.$toast('打卡发生错误,请重新进入活动,再次尝试打卡');
}
})
vm.canClockClick = false;
}
setTimeout(() => {
vm.canClockClick = true;
}, 1000)
} }
}else{ // 非打卡,直接走积木tims跳转逻辑 }else{ // 非打卡,直接走积木tims跳转逻辑
// alert('去课程或者患者招募 。。。。。。') // alert('去课程或者患者招募 。。。。。。')
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册